Skip to content

Commit

Permalink
Debug for unittest and data without omitted.
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Jul 18, 2023
1 parent 02999cc commit b7d9d06
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,11 @@ def _postprocess(
# with appending frames to the omitted flash frame log. See
# explanation here:
# https://github.com/AllenInstitute/AllenSDK/issues/2577
first_row = df.iloc[0]
if first_row['omitted']:
df = df.drop(first_row.name, axis=0)
if 'omitted' in df.columns:
first_row = df.iloc[0]
if not pd.isna(first_row['omitted']):
if first_row['omitted']:
df = df.drop(first_row.name, axis=0)
return df

@staticmethod
Expand Down

0 comments on commit b7d9d06

Please sign in to comment.