Skip to content

Commit

Permalink
Feature/package (#27)
Browse files Browse the repository at this point in the history
* updated requirements, fixed pandas issue
  • Loading branch information
KapilDuwadi authored Sep 25, 2023
1 parent d349b46 commit 9a843f0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion emerge/metrics/system_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def compute(self, dss_instance:dss):


total_load = dss_instance.Loads.Count()
affected_loads = list(set(self.load_bus_map.loc[total_impacted_load_buses]["loadname"]))
affected_loads = list(set(self.load_bus_map.loc[list(total_impacted_load_buses)]["loadname"]))
self.sardi_aggregated += len(affected_loads)*100/total_load

self.counter +=1
Expand Down
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ click
uvicorn[standard]
pytest
fastapi
jinja2
jinja2
json5
polars
pyarrow
19 changes: 10 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
""" Package setup file. """

from setuptools import setup, find_packages

with open("README.md","r") as fh:
with open("README.md","r", encoding="utf-8") as fh:
long_description = fh.read()

with open('requirements.txt') as f:
with open("requirements.txt", "r", encoding="utf-8") as f:
requirements = f.read().splitlines()

setup(
name='emerge',
name='NREL-emerge',
long_description=long_description,
long_description_content_type="text/markdown",
version='v2.0.0-alpha',
version='1.0.0',
description='Emerging technologies Management and Risk evaluation on distributions Grid Evolution',
author='Kapil Duwadi',
author_email='[email protected]',
packages=find_packages("src"),
# package_data={".//dssdashboard//assets":["*.css","*.png"]},
packages=find_packages(),
url="https://github.com/NREL/EMeRGE",
keywords="Distribution System DER technologies management risk impact analysis",
install_requires=requirements,
package_dir={"emerge": "emerge"},
# package_dir={"emerge": "emerge"},
entry_points={
"console_scripts": [
"emerge=emerge.cli.cli:cli"
],
},
python_requires=">=3.8",
python_requires=">=3.10",
classifiers=[
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent"
]
)

0 comments on commit 9a843f0

Please sign in to comment.