@@ -405,7 +405,6 @@ def iterable_check_function(table: DynamicTable):
405405 check_function_name = "iterable_check_function" ,
406406 object_type = "TimeIntervals" ,
407407 object_name = "test_table" ,
408- location = "/acquisition/" ,
409408 file_path = self .nwbfile_paths [0 ],
410409 ),
411410 InspectorMessage (
@@ -414,7 +413,6 @@ def iterable_check_function(table: DynamicTable):
414413 check_function_name = "iterable_check_function" ,
415414 object_type = "TimeIntervals" ,
416415 object_name = "test_table" ,
417- location = "/acquisition/" ,
418416 file_path = self .nwbfile_paths [0 ],
419417 ),
420418 ]
@@ -439,55 +437,3 @@ def test_inspect_nwb_manual_iteration_stop(self):
439437 generator = inspect_nwb (nwbfile_path = self .nwbfile_paths [2 ], checks = self .checks )
440438 with self .assertRaises (expected_exception = StopIteration ):
441439 next (generator )
442-
443-
444- class TestSessionStartTimesOnFile (TestCase ):
445- @classmethod
446- def setUpClass (cls ):
447- cls .tempdir = Path (mkdtemp ())
448- cls .nwbfile_path = cls .tempdir / "test.nwb"
449- nwbfile = make_minimal_nwbfile ()
450- nwbfile .add_acquisition (DynamicTable (name = "test" , description = "" ))
451- with NWBHDF5IO (path = cls .nwbfile_path , mode = "w" ) as io :
452- io .write (nwbfile )
453-
454- @classmethod
455- def tearDownClass (cls ):
456- rmtree (cls .tempdir )
457-
458- def test_check_session_start_time_old_date_through_inspect_nwb (self ):
459- results = list (
460- inspect_nwb (
461- # nwbfile_path=self.nwbfile_path,
462- nwbfile_path = self .nwbfile_path ,
463- checks = [check_session_start_time_old_date ],
464- )
465- )
466- results_errors = [x for x in results if x .importance .name == "ERROR" ]
467- assert results_errors == []
468-
469- def test_check_session_start_time_old_date_through_inspect_nwb_before_description_check (self ):
470- results = list (
471- inspect_nwb (
472- nwbfile_path = self .nwbfile_path ,
473- checks = [check_session_start_time_old_date , check_description ],
474- )
475- )
476- results_errors = [x for x in results if x .importance .name == "ERROR" ]
477- assert results_errors == []
478-
479- def test_check_session_start_time_old_date_through_inspect_nwb_with_description_check (self ):
480- results = list (
481- inspect_nwb (
482- # nwbfile_path=self.nwbfile_path,
483- nwbfile_path = self .nwbfile_path ,
484- checks = [check_description , check_session_start_time_old_date ],
485- )
486- )
487- results_errors = [x for x in results if x .importance .name == "ERROR" ]
488- assert len (results_errors ) != 0
489- # TODO: what this test really should call is below; need to figure out source cause
490- # print(results_errors)
491- # if results_errors:
492- # print(results_errors[0].message)
493- # assert results_errors == []
0 commit comments