Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [Unreleased]
## [1.22.0] - 2025-07-31

### Added

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
author = ""

# The short X.Y version
version = "1.21"
version = "1.22"
# The full version, including alpha/beta/rc tags
release = "1.21.0"
release = "1.22.0"

# -- General configuration ---------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions pyincore/analyses/ncifunctionality/ncifunctionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def run(self):
discretized_days = self.get_parameter("discretized_days")

# Load all dataset-related entities for EPF
epf_network_dataset = self.get_input_dataset("epn_network")
epf_network_dataset = self.get_input_dataset("epf_network")
if not isinstance(epf_network_dataset, NetworkDataset):
epf_network_dataset = NetworkDataset.from_dataset(
self.get_input_dataset("epn_network")
self.get_input_dataset("epf_network")
)

epf_network_nodes = epf_network_dataset.nodes.get_dataframe_from_shapefile()
Expand Down
2 changes: 1 addition & 1 deletion pyincore/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os
import shutil

PACKAGE_VERSION = "1.21.0"
PACKAGE_VERSION = "1.22.0"

INCORE_API_PROD_URL = "https://tools.in-core.org"
INCORE_API_DEV_URL = "https://dev.in-core.org"
Expand Down
10 changes: 6 additions & 4 deletions pyincore/hazardservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@ def post_earthquake_hazard_values(
"""
url = urljoin(self.base_earthquake_url, hazard_id + "/values")
site_class_dataset_id = ""
value = payload[len(payload) - 1]
if "siteClassId" in value:
payload = payload[:-1]
site_class_dataset_id = value["siteClassId"]

if len(payload) > 0:
value = payload[len(payload) - 1]
if "siteClassId" in value:
payload = payload[:-1]
site_class_dataset_id = value["siteClassId"]

kwargs = {
"files": {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from setuptools import setup, find_packages

# version number of pyincore
version = "1.21.0"
version = "1.22.0"

with open("README.rst", encoding="utf-8") as f:
readme = f.read()
Expand Down
Loading