ntamas / plfit

Fitting power-law distributions to empirical data, according to the method of Clauset, Shalizi and Newman
GNU General Public License v2.0
48 stars 17 forks source link

allow #comment-eol (and fix parse error machinery) #15

Closed jgmbenoit closed 6 years ago

jgmbenoit commented 6 years ago

Attempt to allow commented line or end-of-line in input data files. Along the way the parsing errors machinery was fixed.

ntamas commented 6 years ago

Seems good, thanks!

Can I ask you to add a test file in data/ containing some comments that the parser should skip, and update data/README.rst to mention this file? Also, we should probably mention it somewhere in README.rst at the root as well that comments are now allowed in the input file.

jgmbenoit commented 6 years ago

On my way to add comments and examples. Please note that data is currently ignored by .gitignore .

ntamas commented 6 years ago

data/ is now un-ignored in 78eaa36

jgmbenoit commented 6 years ago

Please let me know if something is wrong or can be improved.

ntamas commented 6 years ago

Ah, sorry, this has slipped through the cracks. Merging it right now. Thanks a lot!