-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update information for omdb in providers.json #53
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to all check out, cheers @rartino 👍
As a note, I have just tested this out in my client, and it correctly identifies your production database as a potentially valid database to be used for the client, but then after some more probing it deems it invalid due to the missing versioned URL, etc. |
@CasperWA All parts of the setup wasn't in place yet. They are now. (I'm trying to run the optimade-python-tools validator on http://optimade.openmaterialsdb.se/, but I didn't yet quite figure it out. The optimade-python-tools README.md says: "It also contains a server validator tool, which may be called from the shell or used as a GitHub Action from optimade-validator-action.", but where is the shell-script? Is there any documentation on how to run the validator?) |
Maybe it isn't described well enough in the documentation (https://www.optimade.org/optimade-python-tools/) actually, just looking at the table of contents, it seems there isn't a dedicated page for the validator yet. For shame. In any case. Ensure you have a Python 3.6+ environment. $ pip install -U optimade
Installing optimade from PyPI ...
$ optimade-validator http://optimade.openmaterialsdb.se
Validating ... To understand what options you can pass to the validator, you can use the common Note: If you want the "state-of-the-art" validator, i.e., the development version 😅 you can either |
Also, as a side note. Do you have anywhere I can post issues for your implementation? I receive a |
@CasperWA I've found and corrected a few bugs since the version you looked at this. The implementation is now in the httk devel branch, so please just file any remaining oddities you find as issues here: https://github.com/httk/httk I get 18 out of 22 from the validator, but it apparently experiences an internal failure, and I don't quite understand the error messages I get (one error it reports sends in a very odd syntax for the response_fields, but perhaps it is some issue with my info formatting...). I probably should file these as issues with the validator. |
Hey @rartino, just took a quick look at this, it seems like you're hitting every branch on the way down in terms of triggering validator errors! The internal error is being caused by your single-entry endpoint, which MUST (from memory) contain the single entry at the top-level, not as a list with 1 entry. Somehow the validator is accommodating for this failure, and then is using all of the next-level keys as the returned properties to test in other entries... It also looks like you're missing the |
@ml-evs Thanks for taking a look and giving feedback! Good find with the single entry endpoint, I'll fix that. (But I guess also the validator needs a fix :-) ) Isn't the |
Unfortunately I think this is caused by a recent change that made the validator more forgiving on the single entry endpoint where someone had forgotten to include
Looks like it is! I'll push a fix today and release v0.12.8 so it doesn't catch anyone else out. |
Hey @rartino, have nailed down the problem to pagination: when you request response fields from the OMDB, the pagination link mangles the response fields: e.g. http://optimade.openmaterialsdb.se/structures?response_fields=dimension_types |
We're just about to fix the |
@ml-evs Right, I also meant to say in my last comment that I have now implemented both (Note: the omdb database available via OPTIMADE is presently only at ~ 10% of our full database, as these changes required rebuilding the database and we are chewing through that. However, I'm of course fine with whatever numbers you get when you run your script as long as they are > 0 :-) ) |
Now httk has support for hosting OPTIMADE v1.0.0, which we are setting up for hosting omdb. This PR updates the omdb info accordingly to point to our index meta-database.