pyconvexity 0.1.4__tar.gz → 0.3.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyconvexity might be problematic. Click here for more details.
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/PKG-INFO +1 -1
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/pyproject.toml +2 -2
- pyconvexity-0.3.8/src/pyconvexity/_version.py +1 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/pypsa/builder.py +6 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity.egg-info/PKG-INFO +1 -1
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity.egg-info/SOURCES.txt +0 -5
- pyconvexity-0.1.4/src/pyconvexity/_version.py +0 -1
- pyconvexity-0.1.4/src/pyconvexity/data/__pycache__/__init__.cpython-313.pyc +0 -0
- pyconvexity-0.1.4/src/pyconvexity/data/loaders/__pycache__/__init__.cpython-313.pyc +0 -0
- pyconvexity-0.1.4/src/pyconvexity/data/loaders/__pycache__/cache.cpython-313.pyc +0 -0
- pyconvexity-0.1.4/src/pyconvexity/data/sources/__pycache__/__init__.cpython-313.pyc +0 -0
- pyconvexity-0.1.4/src/pyconvexity/data/sources/__pycache__/gem.cpython-313.pyc +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/README.md +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/setup.cfg +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/core/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/core/database.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/core/errors.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/core/types.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/README.md +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/loaders/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/loaders/cache.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/schema/01_core_schema.sql +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/schema/02_data_metadata.sql +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/schema/03_validation_data.sql +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/schema/04_scenario_schema.sql +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/sources/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/data/sources/gem.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/io/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/io/excel_exporter.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/io/excel_importer.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/io/netcdf_exporter.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/io/netcdf_importer.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/models/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/models/attributes.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/models/components.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/models/network.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/models/scenarios.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/pypsa/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/pypsa/api.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/pypsa/batch_loader.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/pypsa/constraints.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/pypsa/solver.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/solvers/pypsa/storage.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/timeseries.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/validation/__init__.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity/validation/rules.py +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity.egg-info/dependency_links.txt +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity.egg-info/requires.txt +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/src/pyconvexity.egg-info/top_level.txt +0 -0
- {pyconvexity-0.1.4 → pyconvexity-0.3.8}/tests/test_core_types.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pyconvexity"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.8"
|
|
8
8
|
description = "Python library for energy system modeling and optimization with PyPSA"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -81,7 +81,7 @@ profile = "black"
|
|
|
81
81
|
line_length = 100
|
|
82
82
|
|
|
83
83
|
[tool.mypy]
|
|
84
|
-
python_version = "0.
|
|
84
|
+
python_version = "0.3.8"
|
|
85
85
|
warn_return_any = true
|
|
86
86
|
warn_unused_configs = true
|
|
87
87
|
disallow_untyped_defs = true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.8"
|
|
@@ -320,6 +320,12 @@ class NetworkBuilder:
|
|
|
320
320
|
attrs = bus_attributes.get(bus.id, {})
|
|
321
321
|
timeseries = bus_timeseries.get(bus.id, {})
|
|
322
322
|
|
|
323
|
+
# Add coordinate data from components table (PyPSA uses 'x' for longitude, 'y' for latitude)
|
|
324
|
+
if bus.longitude is not None:
|
|
325
|
+
attrs['x'] = bus.longitude
|
|
326
|
+
if bus.latitude is not None:
|
|
327
|
+
attrs['y'] = bus.latitude
|
|
328
|
+
|
|
323
329
|
# Merge timeseries into attributes
|
|
324
330
|
attrs.update(timeseries)
|
|
325
331
|
|
|
@@ -14,19 +14,14 @@ src/pyconvexity/core/errors.py
|
|
|
14
14
|
src/pyconvexity/core/types.py
|
|
15
15
|
src/pyconvexity/data/README.md
|
|
16
16
|
src/pyconvexity/data/__init__.py
|
|
17
|
-
src/pyconvexity/data/__pycache__/__init__.cpython-313.pyc
|
|
18
17
|
src/pyconvexity/data/loaders/__init__.py
|
|
19
18
|
src/pyconvexity/data/loaders/cache.py
|
|
20
|
-
src/pyconvexity/data/loaders/__pycache__/__init__.cpython-313.pyc
|
|
21
|
-
src/pyconvexity/data/loaders/__pycache__/cache.cpython-313.pyc
|
|
22
19
|
src/pyconvexity/data/schema/01_core_schema.sql
|
|
23
20
|
src/pyconvexity/data/schema/02_data_metadata.sql
|
|
24
21
|
src/pyconvexity/data/schema/03_validation_data.sql
|
|
25
22
|
src/pyconvexity/data/schema/04_scenario_schema.sql
|
|
26
23
|
src/pyconvexity/data/sources/__init__.py
|
|
27
24
|
src/pyconvexity/data/sources/gem.py
|
|
28
|
-
src/pyconvexity/data/sources/__pycache__/__init__.cpython-313.pyc
|
|
29
|
-
src/pyconvexity/data/sources/__pycache__/gem.cpython-313.pyc
|
|
30
25
|
src/pyconvexity/io/__init__.py
|
|
31
26
|
src/pyconvexity/io/excel_exporter.py
|
|
32
27
|
src/pyconvexity/io/excel_importer.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.4"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|