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

Fix file compatibility check #436

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

sanjayankur31
Copy link
Member

No description provided.

@sanjayankur31 sanjayankur31 added the T: enhancement Type: enhancement label Nov 6, 2024
@sanjayankur31
Copy link
Member Author

CC: @stellaprins

I think this should catch everything now.

@sanjayankur31 sanjayankur31 linked an issue Nov 6, 2024 that may be closed by this pull request
@pgleeson
Copy link
Member

pgleeson commented Nov 7, 2024

@sanjayankur31 Looks good. At the end of the day nml & lems toolchain should accpet any suffix for valid nml/lems withoutt failing, but I guess these will only raise warnings, unless you've asked them to fail on mismatch

@sanjayankur31
Copy link
Member Author

sanjayankur31 commented Nov 8, 2024

Yeh, it checks the extension first, if that does not match what we expect it parses the xml file to figure out the root node of the xml doc. If the root node does not match, it will fail. Should it only warn even then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: enhancement Type: enhancement
Projects
Status: 🔖 Ready
Development

Successfully merging this pull request may close these issues.

Improve model standard detection from files
2 participants