Skip to content

Conversation

@FBumann
Copy link
Member

@FBumann FBumann commented Mar 31, 2025

No description provided.

* Update core.py to work with another dimension

* Add scenarios to TimeSeries

* Update TimeSeriesCollection

* Update get_numeric_stats() to return values per scenario

* Update repr and str

* Improve stats

* Add utility methods to analyze data

* Move test insto class

* Improve DataConverter

* Improve DataConverter

* Improve conversion and copying

* Improve conversion and copying

* Update tests

* Update test

* Bugfix stats

* Bugfix stored_data.setter

* Improve __str__ of TimeSeries

* Bugfixes

* Add tests

* Temp

* Simplify the TImeSeriesCollection

* Simplify the TImeSeriesCollection

* Add test script

* Improve TImeSeriesAllocator

* Update TimeSeries

* Update TimeSeries

* Update selection

* Renaming

* Update TimeSeriesAllocator

* Update TimeSeriesAllocator

* Update TimeSeriesAllocator

* Update TimeSeriesAllocator

* Update selection

* Improve selection

* Improve validation of Timesteps

* Improve TimeSeries

* Improve TimeSeriesAllocator

* Update calculation and FlowSystem

* rename active_data to selected_data

* Add property

* Improve type hints

* Improve type hints

* Add options to get data without extra timestep

* Rename

* Update tests

* Bugfix for TImeSeriesData to work

* Update calculation.py

* Bugfix

* Improve as_dataset to improve aggregation

* Bugfix

* Update test

* Remove test script

* ruff check

* Revert some renaming

* Bugfix in test
@FBumann FBumann mentioned this pull request Mar 31, 2025
@FBumann
Copy link
Member Author

FBumann commented Apr 1, 2025

TODO:
Rename active_timesteps to selected_timesteps everywhere

FBumann added 13 commits April 1, 2025 18:42
* Update TImeSeries to work with only scenario data

* Get TImeSeriesCollection for  Scenario data without time index

* Simpliefy dataconverter

* Drop support for pandas dataframe and Series for now

* Remove test for pandas

* ruff check

* remove weird file

* Update methods to create timeseries in FLowSystem

* Bugfix

* Add new Datatypes

* Rename NumericData to TimestepData

* Update Datatypes

* Update Datatypes

* Update create_time_series()

* Add dimension data to Piece interfaces

* Update transform_data()

* Modify how time dimension is determined in Piecewise

* Update OnOffParameters

* Update typehints

* Update Flow

* Update Storage

* Update typehints

* Update Storage

* Bugfix

* Bugfix

* Make sure TImeSeries are only created if needed

* Bugfix

* Bugfix

* Bugfix and improve

* Use function to get the coords of the linopy model

* Updae method to determine what coords to use

* Bugfix
* Update ShareAllocationModel

* Update EffectModel

* Update Objective

* Improve float conversion in main results

* Update dims in ShareAllocationModel

* Update dims in ShareAllocationModel

* Specify dimensions for ShareAllocationModel

* Improve logic to get coords

* Bugfix

* Apply a scaling factor to the objective if ycenarios are used

* Bugfix mein results: always as floats and list of floats

* Add scenarios to calculation.py

* Improve timestep indexing.
Now adjust duration for each timestep accordingly to the new index

* Improve validation of Indexes and Bugfix calculate_hours_per_timestep()

* Add example

# Changes:
- change how main results are converted to floats
- Improved logic to get coords for vars and constraints
- Add scaling factor for the objective to have a better scaled model
- Change tilmestep indexing to also update the hours_per_timestep accordingly
- Added minimal example
# Improvements
- Add scenarios to CalculationResults
- Add Scenarios to all plotting options, defaulting to the first scenario available
- Add the scenario to the plot title and filename if scenario is used
- Improve `filter_solution`: Filter by time steps, scenarios and variable dims
- Add options `mode` to `node_balance()` and corresponding plotting methods, to allow to get/plot the flow hours instead of the flow_rate. The plot_pie() always does that
- Improve docstrings in general
Make time to always be the first dimension, improving output and consistency across the code
Add different modes to handle the size per scenario.
* Simplify InvestmentModel

* Add Scenario Weights to the SystemModel
Integrate Pandas datatypes into Conversion and update tests
@FBumann FBumann mentioned this pull request Apr 11, 2025
@FBumann
Copy link
Member Author

FBumann commented Apr 11, 2025

Moved to #243

@FBumann FBumann closed this Apr 11, 2025
@FBumann FBumann deleted the feature/scenarios branch April 11, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants