Skip to content

BUG: Read csv lists correctly#492

Merged
hongyeehh merged 2 commits into
mie-lab:masterfrom
bifbof:issue#485
Jul 31, 2023
Merged

BUG: Read csv lists correctly#492
hongyeehh merged 2 commits into
mie-lab:masterfrom
bifbof:issue#485

Conversation

@bifbof
Copy link
Copy Markdown
Collaborator

@bifbof bifbof commented Jul 26, 2023

fixes #485
Used ast.literal_eval as eval is a bit dangerous.
But I think we need to communicate that this is done for some reason, or that trips is a optional column.
This relates to #491.

fixes mie-lab#485
Used ast.literal_eval as eval is a bit dangerous
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 26, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (eb7d6ce) 92.31% compared to head (e6a2092) 92.32%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #492   +/-   ##
=======================================
  Coverage   92.31%   92.32%           
=======================================
  Files          39       39           
  Lines        2004     2006    +2     
  Branches      340      340           
=======================================
+ Hits         1850     1852    +2     
  Misses        133      133           
  Partials       21       21           
Files Changed Coverage Δ
trackintel/io/file.py 98.03% <100.00%> (+0.03%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bifbof bifbof changed the title BUG: evaluate stored trips lists BUG: Read csv lists correctly Jul 29, 2023
Copy link
Copy Markdown
Member

@hongyeehh hongyeehh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the solution. This is a nice fix for the issue.
And yes I agree we need to find a way to handle optional columns: here "trips" does not appear in any input parameters or docstrings. But let's discuss that in #491

@hongyeehh hongyeehh merged commit 4f8bc85 into mie-lab:master Jul 31, 2023
@bifbof bifbof deleted the issue#485 branch July 31, 2023 15:09
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

Successfully merging this pull request may close these issues.

List of trip ids in a tour dataframe is unstructured when reading it from csv.

2 participants