Commit 042547bb authored by payno's avatar payno
Browse files

black style

parent 8983b9a3
Pipeline #37782 passed with stages
in 4 minutes and 7 seconds
......@@ -222,7 +222,7 @@ def edf_to_nx(
indexes = sorted(projections_urls.keys())
first_proj_file = projections_urls[indexes[0]]
fid = fabio.open(first_proj_file.file_path())
if hasattr(fid, 'header'):
if hasattr(fid, "header"):
hd = fid.header
else:
hd = fid.getHeader()
......@@ -253,7 +253,7 @@ def edf_to_nx(
except:
ztrans_index = -1
if hasattr(fid, 'bytecode'):
if hasattr(fid, "bytecode"):
frame_type = fid.bytecode
else:
frame_type = fid.getByteCode()
......
......@@ -532,8 +532,8 @@ def _insert_frame_data(data, file_path, data_path, where, logger=None):
vds_file_path = os.path.relpath(
vds_file_path, os.path.dirname(file_path)
)
if not vds_file_path.startswith('./'):
vds_file_path = './' + vds_file_path
if not vds_file_path.startswith("./"):
vds_file_path = "./" + vds_file_path
new_virtual_source = h5py.VirtualSource(
path_or_dataset=vds_file_path,
......
Supports Markdown
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