Closed vpattanaik closed 1 year ago
For reference, please follow these steps to reproduce the issue.
Create project folder.
Create Python environment.
Install required packages.
pip install -r requirements.txt
conda install swig
pip install DoEgen
Check pip list
and ensure numpy
is installed. If not, install it using, pip install numpy
.
Create experiment folder (example, test_demo
) inside project folder.
Do design generation.
python -m doegen.init_config
Modify settings_design.yaml
and settings_expresults.yaml
file. Set path
, outpath
and inpath
, outpath
, resp. to the test_demo
folder created in Step 4.
Fill experiment setup table Experiment_setup.xlsx
. For testing use content of Experiment_setup_template.xlsx
from repo.
Move Experiment_results.xlsx
and Experiment_setup.xlsx
into test_demo
folder.
Now run the following command:
python -m doegen.doegen settings_design.yaml
Installed packages and corresponding versions:
> pip list
Package Version
------------------- -------
contourpy 1.0.7
cycler 0.11.0
DoEgen 0.4.8
et-xmlfile 1.1.0
fonttools 4.39.3
importlib-resources 5.12.0
joblib 1.2.0
kiwisolver 1.4.4
matplotlib 3.7.1
numpy 1.24.3
OApackage 2.6.6
openpyxl 3.1.2
packaging 23.1
pandas 2.0.1
Pillow 9.5.0
pip 23.0.1
pyparsing 3.0.9
python-dateutil 2.8.2
pytz 2023.3
PyYAML 6.0
scikit-learn 1.2.2
scipy 1.10.1
seaborn 0.12.2
setuptools 66.0.0
six 1.16.0
tabulate 0.8.7
threadpoolctl 3.1.0
tzdata 2023.3
wheel 0.38.4
xlrd 1.2.0
XlsxWriter 3.1.0
zipp 3.15.0
@vpattanaik this looks like a pandas version problem. Can you try pip install pandas==1.5.3 pip install tabulate==0.8.9 (I got an addtional error about the version of tabulate)
@sebhaan the deprecation warning is here: /root/.local/lib/python3.9/site-packages/DoEgen-0.4.8-py3.9.egg/doegen/doegen.py:208: FutureWarning: Using the level keyword in DataFrame and Series aggregations is deprecated and will be removed in a future version. Use groupby instead. df.sum(level=1) should use df.groupby(level=1).sum(). I've updated my fork for pandas 2.0 here, there were some other issues with df.plot deprecations as well: https://github.com/GeoMattB/DoEgen/commit/3678770ec30504c0ca2f5cb83afd02fca984d281
Thank you @GeoMattB. Changing versions of pandas and tabulate resolved the issue.
Hi @sebhaan, I am getting this weird error when trying to run DoEgen following Python Setup Installation. I am using the provided test file.
Have you encountered this issue before? Would appreciate your help.