Skip to content

Commit c1c3f2f

Browse files
authored
Merge pull request #675 from IN-CORE/main
Main to develop
2 parents feb41f4 + f9dd097 commit c1c3f2f

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ 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.22.0] - 2025-07-31
1010

1111
### Added
1212

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.21"
36+
version = "1.22"
3737
# The full version, including alpha/beta/rc tags
38-
release = "1.21.0"
38+
release = "1.22.0"
3939

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

pyincore/analyses/ncifunctionality/ncifunctionality.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ def run(self):
5151
discretized_days = self.get_parameter("discretized_days")
5252

5353
# Load all dataset-related entities for EPF
54-
epf_network_dataset = self.get_input_dataset("epn_network")
54+
epf_network_dataset = self.get_input_dataset("epf_network")
5555
if not isinstance(epf_network_dataset, NetworkDataset):
5656
epf_network_dataset = NetworkDataset.from_dataset(
57-
self.get_input_dataset("epn_network")
57+
self.get_input_dataset("epf_network")
5858
)
5959

6060
epf_network_nodes = epf_network_dataset.nodes.get_dataframe_from_shapefile()

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.21.0"
13+
PACKAGE_VERSION = "1.22.0"
1414

1515
INCORE_API_PROD_URL = "https://tools.in-core.org"
1616
INCORE_API_DEV_URL = "https://dev.in-core.org"

pyincore/hazardservice.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,12 @@ def post_earthquake_hazard_values(
209209
"""
210210
url = urljoin(self.base_earthquake_url, hazard_id + "/values")
211211
site_class_dataset_id = ""
212-
value = payload[len(payload) - 1]
213-
if "siteClassId" in value:
214-
payload = payload[:-1]
215-
site_class_dataset_id = value["siteClassId"]
212+
213+
if len(payload) > 0:
214+
value = payload[len(payload) - 1]
215+
if "siteClassId" in value:
216+
payload = payload[:-1]
217+
site_class_dataset_id = value["siteClassId"]
216218

217219
kwargs = {
218220
"files": {

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.21.0"
10+
version = "1.22.0"
1111

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

0 commit comments

Comments
 (0)