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

Fix #331 #340

Merged
merged 4 commits into from
Jan 3, 2024
Merged

Fix #331 #340

merged 4 commits into from
Jan 3, 2024

Conversation

xiki-tempula
Copy link
Collaborator

Allow metadata to be loaded from the serialised parquet file.

@xiki-tempula xiki-tempula linked an issue Dec 30, 2023 that may be closed by this pull request
Copy link

codecov bot commented Dec 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1360a0d) 98.70% compared to head (7f6d90e) 98.71%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #340   +/-   ##
=======================================
  Coverage   98.70%   98.71%           
=======================================
  Files          28       28           
  Lines        1860     1869    +9     
  Branches      402      403    +1     
=======================================
+ Hits         1836     1845    +9     
  Misses          2        2           
  Partials       22       22           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xiki-tempula
Copy link
Collaborator Author

@orbeckst The py3.8 is deprecated in #342 and the RTD is fixed in #338

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

Small changes/suggestions, otherwise looking sensible.

CHANGES Show resolved Hide resolved
CHANGES Show resolved Hide resolved
src/alchemlyb/parsing/parquet.py Show resolved Hide resolved

from . import _init_attrs


@_init_attrs
def _check_metadata(path: str, T: float) -> pd.DataFrame:
Copy link
Member

Choose a reason for hiding this comment

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

The name is a bit misleading because it does not only check but also return a df. I would choose a name such as _read_parquet_with_metadata or similar.

@xiki-tempula xiki-tempula force-pushed the 331-parquet-file-can-now-save-metadata branch from e7d5897 to 7f6d90e Compare January 3, 2024 09:49
@xiki-tempula xiki-tempula requested a review from orbeckst January 3, 2024 10:01
Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

Thanks for your changes. It looks as if parquet is the way to go!

src/alchemlyb/parsing/parquet.py Show resolved Hide resolved
@orbeckst orbeckst self-assigned this Jan 3, 2024
@orbeckst
Copy link
Member

orbeckst commented Jan 3, 2024

RTD fails https://readthedocs.org/projects/alchemlyb/builds/23006311/ because PR #338 is not merged yet. I'll merge nevertheless.

@orbeckst orbeckst merged commit 99048eb into master Jan 3, 2024
10 of 11 checks passed
@orbeckst orbeckst deleted the 331-parquet-file-can-now-save-metadata branch January 3, 2024 17:45
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.

Parquet file can now save metadata
2 participants