Skip to content

Commit

Permalink
make pandas optional
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Sep 13, 2024
1 parent dda6b27 commit 46b5604
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion calphy/postprocessing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import numpy as np
import pandas as pd

def read_report(folder):
"""
Expand Down Expand Up @@ -39,6 +38,11 @@ def gather_results(mainfolder):
df: pandas DataFrame
DataFrame with results
"""
try:
import pandas as pd
except ImportError:
raise ImportError('Please install pandas to use this function')

datadict = {}
datadict['mode'] = []
datadict['status'] = []
Expand Down
1 change: 0 additions & 1 deletion environment-nolammps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ dependencies:
- uncertainties
- pydantic >=2.3.0
- pyscal3
- pandas
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ dependencies:
- uncertainties
- pydantic >=2.3.0
- pyscal3
- pandas
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
description="free energy calculation for python",
install_requires=['matplotlib', 'pytest',
'pyyaml', 'mendeleev',
'tqdm', 'scipy', 'pydantic', 'pyscal3', 'pandas'],
'tqdm', 'scipy', 'pydantic', 'pyscal3'],
license="GNU General Public License v3",
long_description=readme,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 46b5604

Please sign in to comment.