mosaik-emissions 0.1.0__tar.gz → 0.1.1__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.
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/CHANGELOG +6 -0
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/PKG-INFO +7 -1
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/mosaik_components/emissions/emission_simulator.py +2 -2
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/pyproject.toml +1 -1
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/AUTHORS.txt +0 -0
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/LICENSE +0 -0
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/README.md +0 -0
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/mosaik_components/emissions/__init__.py +0 -0
- {mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/mosaik_components/emissions/data/data.csv +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mosaik-emissions
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Emissions simulator for Mosaik
|
|
5
5
|
License: LICENSE
|
|
6
6
|
Author: Danila Valko
|
|
@@ -147,6 +147,12 @@ Raw data files and `data.csv` preparation notebook can be found in the `misc` fo
|
|
|
147
147
|
Changelog
|
|
148
148
|
=========
|
|
149
149
|
|
|
150
|
+
0.1.1 - 2024-05-14
|
|
151
|
+
------------------
|
|
152
|
+
|
|
153
|
+
- Examples were extended
|
|
154
|
+
- Minor corrections
|
|
155
|
+
|
|
150
156
|
0.1.0 - 2024-04-08
|
|
151
157
|
------------------
|
|
152
158
|
|
{mosaik_emissions-0.1.0 → mosaik_emissions-0.1.1}/mosaik_components/emissions/emission_simulator.py
RENAMED
|
@@ -121,7 +121,7 @@ class Simulator(mosaik_api_v3.Simulator):
|
|
|
121
121
|
filtered_data['year'] += ydiff
|
|
122
122
|
|
|
123
123
|
if len(filtered_data) > 0:
|
|
124
|
-
filtered_data.drop('year', axis=1
|
|
124
|
+
filtered_data = filtered_data.drop('year', axis=1)
|
|
125
125
|
return filtered_data
|
|
126
126
|
|
|
127
127
|
raise ValueError(f"No data for: {kwargs}")
|
|
@@ -132,7 +132,7 @@ class Simulator(mosaik_api_v3.Simulator):
|
|
|
132
132
|
params = self.entities[eid]['params']
|
|
133
133
|
if attr in ['P[MW]']:
|
|
134
134
|
if 'method' in params and callable(params['method']):
|
|
135
|
-
return params['method'](eid, attr, entity, self.current_step, params)
|
|
135
|
+
return params['method'](self, eid, attr, entity, self.current_step, params)
|
|
136
136
|
elif 'co2_emission_factor' in params and pd.notna(params['co2_emission_factor']):
|
|
137
137
|
return params['co2_emission_factor']
|
|
138
138
|
else:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|