Skip to content

Commit

Permalink
Better dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoFara committed Jun 22, 2021
1 parent 67ff143 commit ce67b88
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Data from optimizer are currently in .txt files
*.txt
leggedsnake/*.txt
# Project generate several videos
*.mp4

Expand Down
15 changes: 9 additions & 6 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: pylinkage-env
name: leggedsnake-env
channels:
- conda-forge
- defaults
dependencies:
- matplotlib=3.3.4=py38h06a4308_0
- matplotlib-base=3.3.4=py38h62a2d02_0
- numpy=1.20.2=py38h2d18471_0
- numpy-base=1.20.2=py38hfae3a4d_0
- numpydoc=1.1.0=pyhd3eb1b0_1
- matplotlib>=3.3.4=py38h06a4308_0
- matplotlib-base>=3.3.4=py38h62a2d02_0
- numpy>=1.20.2=py38h2d18471_0
- numpy-base>=1.20.2=py38hfae3a4d_0
- numpydoc>=1.1.0=pyhd3eb1b0_1
- pymunk>5.0.0
- pip
- pip:
- pygad>=2.10.0
- pylinkage
10 changes: 7 additions & 3 deletions leggedsnake/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
make study of planar mecanisms easy.
"""
# Used to read GeoGebra file
import zipfile as zf
import xml.etree.ElementTree as ET
try:
# Used to read GeoGebra file
import zipfile as zf
import xml.etree.ElementTree as ET
except ModuleNotFoundError as err:
print(err)
print("You won't be able to use the GeoGebra interface.")


def ggb_extractor(file_path):
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy>=1.20.2
pygad>=2.10.0
pymunk
pylinkage
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = leggedsnake
version = 0.0.1
author = Hugo Farajallah
author_email = Hugo DOT Farajallah AT protonmail.com
description = A package intended to optimize planar leg mechanisms
long_description_content_type = text/markdown
license = MIT License
url = https://github.com/HugoFara/leggedsnake
long_description = file: README.md
Expand Down

0 comments on commit ce67b88

Please sign in to comment.