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

Included projects belonging to MGHPCC-managed groups in the NERC total invoice #126

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

QuanMPhm
Copy link
Contributor

@QuanMPhm QuanMPhm commented Dec 12, 2024

Closes #125. Consists of the last commit

@@ -60,4 +60,5 @@ def _prepare_export(self):
]
self.data = self.data[
self.data[invoice.INSTITUTION_FIELD].isin(self.INCLUDED_INSTITUTIONS)
| (self.data[invoice.GROUP_MANAGED_FIELD] == True) # noqa E712
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this loaded as a boolean from the csv?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing this out. I rechecked and realized that the MGHPCC Managed field is loaded as a string ("Yes" or "No"). I could fix the code to map the strings into a Boolean (True for "Yes", etc) or I could fix this condition to == "Yes". @knikolla What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

If the CSV file has them as "yes", "no" and this is the only place they're being used, then a comparison with .lower() == "yes" is enough.

@QuanMPhm QuanMPhm force-pushed the 125/prepay_nerc_total branch from 9724494 to 30dfb47 Compare January 22, 2025 16:02
@knikolla knikolla merged commit 30ad66b into CCI-MOC:main Jan 23, 2025
3 checks passed
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.

Add prepay group projects to NERC Total Invoice
2 participants