Skip to content

Commit

Permalink
need requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
wingechr committed Jul 17, 2023
1 parent 2d97ed8 commit 9c8581e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
python-version: "3.x"
cache: "pip" # caching pip dependencies
- run: pip install --upgrade -r requirements-dev.txt
- run: pip install --upgrade -r requirements.txt
- run: python -m build --sdist --wheel --outdir dist/
- run: mkdocs gh-deploy --force
- uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
5 changes: 4 additions & 1 deletion data_disaggregation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ def transform(

# scale extensive => intensive
if vtype == VT_NumericExt:
data = dict((f, v / size_in[f]) for f, v in data.items())
try:
data = dict((f, v / size_in[f]) for f, v in data.items())
except TypeError:
raise Exception(data)

# filter unused in weight_map: input:
weight_map = dict(((f, t), w) for (f, t), w in weight_map.items() if f in data)
Expand Down
File renamed without changes.

0 comments on commit 9c8581e

Please sign in to comment.