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
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## Version 3.4.2, February 9, 2026

* Unpinned `fastkml` version to remove package dependency issues

## Version 3.4.1, January 28, 2026

* Pin Jupyter Book to 1.x until v2 migration.
Expand Down
2 changes: 1 addition & 1 deletion hopp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path


__version__ = "3.4.1"
__version__ = "3.4.2"

ROOT_DIR = Path(__file__).resolve().parent

Expand Down
13 changes: 5 additions & 8 deletions hopp/simulation/technologies/sites/site_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,9 @@ def kml_write(self, filepath, turb_coords=None, solar_region=None, wind_radius=2

@staticmethod
def kml_read(filepath):
k = kml.KML()
with open(filepath) as kml_file:
k.from_string(kml_file.read().encode("utf-8"))
features = list(k.features())[0]
placemarks = list(list(features.features())[0].features())
k = kml.KML.parse(filepath)
features = k.features[0]
placemarks = features.features[0].features

gmaps_epsg = pyproj.CRS("EPSG:4326")
project = None
Expand Down Expand Up @@ -533,7 +531,6 @@ def kml_read(filepath):

@staticmethod
def append_kml_data(kml_data, polygon, name):
folder = kml_data._features[0]._features[0]
new_pm = kml.Placemark(name=name)
new_pm.geometry = polygon
folder = kml_data.features[0].features[0]
new_pm = kml.Placemark(name=name, geometry=polygon)
folder.append(new_pm)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"NREL-PySAM>=7.0.0",
"Pillow",
"Pyomo>=6.1.2",
"fastkml<1",
"fastkml",
"floris==4.3",
"future",
"global_land_mask",
Expand Down
Loading