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

Allow empty strings through chemical formula regexp #1428

Merged
merged 1 commit into from Dec 8, 2022

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Dec 6, 2022

Last PR of the day, and one that can actually be reviewed and merged.

After discussions in Materials-Consortia/OPTIMADE#388, it seems that empty formulae should be allowed -- though we should wait until it is really resolved to merge this.

This PR adjusted the regexp for this and moves the test case around.

This has knock-on effects on open PRs in other repos (schemas, specification) that will need to be untangled at a later date.

@ml-evs ml-evs added schema Concerns the schema models models For issues related to the pydantic models directly labels Dec 6, 2022
@ml-evs ml-evs force-pushed the ml-evs/relax_chemform_regexp branch from 729e6e5 to 1c466f4 Compare December 6, 2022 23:44
@ml-evs ml-evs force-pushed the ml-evs/relax_chemform_regexp branch from 1c466f4 to 4c18c23 Compare December 6, 2022 23:52
@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

Merging #1428 (4c18c23) into master (a8c84c5) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1428   +/-   ##
=======================================
  Coverage   91.43%   91.43%           
=======================================
  Files          74       74           
  Lines        4392     4392           
=======================================
  Hits         4016     4016           
  Misses        376      376           
Flag Coverage Δ
project 91.43% <100.00%> (ø)
validator 91.53% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
optimade/models/utils.py 92.78% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@JPBergsma JPBergsma left a comment

Choose a reason for hiding this comment

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

LGTM

@ml-evs ml-evs merged commit eae4846 into master Dec 8, 2022
@ml-evs ml-evs deleted the ml-evs/relax_chemform_regexp branch December 8, 2022 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
models For issues related to the pydantic models directly schema Concerns the schema models
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants