-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new compression files and remove unnecessary files
- Loading branch information
1 parent
f58f4d6
commit 4cbc8aa
Showing
23 changed files
with
235 additions
and
1,268 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import numpy as np | ||
from solardatatools import DataHandler | ||
|
||
|
||
def detect_time_shifts( | ||
time_series, latitude=None, longitude=None, data_sampling_frequency=None | ||
): | ||
dh = DataHandler(time_series.to_frame()) | ||
dh.run_pipeline(fix_shifts=True, verbose=False) | ||
estimated = np.copy(dh.time_shift_analysis.s1) | ||
estimated -= dh.time_shift_analysis.baseline | ||
estimated -= dh.tz_correction | ||
estimated *= -60 | ||
return estimated |
85 changes: 47 additions & 38 deletions
85
s3Emulator/pv-validation-hub-bucket/evaluation_scripts/1/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,49 @@ | ||
{ | ||
"category_name": "time_shifts", | ||
"function_name": "detect_time_shifts", | ||
"comparison_type": "time_series", | ||
"performance_metrics": [ "runtime", "mean_absolute_error" ], | ||
"allowable_kwargs": [ "latitude", "longitude", "data_sampling_frequency" ], | ||
"ground_truth_compare": [ "time_series" ], | ||
"public_results_table": "time-shift-public-metrics.json", | ||
"private_results_columns": [ | ||
"system_id", | ||
"file_name", | ||
"run_time", | ||
"data_requirements", | ||
"mean_absolute_error_time_series", | ||
"data_sampling_frequency", | ||
"issue" | ||
], | ||
"plots": [ | ||
{ | ||
"type": "histogram", | ||
"x_val": "mean_absolute_error_time_series", | ||
"color_code": "issue", | ||
"title": "Time Series MAE Distribution by Issue", | ||
"save_file_path": "mean_absolute_error_time_series_dist.png" | ||
}, | ||
{ | ||
"type": "histogram", | ||
"x_val": "mean_absolute_error_time_series", | ||
"color_code": "data_sampling_frequency", | ||
"title": "Time Series MAE Distribution by Sampling Frequency", | ||
"save_file_path": "mean_absolute_error_time_series_dist.png" | ||
}, | ||
{ | ||
"type": "histogram", | ||
"x_val": "run_time", | ||
"title": "Run Time Distribution", | ||
"save_file_path": "run_time_dist.png" | ||
} | ||
] | ||
"category_name": "time_shifts", | ||
"function_name": "detect_time_shifts", | ||
"comparison_type": "time_series", | ||
"performance_metrics": [ | ||
"runtime", | ||
"mean_absolute_error" | ||
], | ||
"allowable_kwargs": [ | ||
"latitude", | ||
"longitude", | ||
"data_sampling_frequency" | ||
], | ||
"ground_truth_compare": [ | ||
"time_series" | ||
], | ||
"public_results_table": "time-shift-public-metrics.json", | ||
"private_results_columns": [ | ||
"system_id", | ||
"file_name", | ||
"run_time", | ||
"data_requirements", | ||
"mean_absolute_error_time_series", | ||
"data_sampling_frequency", | ||
"issue" | ||
], | ||
"plots": [ | ||
{ | ||
"type": "histogram", | ||
"x_val": "mean_absolute_error_time_series", | ||
"color_code": "issue", | ||
"title": "Time Series MAE Distribution by Issue", | ||
"save_file_path": "mean_absolute_error_time_series_dist.png" | ||
}, | ||
{ | ||
"type": "histogram", | ||
"x_val": "mean_absolute_error_time_series", | ||
"color_code": "data_sampling_frequency", | ||
"title": "Time Series MAE Distribution by Sampling Frequency", | ||
"save_file_path": "mean_absolute_error_time_series_dist.png" | ||
}, | ||
{ | ||
"type": "histogram", | ||
"x_val": "run_time", | ||
"title": "Run Time Distribution", | ||
"save_file_path": "run_time_dist.png" | ||
} | ||
] | ||
} |
Oops, something went wrong.