-
Notifications
You must be signed in to change notification settings - Fork 64
Add capability to parse nested suites in capgen #691
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
Open
climbfuji
wants to merge
15
commits into
NCAR:develop
Choose a base branch
from
climbfuji:feature/nested_suites
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4c04333
Add capability to parse nested suites using a new version of the XML …
climbfuji bb5d19e
Add nested_suite_test
climbfuji 26bba86
Add doctests to scripts/parse_tools/xml_tools.py, clean up scripts/cc…
climbfuji 7821cef
More cleanups
climbfuji 559c5e7
Merge branch 'develop' of https://github.com/ncar/ccpp-framework into…
climbfuji 648612a
Remove unused test/nested_suite_test/nested_suite_test_reports.py
climbfuji 219f41b
Merge branch 'develop' into feature/nested_suites
climbfuji a500b4e
Merge branch 'develop' of https://github.com/ncar/ccpp-framework into…
climbfuji 0d144ae
Nested suites: prevent infinite recursion, allow file attribute to be…
climbfuji 57acb17
Merge branch 'feature/nested_suites' of https://github.com/climbfuji/…
climbfuji 21623ce
Merge branch 'develop' into feature/nested_suites
climbfuji f336c17
Add capability to insert only a specific group of a nested suite at t…
climbfuji e0d375b
Revert back to only one suite per SDF; fix check for recursive expans…
climbfuji 2877943
In xml_tools.py: collect names of expanded suite and provide to user …
climbfuji 4ac80e4
Remove unused optional attribute lib from schema/suite_v2_0.xsd
climbfuji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,150 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
|
|
||
| <xs:schema elementFormDefault="qualified" | ||
| xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
|
||
| <!-- identifier types --> | ||
|
|
||
| <xs:simpleType name="version_type"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="[1-9][0-9]*[.][0-9]+"/> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
|
|
||
| <xs:simpleType name="fortran_id_type"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="[A-Za-z][A-Za-z0-9_]{0,63}"/> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
|
|
||
| <xs:simpleType name="subcycle_type"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="[a-z][a-z0-9_]*"/> | ||
| <xs:pattern value="[1-9][0-9]*"/> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
|
|
||
| <!-- attributes --> | ||
|
|
||
| <xs:attribute name="version" type="version_type"/> | ||
|
|
||
| <!-- definition of complex types --> | ||
|
|
||
| <xs:complexType name="scheme_type"> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:string"> | ||
| <xs:attribute name="version" type="xs:string" use="optional"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
| </xs:complexType> | ||
|
|
||
| <xs:complexType name="nested_suite_group_type"> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:string"> | ||
| <xs:attribute name="name" type="xs:string" use="required"/> | ||
| <xs:attribute name="group" type="xs:string" use="required"/> | ||
| <xs:attribute name="file" type="xs:string" use="required"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
| </xs:complexType> | ||
|
|
||
| <xs:complexType name="nested_suite_type"> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:string"> | ||
| <xs:attribute name="name" type="xs:string" use="required"/> | ||
| <xs:attribute name="group" type="xs:string" use="optional"/> | ||
| <xs:attribute name="file" type="xs:string" use="required"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
| </xs:complexType> | ||
|
|
||
| <!-- definition of suite elements --> | ||
|
|
||
| <xs:element name="time_split"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="process_split"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="subcycle"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| <xs:attribute name="loop" type="subcycle_type" use="optional"/> | ||
| <xs:attribute name="name" type="xs:string" use="optional"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="subcol"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| <xs:attribute name="gen" type="fortran_id_type" use="required"/> | ||
| <xs:attribute name="avg" type="fortran_id_type" use="required"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="group"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| <xs:element name="nested_suite" type="nested_suite_group_type"/> | ||
| </xs:choice> | ||
| <xs:attribute name="name" type="xs:ID" use="required"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="suite"> | ||
| <xs:complexType> | ||
| <xs:sequence> | ||
| <xs:choice minOccurs="0" maxOccurs="1"> | ||
| <xs:element name="init" type="scheme_type"/> | ||
| <xs:element name="initalize" type="scheme_type"/> | ||
| </xs:choice> | ||
| <xs:element ref="group" minOccurs="0" maxOccurs="unbounded"/> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element name="nested_suite" type="nested_suite_type"/> | ||
| </xs:choice> | ||
| <xs:choice minOccurs="0" maxOccurs="1"> | ||
| <xs:element name="final" type="scheme_type"/> | ||
| <xs:element name="finalize" type="scheme_type"/> | ||
| </xs:choice> | ||
| </xs:sequence> | ||
| <xs:attribute name="name" type="xs:ID" use="required"/> | ||
| <xs:attribute name="version" type="version_type" use="required"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| </xs:schema> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.