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

Support 4G result data #7

Merged
merged 18 commits into from
Jan 27, 2025
Merged

Support 4G result data #7

merged 18 commits into from
Jan 27, 2025

Conversation

nllong
Copy link
Member

@nllong nllong commented Jan 6, 2025

  • Increase the flexibility of the post processing to read in 4g and 5g data.
  • New method created to pull data from .mat file and ensuring that the lengths are consistent.
  • Create results_base abstract class to store data that need to be in both URBANopt results and Modelica results
  • leverage regex to find all variables in the .mat file

@nllong nllong requested a review from vtnate January 6, 2025 03:38
Copy link
Contributor

@vtnate vtnate left a comment

Choose a reason for hiding this comment

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

Teeeeeeessssssssttttttttssssssss! 😆

urbanopt_des/modelica_results.py Outdated Show resolved Hide resolved
urbanopt_des/modelica_results.py Outdated Show resolved Hide resolved
urbanopt_des/modelica_results.py Show resolved Hide resolved
common methods/datasets that can be used for easy comparison."""

@property
def end_use_summary_dict(self) -> dict:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is returning a list, no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Related to that, getting mypy to run during pre-commit would be awesome. Why is it commented?

Copy link
Member Author

Choose a reason for hiding this comment

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

probably because it failed tooooo much?

urbanopt_des/modelica_results.py Show resolved Hide resolved
urbanopt_des/modelica_results.py Show resolved Hide resolved
urbanopt_des/modelica_results.py Outdated Show resolved Hide resolved
nllong and others added 4 commits January 9, 2025 13:35
Copy link
Member Author

@nllong nllong left a comment

Choose a reason for hiding this comment

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

Okay, I added several tests on the Modelica post processing side. Still need more, but we have a start! Can we approve this and merge into your UO DES cleanup?

Copy link
Contributor

@vtnate vtnate left a comment

Choose a reason for hiding this comment

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

I think reading results in a standardized manner (like this) is going to be a big benefit! Yay!

self.assertEqual(data.number_of_buildings(), 1)

def test_resample_and_convert_to_df(self):
"""Simple test to make sure we can load the geojson file"""
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably have different docstrings for the different tests. Something to do in the future.

@vtnate vtnate merged commit abc3c61 into develop Jan 27, 2025
3 checks passed
@vtnate vtnate deleted the support-4g-data branch January 27, 2025 16:33
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.

2 participants