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.
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.1.1 - 2024-05-14
5
+ ------------------
6
+
7
+ - Examples were extended
8
+ - Minor corrections
9
+
4
10
  0.1.0 - 2024-04-08
5
11
  ------------------
6
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mosaik-emissions
3
- Version: 0.1.0
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
 
@@ -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, inplace=True)
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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mosaik-emissions"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "Emissions simulator for Mosaik"
5
5
  authors = ["Danila Valko <mosaik@offis.de>"]
6
6
  license = "LICENSE"