Commit 47c8d49b authored by Yannick DAYER's avatar Yannick DAYER

[py][fix] Create uses checksum files as proto dir

parent 39b9ead4
Pipeline #44261 passed with stage
in 9 minutes and 6 seconds
......@@ -90,6 +90,9 @@ def add_bio_protocols(session, path, verbose):
for size in File.size_choices:
for name in os.listdir(protocol_dir):
if os.path.isfile(os.path.join(protocol_dir, name)):
# Ignore files (consider only directories)
continue
if size == 'full':
protocol = Protocol(name)
else:
......@@ -163,6 +166,9 @@ def add_pad_protocols(session, path, verbose):
# there are 2 protocols "full" and "cropped"
for name in os.listdir(protocol_dir):
if os.path.isfile(os.path.join(protocol_dir, name)):
# Ignore files (consider only directories)
continue
protocol = PADProtocol(name)
session.add(protocol)
if verbose:
......
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