[SS-4586] File Read location Bug

[SS-4586] File Read location Bug - Smath file read bug on relative locations - Сообщения

#1 Опубликовано: 26.02.2019 18:10:11
RegCurry

RegCurry

0 сообщений из 57 понравились пользователям.

Группа: User

If this has been previously noted, I apologize.

If I open this .sm file from clicking on the file in the directory, it works and reads the
data file; however, if I start Smath and then open the file from Smath it does not read
the file.


Файл не найден.Файл не найден.

#2 Опубликовано: 26.02.2019 20:56:43
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

Confirmed, thank you!
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 26.02.2019 22:50:48
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

If I open this .sm file from clicking on the file in the directory, it works and reads the
data file; however, if I start Smath and then open the file from Smath it does not read the file.


Something you are not going correct:
1. Copy the DATA from your download
2. Paste in your Smath file directory
3. close session ... open Smath session
4. address the CWD:=
5 read back

readTxt.PNG
#4 Опубликовано: 26.02.2019 23:08:12
RegCurry

RegCurry

0 сообщений из 57 понравились пользователям.

Группа: User

What does CWD stand for?
#5 Опубликовано: 26.02.2019 23:10:48
RegCurry

RegCurry

0 сообщений из 57 понравились пользователям.

Группа: User

Also, my path is very long and I have had trouble copying the path from the windows folder and pasting into the argument of inputData.
#6 Опубликовано: 26.02.2019 23:15:00
RegCurry

RegCurry

0 сообщений из 57 понравились пользователям.

Группа: User

Should have said, my path is very long and I have had trouble copying the path from the windows folder and pasting into the any Smath argument.
#7 Опубликовано: 27.02.2019 00:18:08
RegCurry

RegCurry

0 сообщений из 57 понравились пользователям.

Группа: User

Still does not work for my file structure. Don't think I will change my file structure for this one program.

Capture.JPG
#8 Опубликовано: 27.02.2019 00:25:40
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Should have said, my path is very long and I have had trouble copying the path from the windows folder and pasting into the any Smath argument.


CWD = Current Working Directory.
1. In your C:\ ... create the SmathFile directory.
2. From your Windows "Download"
3. Copy DATA... 4. Paste in your Smathfile from where you read.

Tip: once you can read [I suggested 'read']
Explode read in expanded vector [read]=
Copy the data in a new assigned vector ...
now you can plot. I played a bit from direct reading
but Smath complained and crashed the work sheet.
That's why you have to isolate the vector,
Then you will play at will with that monkey branching.

Cheers ... Jean


#9 Опубликовано: 27.02.2019 01:22:51
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Still does not work for my file structure.


Maybe you don't have an efficient file structure.
In my "SmathFle", all sorts of Smath items:
data sets, formulas, images
I Constantly graze for utilities, models, projects ...
average browsing time among ~ 2000 documents < 15 seconds.

SmathFileStructure.PNG
#10 Опубликовано: 27.02.2019 01:39:31
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Tip: once you can read [I suggested 'read']
Explode read in expanded vector [read]=
Copy the data in a new assigned vector ...
now you can plot.


... like this:

plotTXT.PNG
#11 Опубликовано: 27.02.2019 10:27:41
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I played a bit from direct reading
but Smath complained and crashed the work sheet.
That's why you have to isolate the vector,


Your data are in the document cw with the plot.
You can inspect down to lower values of X,
but going for too low values it will crash Smath
in the too low values of X around 0.0000XXXXX
Your lowest value is 0.000000000000XXX
At so low values crash. Smath does not plot
at so low values and crash

File READ Txt.sm (13 КиБ) скачан 35 раз(а).

  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений