Example #1
0
 def test_Narrative_file(self):
     import niprov
     niprov.discover('testdata')
     pth = os.path.abspath('testdata/dicom/T1.dcm')
     provenance = niprov.ProvenanceContext().get().byLocation(pth)
     text = niprov.export(provenance, 'direct', 'narrated')
     self.assertEqual(text, (
         "This is a T1 image. It was recorded August 5, "
         "2014. The participant's name is 05aug14test. It is 158KB in size. "
     ))
Example #2
0
    def test_Narrative_file(self):
        import niprov

        niprov.discover("testdata")
        pth = os.path.abspath("testdata/dicom/T1.dcm")
        provenance = niprov.ProvenanceContext().get().byLocation(pth)
        text = niprov.export(provenance, "direct", "narrated")
        self.assertEqual(
            text,
            (
                "This is a T1 image. It was recorded August 5, "
                "2014. The participant's name is 05aug14test. It is 158KB in size. "
            ),
        )
Example #3
0
 def export(self, *args, **kwargs):
     import niprov
     return niprov.export(*args, dependencies=self.dependencies, **kwargs)
Example #4
0
 def export(self, *args, **kwargs):
     import niprov
     return niprov.export(*args, dependencies=self.dependencies, **kwargs)