diff --git a/src/rcx_tk/process_metadata_file.py b/src/rcx_tk/process_metadata_file.py index 7f38709..6e5cf4b 100644 --- a/src/rcx_tk/process_metadata_file.py +++ b/src/rcx_tk/process_metadata_file.py @@ -93,12 +93,7 @@ def validateInjectionOrder(df: pd.DataFrame) -> bool: Returns: bool: Whether the injectionOrder is integer. """ - #res = all(x.is_integer() for x in df['injectionOrder']) - res = df['injectionOrder'].dtypes - if res == int64: - return(True) - else: - return(False) + return(df['injectionOrder'].dtypes == int64) def derive_additional_metadata(df: pd.DataFrame) -> pd.DataFrame: """Derives additional metadata columns.