Skip to content

Commit

Permalink
hot fix: if_overridden_by_trainer
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Apr 9, 2024
1 parent 9ec86e6 commit cb2f4b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ def _get_data_source(rig):
'current_stage_actual': 'None',
'has_video': False,
'has_ephys': False,
'if_overriden_by_trainer': False,
}
_df.fillna(filled_values, inplace=True)

Expand All @@ -685,6 +686,9 @@ def _get_data_source(rig):
# drop 'bpod_backup_' columns
_df.drop([col for col in _df.columns if 'bpod_backup_' in col], axis=1, inplace=True)

# fix if_overriden_by_trainer
_df['if_overriden_by_trainer'] = _df['if_overriden_by_trainer'].astype(bool)

# _df = _df.merge(
# diff_relative_weight_next_day, how='left', on=['h2o', 'session'])

Expand Down

0 comments on commit cb2f4b3

Please sign in to comment.