Commit 2e08f186 authored by payno's avatar payno
Browse files

[scanFactory] simplify reading

parent f5d0938f
......@@ -54,8 +54,8 @@ class ScanFactory:
return EDFTomoScan(scan=scan_path)
elif HDF5TomoScan.is_tomoscan_dir(scan_path):
return HDF5TomoScan(scan=scan_path)
raise ValueError('%s is not a valid scan path' % scan_path)
else:
raise ValueError('%s is not a valid scan path' % scan_path)
@staticmethod
def create_scan_objects(scan_path: str) -> tuple:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment