Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2981 +/- ##
==========================================
- Coverage 98.07% 97.92% -0.16%
==========================================
Files 77 66 -11
Lines 8780 7757 -1023
==========================================
- Hits 8611 7596 -1015
+ Misses 169 161 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| def get_subclasses(cls): | ||
| """Recursively find subclasses for the current class object.""" | ||
| subclasses = {} | ||
| for subclass in cls.__subclasses__(): | ||
| subclasses[subclass.__name__] = subclass | ||
| subclasses.update(get_subclasses(subclass)) | ||
|
|
||
| return subclasses |
| if hasattr(parsed_value.dt, 'tz_localize'): | ||
| parsed_value = parsed_value.dt.tz_localize(None) |
| _parse_datetime64_value(val, datetime_format, ignore_timezone) for val in value | ||
| ]) | ||
|
|
||
| return _parse_datetime64_value(value, datetime_format, ignore_timezone) |
|
|
||
| if errors: | ||
| raise InvalidDataError(errors) | ||
|
|
There was a problem hiding this comment.
this method was untested before this PR and remains untested
| return self.metadata.tables.get(self._table_name, SingleTableMetadata()) | ||
| return self.metadata.tables.get(self._table_name, _SingleTableMetadata()) | ||
|
|
||
| return self.metadata |
There was a problem hiding this comment.
this return was untested before this PR and is still untested
| self._table_synthesizers[table_name]._data_processor.table_name = table_name | ||
| self._table_parameters[table_name].update(deepcopy(table_parameters)) | ||
|
|
||
| def _validate_all_tables(self, data): |
There was a problem hiding this comment.
this method was untested before and remains untested
| if type(scale) not in (float, int) or not scale > 0: | ||
| table_names = list(self.get_metadata().tables) | ||
| if table_name not in table_names: | ||
| raise SynthesizerInputError(f"Table '{table_name}' does not exist in the metadata.") |
There was a problem hiding this comment.
this scenario is not tested
| except Exception: | ||
| continue |
There was a problem hiding this comment.
this scenario wasn't tested before this PR and remains untested
| try: | ||
| formated_date = datetime.now().strftime(datetime_format) | ||
| formatted_date = datetime.now().strftime(datetime_format) | ||
| except Exception as exception: |
There was a problem hiding this comment.
this exception scenario was untested before and remains untested
| """ | ||
| if output_folder_path == DISABLE_TMP_FILE: | ||
| # Temporary way of disabling the output file feature, used by HMA1. | ||
| return [None] |
Resolve #2944
Resolve #2948
Resolve #2954
Resolve #2955
Resolve #2952
Resolve #2992
Resolve #2950
Resolve #2993
Resolve #2953
Resolve #2994
Resolve #2956
Resolve #2986
Resolve #2984
Resolve #2957
Resolve #2985
Resolve #2990
Resolve #2995
Resolve #3003