detquantlib 3.7.0__tar.gz → 3.7.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.
- {detquantlib-3.7.0 → detquantlib-3.7.2}/PKG-INFO +1 -1
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/data/databases/detdatabase.py +1 -1
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/outputs/outputs_interface.py +16 -2
- {detquantlib-3.7.0 → detquantlib-3.7.2}/pyproject.toml +1 -1
- {detquantlib-3.7.0 → detquantlib-3.7.2}/LICENSE.txt +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/README.md +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/data/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/data/entsoe/entsoe.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/data/sftp/sftp.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/dates/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/dates/dates.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/figures/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/figures/plotly_figures.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/outputs/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/stats/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/stats/data_analysis.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/tradable_products/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/tradable_products/tradable_products.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/utils/__init__.py +0 -0
- {detquantlib-3.7.0 → detquantlib-3.7.2}/detquantlib/utils/utils.py +0 -0
|
@@ -402,7 +402,7 @@ class DetDatabase:
|
|
|
402
402
|
|
|
403
403
|
# Convert end trading date to end delivery date
|
|
404
404
|
if end_trading_date is not None:
|
|
405
|
-
|
|
405
|
+
end_delivery_date = pd.Timestamp(end_trading_date).floor("D") + relativedelta(days=1)
|
|
406
406
|
|
|
407
407
|
# Convert end date to UTC and string
|
|
408
408
|
end_delivery_date = end_delivery_date.replace(tzinfo=ZoneInfo(timezone))
|
|
@@ -149,7 +149,14 @@ class OutputSet:
|
|
|
149
149
|
output_items = list()
|
|
150
150
|
self.output_items = output_items
|
|
151
151
|
|
|
152
|
-
def add_item(
|
|
152
|
+
def add_item(
|
|
153
|
+
self,
|
|
154
|
+
data,
|
|
155
|
+
filename: str,
|
|
156
|
+
extension: str,
|
|
157
|
+
sub_path: str = None,
|
|
158
|
+
export_options: dict = None,
|
|
159
|
+
):
|
|
153
160
|
"""
|
|
154
161
|
Creates an OutputItem object and adds it to the OutputSet list.
|
|
155
162
|
|
|
@@ -159,9 +166,16 @@ class OutputSet:
|
|
|
159
166
|
extension: File extension to be used when exporting the output data
|
|
160
167
|
sub_path: Within the output base directory, indicates the sub-path (if any) of the
|
|
161
168
|
folder where the output data should be exported
|
|
169
|
+
export_options: Additional options for the function exporting the output data to a file
|
|
162
170
|
"""
|
|
163
171
|
# Create OutputItem object
|
|
164
|
-
item = OutputItem(
|
|
172
|
+
item = OutputItem(
|
|
173
|
+
data=data,
|
|
174
|
+
filename=filename,
|
|
175
|
+
extension=extension,
|
|
176
|
+
sub_path=sub_path,
|
|
177
|
+
export_options=export_options,
|
|
178
|
+
)
|
|
165
179
|
# Append to OutputSet list
|
|
166
180
|
self.output_items.append(item)
|
|
167
181
|
|
|
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
|