-
Notifications
You must be signed in to change notification settings - Fork 387
Metadata Configuration #957
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
Conversation
flow/core/util.py
Outdated
|
||
|
||
def emission_to_csv_large(emission_path, output_path=None): | ||
"""Do exact same thing as emission_to_csv but handles the memory insufficient issue with large emission file.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two comments on this:
- Can you specify in the docstring what has changed from the default
emission_to_csv
method? - This looks like a lot of code duplication. Can we merge it into
emission_to_csv
and just add an input parameter to the method to handle this situation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is exactly the same with emission_to_csv
except it handles the XML file in a different way that won't cause memory overflow. Maybe I should just replace emssion_to_csv
with this new method.
extra_info, source_id, run_id = self.pipeline_params | ||
veh_ids = self.k.vehicle.get_ids() | ||
get_extra_info(self.k.vehicle, extra_info, veh_ids, source_id, run_id) | ||
except AttributeError as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we be specific (with a comment) what issue you expect to catch here? This can potentially catch a lot of errors later on, and we want to be sure not to have can unexpected behaviors as a result of that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment added, this is essential for cases where the attribute pipeline_params
is not added to this instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor comments, but then happy to merge.
…/flow into datapipeline_dev_v2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pull request information
Description
Implemented setting configuration using command line input. Fix some bug in I210 replay. Added a README in flow/datapipeline