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

Fixed memory issue from metrics #178

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

abachma2
Copy link
Member

I modified the 'Materials' metric to remove the memory error described in issue #177. Merging will close Issue #177. This method works, but if there are preferred methods to maintain efficiency of database structure I am open to changes.

@abachma2 abachma2 changed the title Fixed memory issue in 'Materials' metric Fixed memory issue from metrics Jan 25, 2021
y.name = 'Mass'
z = y.reset_index()
return z
x['Mass'] = x['Quantity'] * x['MassFrac']
Copy link
Member

Choose a reason for hiding this comment

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

I think you'll need to "drop" [Quantity] and [MassFrac] column

Copy link
Member

@katyhuff katyhuff left a comment

Choose a reason for hiding this comment

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

Please add a unit test that :

  • Would have failed before this commit
  • and passes now.

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.

None yet

3 participants