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

Move fleur schema folder #87

Merged
merged 5 commits into from Oct 12, 2021
Merged

Move fleur schema folder #87

merged 5 commits into from Oct 12, 2021

Conversation

janssenhenning
Copy link
Contributor

@janssenhenning janssenhenning commented Oct 12, 2021

This PR moves the folder masci_tools/io/parsers/fleur/fleur_schema to masci_tools/io/parsers/fleur_schema. Otherwise it is impossible to import the SchemaDict types without importing the fleur file parsers. THis means that no function used in the file parsers can directly depend on the SchemaDict without creating a range of subtle possibilities for circular import issues.

The old imports are still supported with a stub init file and emit a DeprecationWarning

This way the fleur_schema can be imported without touching the fleur parsers.
This solves a whole range of circular import issues
The only places, where we still need the TYPE_CHECKING flag is the xml/common_functions and converters since these are explicitely used in the fleur_schema subpackage
@codecov
Copy link

codecov bot commented Oct 12, 2021

Codecov Report

Merging #87 (6443430) into develop (bec765e) will increase coverage by 0.02%.
The diff coverage is 97.14%.

@@             Coverage Diff             @@
##           develop      #87      +/-   ##
===========================================
+ Coverage    80.17%   80.20%   +0.02%     
===========================================
  Files          120      121       +1     
  Lines        21643    21642       -1     
===========================================
+ Hits         17353    17357       +4     
+ Misses        4290     4285       -5     

@janssenhenning janssenhenning merged commit 342d9b9 into develop Oct 12, 2021
@janssenhenning janssenhenning deleted the move-fleur-schema branch October 12, 2021 19:30
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

Successfully merging this pull request may close these issues.

None yet

1 participant