Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
grg2rsr committed Dec 6, 2024
1 parent 09983f6 commit 831d5c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 278 deletions.
274 changes: 0 additions & 274 deletions src/iblphotometry/io (Copy).py

This file was deleted.

14 changes: 10 additions & 4 deletions src/iblphotometry/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,21 @@ def from_raw_neurophotometrics_file(
)
return from_ibl_dataframe(ibl_df, **read_config)

def read_digital_inputs_csv(path: str | Path,
validate=True) -> pd.DataFrame:


def read_digital_inputs_csv(path: str | Path, validate=True) -> pd.DataFrame:
df_digital_inputs = pd.read_csv(path, header=None)
df_digital_inputs.columns = ['ChannelName', 'Channel', 'AlwaysTrue', 'SystemTimestamp', 'ComputerTimestamp']
df_digital_inputs.columns = [
'ChannelName',
'Channel',
'AlwaysTrue',
'SystemTimestamp',
'ComputerTimestamp',
]
if validate:
df_digital_inputs = validate_neurophotometrics_digital_inputs(df_digital_inputs)
return df_digital_inputs


"""
## ## ### ## #### ######## ### ######## #### ####### ## ##
## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ##
Expand Down

0 comments on commit 831d5c5

Please sign in to comment.