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

Quality standards #211

Merged
merged 81 commits into from
Jul 12, 2021
Merged

Quality standards #211

merged 81 commits into from
Jul 12, 2021

Conversation

vhirtham
Copy link
Collaborator

@vhirtham vhirtham commented Dec 7, 2020

Changes

Describe changes in this PR

Related Issues

Closes # (add issue numbers)

Checks

  • updated CHANGELOG.md
  • updated tests
  • updated doc/
  • update example/tutorial notebooks
  • review implementation of QualityStandard class in light of the new documentation (Keyword: DirectoryResourceMapping) will be refactored in 0.5.0

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@pep8speaks
Copy link

pep8speaks commented Dec 7, 2020

Hello @vhirtham! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-07-12 12:31:38 UTC

@vhirtham
Copy link
Collaborator Author

vhirtham commented Dec 7, 2020

The tutorial text is still "work in progress", but the relevant code sections are there and are fully functional.

@vhirtham vhirtham changed the base branch from asdf_2.8 to master December 7, 2020 18:21
@vhirtham vhirtham changed the base branch from master to asdf_2.8 December 7, 2020 18:21
@vhirtham
Copy link
Collaborator Author

vhirtham commented Dec 8, 2020

I didn't strip the tutorial from all outputs so that it can be inspected on GitHub. The documentation builds are currently failing for multiple reasons and they have to be fixed first. If this is done, I will remove the outputs from the notebook.

@CagtayFabry CagtayFabry added the ASDF everything ASDF related (python + schemas) label Feb 26, 2021
@vhirtham
Copy link
Collaborator Author

Almost forgot: We need to make the cookie-cutter repo public. Otherwise the links wont work

@@ -0,0 +1,649 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tutorials needs to be pep8/black formatted.

@marscher
Copy link
Collaborator

@vhirtham Is it intended, that a QS directory only have to contain manifests with the same base name and only differing versions? I tried to add another manifest for testing purposes, e.g. test_standard2-1.0.0.yaml and then I get a ValueError("Inconsistent naming of manifest files") raised in config.py:56.

@vhirtham
Copy link
Collaborator Author

vhirtham commented Jul 1, 2021

@vhirtham Is it intended, that a QS directory only have to contain manifests with the same base name and only differing versions? I tried to add another manifest for testing purposes, e.g. test_standard2-1.0.0.yaml and then I get a ValueError("Inconsistent naming of manifest files") raised in config.py:56.

Yes, it is. It's also mentioned somewhere in the tutorial ;)

@marscher
Copy link
Collaborator

marscher commented Jul 2, 2021

There is one mistake in the tag name of the test-standard. It should be "measurement_equipment" now, not "generic_equipment".

The problem we are seeing is due to the fact, that the load_schema function in asdf is lru_cached, so a second call to with the same url (e.g. enable a standard involves a tag url) is resolved to the cache. The local config context circumvents this problem, but I have not yet figured, if it will also hurt performance (due to the lack of caching effects).

@vhirtham
Copy link
Collaborator Author

vhirtham commented Jul 7, 2021

@marscher Seems like the quality standards somehow carry over to other files now. Are you still on it?

weldx/config.py Outdated Show resolved Hide resolved
Copy link
Member

@CagtayFabry CagtayFabry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@vhirtham vhirtham merged commit dfb6c7c into master Jul 12, 2021
@marscher marscher deleted the quality_standards branch July 21, 2021 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASDF everything ASDF related (python + schemas) quality-standards discussion and implementation of schema standards
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom quality standards
4 participants