-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename package to sim-explorer and fix pipeline issues
- Loading branch information
Showing
41 changed files
with
114 additions
and
106 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,7 @@ | ||
Sphinx>=7.3 | ||
sphinx-argparse-cli>=1.16 | ||
myst-parser>=3.0 | ||
furo>=2024.5 | ||
sourcery==1.21 | ||
|
||
-r requirements.txt |
File renamed without changes.
This file contains 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 |
---|---|---|
@@ -1,39 +1,40 @@ | ||
import argparse | ||
import importlib.metadata | ||
from case_study.case import Cases, Case, Results | ||
|
||
from sim_explorer.case import Case, Cases | ||
|
||
|
||
def cli_main(): | ||
"""Provide a Command Line Interface for sim-explorer. | ||
`see Python tutorial for working with argparse <https://docs.python.org/3/howto/argparse.html>`_ | ||
""" | ||
__version__ = importlib.metadata.version("case_study") | ||
parser = argparse.ArgumentParser(prog="case_study") | ||
__version__ = importlib.metadata.version("sim_explorer") | ||
parser = argparse.ArgumentParser(prog="sim_explorer") | ||
parser.add_argument("-V", "--version", action="version", version=__version__) | ||
parser.add_argument("cases", type=str, help="The sim-explorer specification file.") | ||
parser.add_argument("--info", action="store_true", help="Display the structure of the defined cases.") | ||
parser.add_argument("--info", action="store_true", help="Display the structure of the defined cases.") | ||
parser.add_argument("--run", type=str, help="Run a single case.") | ||
parser.add_argument("--Run", type=str, help="Run a case and all its sub-cases.") | ||
args = parser.parse_args() | ||
cases = Cases( args.cases) | ||
cases = Cases(args.cases) | ||
print("ARGS", args) | ||
if not isinstance(case, Cases): | ||
if not isinstance(cases, Cases): | ||
print(f"Instantiation of {args.cases} not successfull") | ||
if args.info is not None: | ||
print(cases.info()) | ||
elif args.run is not None: | ||
case = cases.case_by_name( args.run) | ||
case = cases.case_by_name(args.run) | ||
if not isinstance(case, Case): | ||
print(f"Case {args.case} not found in {args.cases}") | ||
case.run() | ||
elif args.Run is not None: | ||
case = cases.case_by_name( args.Run) | ||
case = cases.case_by_name(args.Run) | ||
if not isinstance(case, Case): | ||
print(f"Case {args.case} not found in {args.cases}") | ||
for c in case.iter(): | ||
c.run() | ||
|
||
|
||
if __name__ == "__main__": | ||
cli_main() | ||
cli_main() |
This file contains 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 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
File renamed without changes.
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.