Пример #1
0
 def test_open_file(self):
     with bwpy.File(get_sample_path(samples.brw), "r") as file:
         pass
Пример #2
0
def open_sample_copy(sample):
    return bwpy.File(get_sample_path(sample),
                     mode="a",
                     driver="core",
                     backing_store=False)
Пример #3
0
 def test_bxr_type(self):
     with bwpy.File(get_sample_path(samples.bxr), "r") as file:
         self.assertEqual("bxr", file.type)
Пример #4
0
def open_sample(sample, *args, **kwargs):
    return bwpy.File(get_sample_path(sample), *args, **kwargs)