|
@ -5,13 +5,14 @@ import struct |
|
|
|
|
|
|
|
|
from nd2reader.artificial import ArtificialND2 |
|
|
from nd2reader.artificial import ArtificialND2 |
|
|
from nd2reader.common import get_version, parse_version, parse_date, _add_to_metadata, _parse_unsigned_char, \ |
|
|
from nd2reader.common import get_version, parse_version, parse_date, _add_to_metadata, _parse_unsigned_char, \ |
|
|
_parse_unsigned_int, _parse_unsigned_long, _parse_double |
|
|
|
|
|
|
|
|
_parse_unsigned_int, _parse_unsigned_long, _parse_double, check_or_make_dir |
|
|
from nd2reader.exceptions import InvalidVersionError |
|
|
from nd2reader.exceptions import InvalidVersionError |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestCommon(unittest.TestCase): |
|
|
class TestCommon(unittest.TestCase): |
|
|
def setUp(self): |
|
|
def setUp(self): |
|
|
dir_path = path.dirname(path.realpath(__file__)) |
|
|
dir_path = path.dirname(path.realpath(__file__)) |
|
|
|
|
|
check_or_make_dir(path.join(dir_path, 'test_data/')) |
|
|
self.test_file = path.join(dir_path, 'test_data/test.nd2') |
|
|
self.test_file = path.join(dir_path, 'test_data/test.nd2') |
|
|
|
|
|
|
|
|
def create_test_nd2(self): |
|
|
def create_test_nd2(self): |
|
|