Skip to content
Snippets Groups Projects
Commit ac81b5fa authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(extractor): arguments are correctly loaded

parent a91c1ba7
No related branches found
No related tags found
No related merge requests found
......@@ -652,10 +652,9 @@ class Extractor(ProcessABC):
self.writer.write(dset_path, series)
self.writer.id_cache.clear()
def get_meta(self, flds):
# Alan: unsure what this is doing. seems to break for "nuc_conv_3d"
# make flds a list
if not hasattr(flds, "__iter__"):
def get_meta(self, flds: t.Union[str, t.Collection]):
# Obtain metadata for one or multiple fields
if isinstance(flds, str):
flds = [flds]
meta_short = {k.split("/")[-1]: v for k, v in self.meta.items()}
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment