Skip to content

Commit

Permalink
validateInjectionOrder refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaGomoryova committed Jul 15, 2024
1 parent aa16475 commit 3dee0e6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rcx_tk/process_metadata_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3dee0e6

Please sign in to comment.