Skip to content

Commit

Permalink
LINT flake8 don't like dictionary lined up like table
Browse files Browse the repository at this point in the history
  • Loading branch information
htwangtw authored and smoia committed Apr 26, 2023
1 parent 50ec537 commit 440b4dd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions phys2bids/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,15 @@ def load_smr(filename, chtrig=0):

# taken from sonpy demo
read_data = {
sonpy.lib.DataType.Adc: sonpy.lib.SonFile.ReadInts,
sonpy.lib.DataType.EventFall: sonpy.lib.SonFile.ReadEvents,
sonpy.lib.DataType.EventRise: sonpy.lib.SonFile.ReadEvents,
sonpy.lib.DataType.EventBoth: sonpy.lib.SonFile.ReadEvents,
sonpy.lib.DataType.Marker: sonpy.lib.SonFile.ReadMarkers,
sonpy.lib.DataType.AdcMark: sonpy.lib.SonFile.ReadWaveMarks,
sonpy.lib.DataType.RealMark: sonpy.lib.SonFile.ReadRealMarks,
sonpy.lib.DataType.TextMark: sonpy.lib.SonFile.ReadTextMarks,
sonpy.lib.DataType.RealWave: sonpy.lib.SonFile.ReadFloats
sonpy.lib.DataType.Adc: sonpy.lib.SonFile.ReadInts,
sonpy.lib.DataType.EventFall: sonpy.lib.SonFile.ReadEvents,
sonpy.lib.DataType.EventRise: sonpy.lib.SonFile.ReadEvents,
sonpy.lib.DataType.EventBoth: sonpy.lib.SonFile.ReadEvents,
sonpy.lib.DataType.Marker: sonpy.lib.SonFile.ReadMarkers,
sonpy.lib.DataType.AdcMark: sonpy.lib.SonFile.ReadWaveMarks,
sonpy.lib.DataType.RealMark: sonpy.lib.SonFile.ReadRealMarks,
sonpy.lib.DataType.TextMark: sonpy.lib.SonFile.ReadTextMarks,
sonpy.lib.DataType.RealWave: sonpy.lib.SonFile.ReadFloats
}

smrfile = sonpy.lib.SonFile(filename, True)
Expand Down

0 comments on commit 440b4dd

Please sign in to comment.