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

add pickling #258

Merged
merged 6 commits into from
Jun 17, 2024
Merged

add pickling #258

merged 6 commits into from
Jun 17, 2024

Conversation

CunliangGeng
Copy link
Member

@CunliangGeng CunliangGeng commented Jun 14, 2024

Changes

  • add __reduce__ to ensure pickling works for all attributes of e.g. BGC, GCF, ...
  • add save_data method to NPLinker class

With the save_data method, it's ready to save all relevant data to a pickle file for the development of webapp.

@CunliangGeng CunliangGeng self-assigned this Jun 14, 2024
@CunliangGeng CunliangGeng marked this pull request as ready for review June 14, 2024 08:46
Base automatically changed from fix_mypy_ruff_errors to dev June 14, 2024 11:38
AttributeError: `np.NINF` was removed in the NumPy 2.0 release. Use `-np.inf` instead.
Copy link

sonarcloud bot commented Jun 17, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
43.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link
Member Author

CunliangGeng commented Jun 17, 2024

Merge activity

@CunliangGeng CunliangGeng merged commit bedebde into dev Jun 17, 2024
4 of 6 checks passed
@CunliangGeng CunliangGeng deleted the add_pickling branch June 17, 2024 13:41
@CunliangGeng CunliangGeng mentioned this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants