Skip to content

Commit a51ce64

Browse files
authored
Merge pull request #625 from IN-CORE/main
Main to dev
2 parents 4162ac7 + 6a1845e commit a51ce64

File tree

10 files changed

+26
-16
lines changed

10 files changed

+26
-16
lines changed

.github/workflows/conda.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
shell: bash -l {0}
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222

2323
- name: get release info
2424
id: release_info
@@ -40,7 +40,7 @@ jobs:
4040
fi
4141
4242
- name: Cache conda
43-
uses: actions/cache@v2
43+
uses: actions/cache@v4
4444
env:
4545
# Increase this value to reset cache if environment.yml has not changed
4646
CACHE_NUMBER: 0

.github/workflows/doc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
# checkout source code
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3333

3434
# calculate some variables that are used later
3535
- name: version information
@@ -84,4 +84,4 @@ jobs:
8484
username: ${{ secrets.HUB_USERNAME }}
8585
password: ${{ secrets.HUB_PASSWORD }}
8686
tags: "${{ env.TAGS }}"
87-
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
87+
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1

.github/workflows/pypi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

1818
- name: get release info
1919
id: release_info
@@ -50,7 +50,7 @@ jobs:
5050
pip install -r requirements.txt
5151
5252
- name: Cache pip
53-
uses: actions/cache@v2
53+
uses: actions/cache@v4
5454
with:
5555
# This path is specific to Ubuntu
5656
path: ~/.cache/pip
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Publish distribution to PyPI
6868
if: github.event_name == 'release'
69-
uses: pypa/gh-action-pypi-publish@master
69+
uses: pypa/gh-action-pypi-publish@release/v1
7070
with:
7171
password: ${{ env.TOKEN }}
7272
repository_url: ${{ env.REPO_URL }}

.github/workflows/pytests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
name: Python ${{ matrix.vars.python-version }} Test
2020
steps:
2121
- name: Checkout source code
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323

2424
- name: Cache conda
25-
uses: actions/cache@v2
25+
uses: actions/cache@v4
2626
env:
2727
# Increase this value to reset cache if environment.yml has not changed
2828
CACHE_NUMBER: 0

.github/workflows/requirements.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

2424
# check all requirements
2525
- name: requirements check

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9-
## [Unreleased]
9+
## [1.20.0] - 2024-10-24
1010

1111
### Fixed
1212
- Fixed Sphinx autodoc skipping class methods with custom decorators. [#518](https://github.com/IN-CORE/pyincore/issues/518)
1313
- Pyomo version fixed to fix indp solver failure [#585](https://github.com/IN-CORE/pyincore/issues/585)
1414
- Uploaded raster files doesn't respect the order [#614](https://github.com/IN-CORE/pyincore/issues/614)
15+
- Fixed the pypi publish of the package [#621](https://github.com/IN-CORE/pyincore/issues/621)
1516

1617
### Changed
1718
- Support Interdependent recovery of residential buildings and households [#606](https://github.com/IN-CORE/pyincore/pull/606)
1819
- Remove unused insecure IN-CORE client [#581](https://github.com/IN-CORE/pyincore/issues/581)
20+
- Update GH actions to use the latest version [#623](https://github.com/IN-CORE/pyincore/issues/623)
1921

2022
### Added
2123
- Apply Black formatter [#589](https://github.com/IN-CORE/pyincore/issues/589)

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
author = ""
3434

3535
# The short X.Y version
36-
version = "1.19"
36+
version = "1.20"
3737
# The full version, including alpha/beta/rc tags
38-
release = "1.19.0"
38+
release = "1.20.0"
3939

4040
# -- General configuration ---------------------------------------------------
4141

pyincore/globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import os
1111
import shutil
1212

13-
PACKAGE_VERSION = "1.19.0"
13+
PACKAGE_VERSION = "1.20.0"
1414

1515
INCORE_API_PROD_URL = "https://incore.ncsa.illinois.edu"
1616
INCORE_API_DEV_URL = "https://incore-dev.ncsa.illinois.edu"

pyincore/utils/datasetutil.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _apply_retrofit_value(row):
152152
)
153153
else None
154154
)
155-
_ = (
155+
type = (
156156
row["config_mappingEntryKey"]["type"]
157157
if (
158158
"config_mappingEntryKey" in row.index
@@ -164,6 +164,14 @@ def _apply_retrofit_value(row):
164164

165165
if target_column and expression:
166166
if target_column in row.index:
167+
# Don't delete this line. Retrofit value is calculated based on the expression and will be
168+
# used in the later eval
169+
retrofit_value = ( # noqa: F841
170+
float(row["retrofit_value"])
171+
if type == "number"
172+
else row["retrofit_value"]
173+
)
174+
167175
# Dangerous! Be careful with the expression
168176
row[target_column] = eval(f"row[target_column]{expression}")
169177
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from setuptools import setup, find_packages
88

99
# version number of pyincore
10-
version = "1.19.0"
10+
version = "1.20.0"
1111

1212
with open("README.rst", encoding="utf-8") as f:
1313
readme = f.read()

0 commit comments

Comments
 (0)