pyconvexity 0.1.1__tar.gz → 0.1.2__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.

Files changed (26) hide show
  1. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/PKG-INFO +1 -1
  2. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/pyproject.toml +1 -1
  3. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/_version.py +1 -1
  4. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/models/attributes.py +3 -1
  5. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity.egg-info/PKG-INFO +1 -1
  6. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/README.md +0 -0
  7. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/setup.cfg +0 -0
  8. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/__init__.py +0 -0
  9. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/core/__init__.py +0 -0
  10. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/core/database.py +0 -0
  11. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/core/errors.py +0 -0
  12. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/core/types.py +0 -0
  13. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/data/schema/01_core_schema.sql +0 -0
  14. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/data/schema/02_data_metadata.sql +0 -0
  15. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/data/schema/03_validation_data.sql +0 -0
  16. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/data/schema/04_scenario_schema.sql +0 -0
  17. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/models/__init__.py +0 -0
  18. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/models/components.py +0 -0
  19. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/models/network.py +0 -0
  20. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/validation/__init__.py +0 -0
  21. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity/validation/rules.py +0 -0
  22. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity.egg-info/SOURCES.txt +0 -0
  23. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity.egg-info/dependency_links.txt +0 -0
  24. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity.egg-info/requires.txt +0 -0
  25. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/src/pyconvexity.egg-info/top_level.txt +0 -0
  26. {pyconvexity-0.1.1 → pyconvexity-0.1.2}/tests/test_core_types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyconvexity
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python library for energy system modeling and optimization with PyPSA
5
5
  Author-email: Convexity Team <info@convexity.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyconvexity"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Python library for energy system modeling and optimization with PyPSA"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -1,2 +1,2 @@
1
1
  # This file is automatically updated by GitHub Actions during release
2
- __version__ = "0.1.1" # Default version for local development
2
+ __version__ = "0.1.2" # Default version for local development
@@ -334,7 +334,9 @@ def serialize_timeseries_to_parquet(timeseries: List[TimeseriesPoint]) -> bytes:
334
334
 
335
335
  if not timeseries:
336
336
  # Return empty parquet file with correct schema
337
- table = pa.table([], schema=schema)
337
+ empty_period_array = pa.array([], type=pa.int32())
338
+ empty_value_array = pa.array([], type=pa.float64())
339
+ table = pa.table([empty_period_array, empty_value_array], schema=schema)
338
340
  else:
339
341
  # Create PyArrow table with EXPLICIT schema to ensure data types match Rust
340
342
  period_indices = [p.period_index for p in timeseries]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyconvexity
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python library for energy system modeling and optimization with PyPSA
5
5
  Author-email: Convexity Team <info@convexity.com>
6
6
  License: MIT
File without changes
File without changes