Skip to content

Reading edge list from csv line #129

Answered by RemyLau
vadhoob asked this question in Q&A
Jul 11, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @vadhoob, thanks for your interest in using PecanPy! A recent patch #66 made by @justinlboyer allows one to specify the delimiter type. So essentially, you can pass your csv file directly to the PecanPy program by specifying --delimiter ,.

One note I want to make is that the current implementation can not exclude the harder line automatically. So you will need to manually remove the header before running PecanPy, either using a text editor or using the following command

$ tail -n +2 csv_with_header.csv > csv_without_header.csv

Finally, here's an example script you can use the run PecanPy with your csv file

$ pecanpy --input csv_without_header.csv --delimiter , --mode SparseOTF --output…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vadhoob
Comment options

@RemyLau
Comment options

Answer selected by vadhoob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants