- ctdfjorder.CTD.CTD.assert_data_not_empty(self, func: str) bool#
Checks if the CTD data is not empty.
- Parameters:
func (str) – Name of the calling function, used for error reporting.
- Returns:
True if the data is not empty.
- Return type:
bool
- Raises:
NoSamplesError – When the CTD object has no data.
Notes
This method is typically used internally by other methods to ensure that operations are not performed on empty datasets.
Examples
ctd_data = CTD('example.csv') ctd_data.assert_data_not_empty('example_function')