Skip to content

Commit

Permalink
Merge pull request #343 from idea-fasoc/quickfixnumpy
Browse files Browse the repository at this point in the history
Fix numpy versions to < 2
  • Loading branch information
msaligane authored Oct 17, 2024
2 parents 5e9f613 + f923d97 commit db94caa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 25 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/glayout_opamp_sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ jobs:
$IMAGE_NAME \
bash -c "\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/tapeout/tapeout_and_RL/. &&\
pip uninstall glayout -y &&\
pip3 install -r requirements.txt &&\
pip3 uninstall glayout -y &&\
cd ./openfasoc/generators/glayout/tapeout/tapeout_and_RL/ &&\
pip3 install prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
pip3 install -r requirements.txt &&\
pip3 install --force-reinstall -r ./../../requirements.txt &&\
python3 test_glayout_ci.py --component opamp_parametric
" && exit_code=$? | tee -a glayout.log
if [ $? -ne 0 ]; then exit 1; fi
Expand Down
22 changes: 6 additions & 16 deletions .github/workflows/glayout_sky130.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ jobs:
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
pip3 install --force-reinstall -r requirements.txt &&\
python3 test_glayout_ci.py --component opamp
" && exit_code=$? | tee -a glayout.log
if [ $? -ne 0 ]; then exit 1; fi
Expand All @@ -63,9 +61,7 @@ jobs:
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
pip3 install --force-reinstall -r requirements.txt &&\
python3 test_glayout_ci.py --component pmos
" && exit_code=$? | tee -a glayout.log
if [ $? -ne 0 ]; then exit 1; fi
Expand All @@ -82,12 +78,10 @@ jobs:
-w $PWD \
$IMAGE_NAME \
bash -c "\
pip uninstall glayout -y &&\
pip3 uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
pip3 install --force-reinstall -r requirements.txt &&\
python3 test_glayout_ci.py --component nmos
" && exit_code=$? | tee -a glayout.log
if [ $? -ne 0 ]; then exit 1; fi
Expand All @@ -107,9 +101,7 @@ jobs:
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
pip3 install --force-reinstall -r requirements.txt &&\
python3 test_glayout_ci.py --component diff_pair
" && exit_code=$? | tee -a glayout.log
if [ $? -ne 0 ]; then exit 1; fi
Expand All @@ -129,9 +121,7 @@ jobs:
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
pip3 install --force-reinstall -r requirements.txt &&\
python3 test_glayout_ci.py --component current_mirror
" && exit_code=$? | tee -a glayout.log
if [ $? -ne 0 ]; then exit 1; fi
Expand Down
8 changes: 5 additions & 3 deletions openfasoc/generators/glayout/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
gdsfactory==7.7.0
prettyprint
prettyprinttree
numpy==1.23.5
nltk
torch
transformers
Expand All @@ -22,3 +20,7 @@ optimum
trl
langchain_huggingface
tensorboard
gdsfactory==7.7.0
prettyprint
prettyprinttree
gdstk
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ scikit-learn
matplotlib
scipy
seaborn
prettyprinttree
prettyprinttree

0 comments on commit db94caa

Please sign in to comment.