Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNAP TTable LoadSS Adding Extra Row #157

Open
hcars opened this issue May 27, 2021 · 0 comments
Open

SNAP TTable LoadSS Adding Extra Row #157

hcars opened this issue May 27, 2021 · 0 comments

Comments

@hcars
Copy link

hcars commented May 27, 2021

When loading a SNAP TTable with LoadSS, new columns are added mysteriously. Below is an example of the problem:

Input File:

"test_graph6.1.mapping.txt"

# original_id	new_id
d	0
c	1
b	2
a	3

Python shell:

>>> import snap
>>> schema = snap.Schema()
>>> schema.Add(snap.TStrTAttrPr("original_id", snap.atStr))
0
>>> schema.Add(snap.TStrTAttrPr("new_id", snap.atInt))
1
>>> context = snap.TTableContext()
>>> ttable = snap.TTable.LoadSS(schema, "test_graph6.1.mapping.txt", context, "\t", snap.TBool(False))
>>> ttable.SaveSS("test.out")

Output file:
test.out

# original_id	new_id	_id
d	0	0
c	1	1
b	2	2
a	3	3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant