File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -77,26 +77,29 @@ class NeuroshareapiIO(BaseIO):
7777 # This object operates on neuroshare files
7878 mode = "file"
7979
80- def __init__ (self , filename = None , dllpath = None ):
80+ def __init__ (self , filename = None , dllname = None ):
8181 """
8282 Arguments:
8383 filename : the filename
84+ dllname: the path of the library to use for reading
8485 The init function will run automatically upon calling of the class, as
8586 in: test = MultichannelIO(filename = filetoberead.mcd), therefore the first
8687 operations with the file are set here, so that the user doesn't have to
8788 remember to use another method, than the ones defined in the NEO library
8889
8990 """
9091 BaseIO .__init__ (self )
91- self .filename = filename
92+ self .filename = str ( filename )
9293 # set the flags for each event type
9394 eventID = 1
9495 analogID = 2
9596 epochID = 3
9697 # if a filename was given, create a dictionary with information that will
9798 # be needed later on.
9899 if self .filename is not None :
99- if dllpath is not None :
100+ if dllname is not None :
101+ # converting to string to also accept pathlib objects
102+ dllpath = str (dllname )
100103 name = os .path .splitext (os .path .basename (dllpath ))[0 ]
101104 library = ns .Library (name , dllpath )
102105 else :
You can’t perform that action at this time.
0 commit comments