forked from sbenthall/DistributionOfWealthMPC
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from camriddell/master
Reproduce via conda
- Loading branch information
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,3 +189,4 @@ dmypy.json | |
|
||
# End of https://www.gitignore.io/api/python | ||
|
||
condaenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
#!/bin/bash | ||
# DistributionOfWealth reproduce | ||
|
||
python -m pip install -r Code/requirements.txt | ||
if ! command -v conda &> /dev/null | ||
then | ||
echo "`conda` (anaconda) needs to be installed to reproduce!" | ||
exit | ||
fi | ||
|
||
conda env update -f binder/environment.yml --prefix ./condaenv/ | ||
|
||
conda_root=$(conda info -s | grep CONDA_ROOT | sed 's/CONDA_ROOT\: //') | ||
source $conda_root/bin/activate ./condaenv | ||
|
||
ipython do_min.py |