diff --git a/.gitignore b/.gitignore index ef1f539..059a3ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,16 @@ +# Pycharm **/.idea + +# Python cache *.pyc +# Virtual env /venv -**/.ipynb_checkpoints \ No newline at end of file +# jupyter notebook +**/.ipynb_checkpoints + +# setuptool dist output +**/dist +**/hadar.egg-info +**/build diff --git a/hadar/solver/__init__.py b/hadar/solver/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hadar/solver/lp/mapper.py b/hadar/solver/lp/mapper.py index 6020af5..4e2afe8 100644 --- a/hadar/solver/lp/mapper.py +++ b/hadar/solver/lp/mapper.py @@ -33,7 +33,6 @@ def __init__(self, solver: Solver, study: Study): def set_var(self, name: str, t: int, vars: LPNode): for i in range(len(vars.consumptions)): - print(name, vars.consumptions[i].variable.solution_value()) self.nodes[name].consumptions[i].quantity[t] = vars.consumptions[i].quantity for i in range(len(vars.productions)): diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f07ad06 --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +import setuptools + +with open("README.md", "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="hadar", + version="0.1.0", + author="RTE France", + author_email="francois.jolain@rte-international.com", + description="python adequacy library", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/hadar-simulator/hadar", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + ], + python_requires='>=3.6', +) \ No newline at end of file