-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now we can call pip install -e . to install the dependencies and the package. Also fix flake8 errors.
- Loading branch information
1 parent
5ede47b
commit 15de7cd
Showing
11 changed files
with
45 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
exclude = | ||
venv | ||
max-line-length = 88 | ||
extend-ignore = E231 |
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
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
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
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
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,10 @@ | ||
pytorch >= 1.8 | ||
cvxpy >= 1.1 | ||
flake8 | ||
gurobipy == 10.0 | ||
matplotlib | ||
numpy >= 1.18 | ||
pybullet | ||
torch | ||
scipy >= 1.4 | ||
tensorboard >= 2.3 | ||
pybullet | ||
cvxpy >= 1.1 | ||
wandb |
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,24 +1,12 @@ | ||
import os | ||
|
||
from os.path import dirname, abspath, isdir | ||
|
||
|
||
def main(): | ||
cur_dir = dirname(abspath(__file__)) | ||
# Now add this folder to PYTHONPATH | ||
setup_script = cur_dir + "/config/setup_environments.sh" | ||
if not isdir(cur_dir+"/config"): | ||
print("create config folder") | ||
os.mkdir(cur_dir+"/config") | ||
with open(setup_script, "a") as f: | ||
f.write(f""" | ||
export PYTHONPATH={cur_dir}:${{PYTHONPATH}} | ||
""") | ||
print(""" | ||
To use neural_network_lyapunov functionality: | ||
source ./config/setup_environments.sh | ||
""") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
from setuptools import setup, find_packages | ||
|
||
# Read the contents of requirements file | ||
with open("requirements.txt") as f: | ||
requirements = f.read().splitlines() | ||
|
||
setup( | ||
name="neural-network-lyapunov", | ||
version="0.1", | ||
packages=find_packages(), | ||
install_requires=requirements, | ||
) |