Closed matthiaskoenig closed 5 years ago
This is exactly how I intended it to work ... each call to addMetadata creates a new document with meta information. That is perfectly fine according to the omex spec. While I added support for reading multiple ones from multiple files that is not something i see really sustainable ... i will try and create an update for the pip package later today
So I am doing something wrong. How can I get all the descriptions for the different locations in one metadata file?
there is currently no convenience method for that. I could add one if needed .. it would be something like:
descriptions = []
for location in archive.getAllLocations():
current = archive.getMetadataForLocation(location)
if current.isEmpty():
continue
descriptions.append(current)
Just to clarify: Currently with the library I can only store one description per metadata file. If I want multiple descriptions I have to add multiple metadata files.
I am still not sure if I am just doing something wrong and not getting multiple descriptions in one metafile.
The functions that are currently there are written so that they would create multiple files, rather than only one. However, if you generate all the meta information yourself, you could create one huge file containing multiple metadata descriptions, and just add it to the archive.
Somehow I get multiple metafiles in the archive when writing descriptions for multiple entries named
See for instance this example L1V3_repressilator.zip
I am using the code below to write the description.
Could you upload a pip package with the latest fixes, so I can test if these are already fixing this issue.
Thanks a lot for all your help. M