You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An issue has been filed in {gtfstools} noting that round shape_dist_traveled entries were saved in scientific notation: ipeaGIT/gtfstools#73
Note that saving in scientific notation does not prevent the entries from being correctly read with import_gtfs() (i.e. they are still read as numbers and it doesn't seem to affect their precision), but the issue creator notes that it does affect his workflow, as pfaedle can't handle the format.
An easy solution to this problem seems to be adding scipen = 999 to the data.table::fwrite() call in export_gtfs().
The text was updated successfully, but these errors were encountered:
dhersz
changed the title
Prevent large round numeric numbers to be saved in scientific notation
Prevent large round numbers to be saved in scientific notation
Oct 19, 2023
An issue has been filed in {gtfstools} noting that round shape_dist_traveled entries were saved in scientific notation: ipeaGIT/gtfstools#73
Note that saving in scientific notation does not prevent the entries from being correctly read with
import_gtfs()
(i.e. they are still read as numbers and it doesn't seem to affect their precision), but the issue creator notes that it does affect his workflow, as pfaedle can't handle the format.Here's a reproducible example:
An easy solution to this problem seems to be adding
scipen = 999
to thedata.table::fwrite()
call inexport_gtfs()
.The text was updated successfully, but these errors were encountered: