[SS-4586] File Read location Bug

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

#1 Publicado: 26/2/2019 18:10:11
RegCurry

RegCurry

0 me gusta en 57 mensajes.

Grupo: 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.


Archivo no encontrado.Archivo no encontrado.

#2 Publicado: 26/2/2019 20:56:43
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 26/2/2019 22:50:48
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 26/2/2019 23:08:12
RegCurry

RegCurry

0 me gusta en 57 mensajes.

Grupo: User

What does CWD stand for?
#5 Publicado: 26/2/2019 23:10:48
RegCurry

RegCurry

0 me gusta en 57 mensajes.

Grupo: 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 Publicado: 26/2/2019 23:15:00
RegCurry

RegCurry

0 me gusta en 57 mensajes.

Grupo: 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 Publicado: 27/2/2019 0:18:08
RegCurry

RegCurry

0 me gusta en 57 mensajes.

Grupo: 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 Publicado: 27/2/2019 0:25:40
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 27/2/2019 1:22:51
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 27/2/2019 1:39:31
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 27/2/2019 10:27:41
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1310 vez(es).

  • Nuevos mensajes
  • Sin mensajes nuevos