Skip to content
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

Grid clean up #648

Merged
merged 2 commits into from
Jun 6, 2022
Merged

Grid clean up #648

merged 2 commits into from
Jun 6, 2022

Conversation

rouille
Copy link
Collaborator

@rouille rouille commented Jun 5, 2022

Pull Request doc

Purpose

Clean up the grid related modules

What the code is doing

  • Read all grid csv files in the CSVReader class
  • Move the csv_to_data_frame function and rename it
  • Format docstrings

Testing

Run existing unit tests

Where to look

The AbstractGrid and the CSVReader classes

Usage Example/Visuals

N/A

Time estimate

5min

@rouille rouille self-assigned this Jun 5, 2022
Copy link
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

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

Definitely cleaner. Thanks

@@ -318,6 +318,11 @@ def add_information_to_model(grid):


def reindex_model(grid):
"""Reindex bus id columns.

:param powersimdata.input.ScenarioGrid grid: grid
Copy link
Collaborator

Choose a reason for hiding this comment

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

Think it should be powersimdata.input.scenario_grid.ScenarioGrid

Copy link
Collaborator

@jenhagg jenhagg left a comment

Choose a reason for hiding this comment

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

Thanks, this makes more sense

@rouille rouille merged commit b3762d2 into develop Jun 6, 2022
@rouille rouille deleted the ben/grid branch June 6, 2022 23:17
@jenhagg jenhagg mentioned this pull request Aug 17, 2022
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.

3 participants