[SS-4586] File Read location Bug

[SS-4586] File Read location Bug - Smath file read bug on relative locations - 消息

#1 已发布: 2019/2/26 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 已发布: 2019/2/26 20:56:43
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2019/2/26 22:50:48
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2019/2/26 23:08:12
RegCurry

RegCurry

0个赞,共57个帖子。

组: User

What does CWD stand for?
#5 已发布: 2019/2/26 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 已发布: 2019/2/26 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 已发布: 2019/2/27 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 已发布: 2019/2/27 00:25:40
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2019/2/27 01:22:51
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2019/2/27 01:39:31
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2019/2/27 10:27:41
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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.22 KiB)已下载 1326 次。

  • 有新帖
  • 无新帖