1515
1616import  numpy  as  np 
1717
18- from   sigmf   import  error ,  sigmffile ,  utils 
19- from  sigmf . sigmffile  import  SigMFFile 
18+ import  sigmf 
19+ from  sigmf  import  SigMFFile ,  error ,  utils 
2020
2121from  .testdata  import  * 
2222
@@ -38,9 +38,9 @@ def tearDown(self):
3838    def  test_pathlib_handle (self ):
3939        """ensure file can be a string or a pathlib object""" 
4040        self .assertTrue (self .temp_path_data .exists ())
41-         obj_str  =  sigmffile .fromfile (str (self .temp_path_data ))
41+         obj_str  =  sigmf .fromfile (str (self .temp_path_data ))
4242        obj_str .validate ()
43-         obj_pth  =  sigmffile .fromfile (self .temp_path_data )
43+         obj_pth  =  sigmf .fromfile (self .temp_path_data )
4444        obj_pth .validate ()
4545
4646    def  test_filenames_with_dots (self ):
@@ -54,7 +54,7 @@ def test_filenames_with_dots(self):
5454            self .sigmf_object .tofile (temp_path_meta )
5555            files  =  [str (temp_path_data ), temp_path_data , str (temp_path_meta ), temp_path_meta ]
5656            for  filename  in  files :
57-                 obj  =  sigmffile .fromfile (filename )
57+                 obj  =  sigmf .fromfile (filename )
5858                obj .validate ()
5959
6060    def  test_iterator_basic (self ):
@@ -245,7 +245,7 @@ def prepare(self, data: list, meta: dict, dtype: type) -> SigMFFile:
245245        np .array (data , dtype = dtype ).tofile (self .temp_path_data )
246246        with  open (self .temp_path_meta , "w" ) as  handle :
247247            json .dump (meta , handle )
248-         meta  =  sigmffile .fromfile (self .temp_path_meta , skip_checksum = True )
248+         meta  =  sigmf .fromfile (self .temp_path_meta , skip_checksum = True )
249249        return  meta 
250250
251251    def  test_000 (self ) ->  None :
@@ -367,7 +367,7 @@ def test_add_annotation():
367367def  test_fromarchive (test_sigmffile ):
368368    with  tempfile .NamedTemporaryFile (suffix = ".sigmf" ) as  temp_file :
369369        archive_path  =  test_sigmffile .archive (name = temp_file .name )
370-         result  =  sigmffile .fromarchive (archive_path = archive_path )
370+         result  =  sigmf .fromarchive (archive_path = archive_path )
371371        assert  result ._metadata  ==  test_sigmffile ._metadata  ==  TEST_METADATA 
372372
373373
0 commit comments