コード例 #1
0
ファイル: test_api.py プロジェクト: ktavabi/niprov
 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. "
     ))
コード例 #2
0
ファイル: test_api.py プロジェクト: kambysese/niprov
    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. "
            ),
        )
コード例 #3
0
 def export(self, *args, **kwargs):
     import niprov
     return niprov.export(*args, dependencies=self.dependencies, **kwargs)
コード例 #4
0
ファイル: test_exporting.py プロジェクト: ilogue/niprov
 def export(self, *args, **kwargs):
     import niprov
     return niprov.export(*args, dependencies=self.dependencies, **kwargs)