File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed
python/react-series-data-viewer Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 22import json
33import math
44import os
5- from collections import OrderedDict
6- import numpy as np
7- from scipy import signal
85import sys
6+ from collections import OrderedDict
97
8+ import numpy as np
109from protocol_buffers import chunk_pb2 as chunk_pb
10+ from scipy import signal
1111
1212
1313def pad_values (values , chunk_size ):
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
13import argparse
4+ import sys
5+
26import mne .io
37import mne .io .edf .edf as mne_edf
48from chunking import write_chunk_directory
5- import sys
69
710
811def load_channels (exclude ):
@@ -67,7 +70,7 @@ def load_channels(exclude):
6770 if len (stim_channel_idxs ) == 1 :
6871 continue
6972
70- print ('Creating chunk for channel {} for {}' . format ( i , path ) )
73+ print (f 'Creating chunk for channel { i } for { path } ' )
7174
7275 # excluding channels in the loader reduce the time required to read the file
7376 # and avoid memory issues
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
13import argparse
4+ import sys
5+
6+ import chunking
27import mne .io
38import mne .io .eeglab .eeglab as mne_eeglab
4- import chunking
5- import sys
69
710
811def load_channels (path ):
@@ -42,7 +45,7 @@ def load_channels(path):
4245 if args .channel_count and args .channel_count < 0 :
4346 sys .exit ("Channel count must be a positive integer" )
4447
45- print ('Creating chunks for {}' . format ( path ) )
48+ print (f 'Creating chunks for { path } ' )
4649 chunking .write_chunk_directory (
4750 path = path ,
4851 from_channel_index = args .channel_index ,
You can’t perform that action at this time.
0 commit comments