importData()

importData() - Delimiter strings bug - 消息

#1 已发布: 2021/5/22 18:03:25
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

importData() function doesn't respect the string input for any of delimiters.
Function only accepts if delimiters are 0 in SMath, string inputs are giving error to wrong file format.
Column separator should be space, decimal separator should be dot, argument separator should be semicolon in file.
All delimiter separators couldn't be read even if they are specified as strings to default values in function.

Additionally, I get that strings should be in quotes while importing to SMath but this is not productive.
If there was an option for f.sym to read non-quoted text as string it would be very good.
This option could be set as integer 2 for f.sym and eliminates to manually add quotes for strings in file.

I encountered this on linux.
In order to check if I am not wrong doing also checked on windows.
Function acts same on Both operating systems.

Regards

PS: I had to rename filename csv to txt to upload here.
Usually filetype for these files is csv.

Worksheet1.sm (2.18 KiB)已下载 1797 次。
spreadsheet.txt (98 B)已下载 1296 次。

spreadsheet.png
#2 已发布: 2021/5/22 18:43:31
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

Thank you. Fixed.
1位用户喜欢此帖子
overlord 2021/5/22 20:02:00
#3 已发布: 2021/6/17 14:58:52
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

Thank you. Fixed.


I noticed another bug.
If you enter first row and leave last row as 0, file is read properly.
Same action is not working with column delimiters.
It expects a number, don't accept zero as last column delimiter.
Function throws a bug.

Regards

2021-06-17_20-57.png
#4 已发布: 2024/2/24 00:53:15
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

I noticed another bug.
If you enter first row and leave last row as 0, file is read properly.
Same action is not working with column delimiters.
It expects a number, don't accept zero as last column delimiter.
Function throws a bug.

Regards


This has not been fixed as it seems.
  • 有新帖
  • 无新帖