1 Pages (2 items)
[SS-2267] ImportData and dec separator - Messages
#1 Posted: 3/26/2015 5:53:37 PM
I want to read a text file using ImportData() and can't understand the effect of the dec separator setting (second argument)
The first version with correct specification does not work.
The other versions with default or wrong specification do work. But they don't work on some other computers.
This is the contents of the file:
This is the system information
As this might largely system dependent, I would like to get this tested by others before committing a bug report in the bts
importdatabug.sm (7 KiB) downloaded 55 time(s).
The first version with correct specification does not work.
The other versions with default or wrong specification do work. But they don't work on some other computers.
This is the contents of the file:
#
# 26.03.2015 21:23:37
# Die im Projekt definierten Parameter sind:
# P1 - Rissbreite [mm], P2 - Energiestichprobe Minimale Dehnung [mJ], P3 - Verschiebungskomponente Minimum [mm], P4 - Verschiebungskomponente Maximum [mm]
#
# Die folgende Kopfzeile definiert die Spaltennamen bezogen auf die Parameter.
Name, P1, P2, P3, P4
DP 0, 1, 953.21939380094409, 0.0950802490115166, 0.0955634638667107
DP 1, 2, 956.042785577476, 0.094592787325382233, 0.096615619957447052
DP 2, 3, 961.45152181060985, 0.093749739229679108, 0.098540745675563812
DP 3, 4, 970.16604395536706, 0.092531807720661163, 0.10150127112865448
DP 4, 5, 983.52901369857136, 0.090867139399051666, 0.10583864897489548
# 26.03.2015 21:23:37
# Die im Projekt definierten Parameter sind:
# P1 - Rissbreite [mm], P2 - Energiestichprobe Minimale Dehnung [mJ], P3 - Verschiebungskomponente Minimum [mm], P4 - Verschiebungskomponente Maximum [mm]
#
# Die folgende Kopfzeile definiert die Spaltennamen bezogen auf die Parameter.
Name, P1, P2, P3, P4
DP 0, 1, 953.21939380094409, 0.0950802490115166, 0.0955634638667107
DP 1, 2, 956.042785577476, 0.094592787325382233, 0.096615619957447052
DP 2, 3, 961.45152181060985, 0.093749739229679108, 0.098540745675563812
DP 3, 4, 970.16604395536706, 0.092531807720661163, 0.10150127112865448
DP 4, 5, 983.52901369857136, 0.090867139399051666, 0.10583864897489548
This is the system information
SMath Studio: SMath Studio Desktop 0.97.5346.24640, portable, x86
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 (Microsoft Windows 7 Professional , x64)
Screen: 1920x1080 px, 96x96 dpi
Localization: separator=; decimal symbol=; system decimal symbol=; language=GER
Frameworks: CLR 2.0.50727.5485
installed versions:
v2.0.50727 2.0.50727.5420 SP2
v3.0 3.0.30729.5420 SP2
v3.5 3.5.30729.5420 SP1
v4
Client 4.5.51209
Full 4.5.51209
v4.0
Client 4.0.0.0
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 (Microsoft Windows 7 Professional , x64)
Screen: 1920x1080 px, 96x96 dpi
Localization: separator=
Frameworks: CLR 2.0.50727.5485
installed versions:
v2.0.50727 2.0.50727.5420 SP2
v3.0 3.0.30729.5420 SP2
v3.5 3.5.30729.5420 SP1
v4
Client 4.5.51209
Full 4.5.51209
v4.0
Client 4.0.0.0
As this might largely system dependent, I would like to get this tested by others before committing a bug report in the bts
importdatabug.sm (7 KiB) downloaded 55 time(s).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#2 Posted: 3/27/2015 10:49:41 AM
Same result as your if I use comma as decimal separator and semicolon as argument separator
the result below is if I use period as decimal separator and comma as argument separator
![2015-03-27 14_47_28-SMath Studio Desktop - [importdatabug.sm_].png](/en-US/file/MNQZyv/2015-03-27-14_47_28-SMath-Studio-Desktop---_importdatabug_sm___png)
the result below is if I use period as decimal separator and comma as argument separator
SMath Studio: SMath Studio Desktop 0.97.5346.24640, x86
OS: Microsoft Windows NT 5.1.2600 Service Pack 3 (Microsoft Windows XP Professional, x86)
Screen: 1280x1024 px, 96x96 dpi
Localization: separator=; decimal symbol=; system decimal symbol=; language=ENG
Frameworks: CLR 2.0.50727.1433
installed versions:
v2.0.50727 2.1.21022 SP1
v3.0 3.1.21022 SP1
v3.5 3.5.21022.08 SP0
OS: Microsoft Windows NT 5.1.2600 Service Pack 3 (Microsoft Windows XP Professional, x86)
Screen: 1280x1024 px, 96x96 dpi
Localization: separator=
Frameworks: CLR 2.0.50727.1433
installed versions:
v2.0.50727 2.1.21022 SP1
v3.0 3.1.21022 SP1
v3.5 3.5.21022.08 SP0
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 Pages (2 items)
-
New Posts
-
No New Posts