Skip to content

Commit

Permalink
add verification results to verification df
Browse files Browse the repository at this point in the history
  • Loading branch information
leijerry888 committed Nov 19, 2024
1 parent b8741ee commit 50abe47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constrain/api/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def configure(
Args:
output_path (str): Verification results output path.
time_series_archive_name (str, optional): CSV file name for saving a complete data csv file with verification result flags. Defaults to None, which will not save any time series data archives.
time_series_csv_export_name (str, optional): CSV file name for saving a complete data csv file with verification result flags. Defaults to None, which will not save any time series data archives.
lib_items_path (str, optional): User provided verification item json path (include name of the file with extension).
lib_classes_py_file (str, optional): User provided verification item python classes file.
plot_option (str, optional): Type of plots to include. It should either be all-compact, all-expand, day-compact, or day-expand. It can also be None, which will plot all types. Default to None.
Expand Down
1 change: 1 addition & 0 deletions constrain/checklib.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(self, df: pd.DataFrame, params=None, results_folder=None):
self.results_folder = results_folder
self.verify()
self.result.name = ""
self.df["Verification Result"] = self.result

@property
def points_list(self) -> List[str]:
Expand Down
2 changes: 1 addition & 1 deletion constrain/library/automatic_oa_damper_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def automatic_oa_damper_check(self, data):
else:
return True
else:
return np.nan
return "Untested"

def verify(self):
self.result = self.df.apply(lambda d: self.automatic_oa_damper_check(d), axis=1)

0 comments on commit 50abe47

Please sign in to comment.