예제 #1
0
 def test_load_imagej_file(self):
     """roi.load_imagej: file-like arg"""
     with (data_path / "rect.roi").open("r+b") as f:
         r = roi.load_imagej(f)
     self._check_rect_roi(r)
예제 #2
0
 def test_load_imagej_path(self):
     """roi.load_imagej: Path arg"""
     r = roi.load_imagej(data_path / "rect.roi")
     self._check_rect_roi(r)
예제 #3
0
 def test_load_imagej_bytes(self):
     """roi.load_imagej: bytes arg"""
     b = (data_path / "rect.roi").read_bytes()
     r = roi.load_imagej(b)
     self._check_rect_roi(r)
예제 #4
0
 def test_load_imagej_str(self):
     """roi.load_imagej: string arg"""
     r = roi.load_imagej(str(data_path / "rect.roi"))
     self._check_rect_roi(r)