Skip to content

Commit

Permalink
Change the function name
Browse files Browse the repository at this point in the history
  • Loading branch information
xiki-tempula committed Jan 3, 2024
1 parent ccdd91e commit e7d5897
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ dependencies:
- scikit-learn
- matplotlib
- loguru
- pyarrow

# Testing
- pytest
Expand Down
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ channels:
dependencies:
- python
- numpy
- pandas
- pandas>=2.1
- pymbar>=4
- scipy
- scikit-learn
- pyarrow
- matplotlib
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@
tests_require=["pytest", "alchemtest"],
install_requires=[
"numpy",
"pandas>=1.4",
"pandas>=2.1",
"pymbar>=4",
"scipy",
"scikit-learn",
"matplotlib",
"loguru",
"pyarrow",
],
)
6 changes: 3 additions & 3 deletions src/alchemlyb/parsing/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from . import _init_attrs


def _check_metadata(path: str, T: float) -> pd.DataFrame:
def _read_parquet_with_metadata(path: str, T: float) -> pd.DataFrame:
"""
Check if the metadata is included in the Dataframe and has the correct
temperature.
Expand Down Expand Up @@ -69,7 +69,7 @@ def extract_u_nk(path, T):
.. versionadded:: 2.1.0
"""
u_nk = _check_metadata(path, T)
u_nk = _read_parquet_with_metadata(path, T)
columns = list(u_nk.columns)
if isinstance(columns[0], str) and columns[0][0] == "(":
new_columns = []
Expand Down Expand Up @@ -114,4 +114,4 @@ def extract_dHdl(path, T):
.. versionadded:: 2.1.0
"""
return _check_metadata(path, T)
return _read_parquet_with_metadata(path, T)

0 comments on commit e7d5897

Please sign in to comment.