Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an error log for OMEX meta files? How can errors be detected? #38

Open
jonrkarr opened this issue Jun 20, 2021 · 1 comment
Open

Comments

@jonrkarr
Copy link
Contributor

Attached is an OMEX archive with a malformed OMEX meta file (metadata.rdf).

How can errors in the OMEX meta file be found?

import libcombine
archive = libcombine.CombineArchive()
assert archive.initializeFromArchive('tests/fixtures/Ciliberto-J-Cell-Biol-2003-morphogenesis-checkpoint.omex')

md = archive.getMetadataForLocation('./BIOMD0000000297_url.xml')
creator = md.getCreator()
print(creator.getFamilyName())
@fbergmann
Copy link
Member

There is only very limited support for the metadata element. It is expected to be precisely in the format as outlined in the archive specification. You can check by calling md.isEmpty(), which will likely be true, if the format is not of the assumed format. What you can do is to use the skipOmex flag in initializeFromArchive, which will stop all metadata processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants