Skip to content

Commit

Permalink
Update _command_line_script.py (#219)
Browse files Browse the repository at this point in the history
Corrected a typo in command line argument `--skip-ingularity-fixes` renaming it to `--skip-singularity-fixes`
  • Loading branch information
MauriceHendrix authored Dec 8, 2021
1 parent 1e898ad commit 64935e0
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 29 deletions.
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Release 0.9.2
- Corrected a typo in command line argument `--skip-ingularity-fixes` renaming it to `--skip-singularity-fixes`

# Release 0.9.1
- Added RushLarsen translators for allowing output as c code (`--rush-larsen-c`) and labview (`--rush-larsen-labview`), These are for people wanting to generate generic c or labview code when using chaste_codegen as a stand-alone utility and are not used by chaste

Expand Down
4 changes: 2 additions & 2 deletions chaste_codegen/_command_line_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def process_command_line():
help='explicitly set the name of the generated class')
group.add_argument('-q', '--quiet', action='store_true', default=False,
help="quiet operation, don't print informational messages to screen")
group.add_argument('--skip-ingularity-fixes', action='store_true', default=False,
group.add_argument('--skip-singularity-fixes', action='store_true', default=False,
help="skip singularity fixes in Goldman-Hodgkin-Katz (GHK) equations.")

group = parser.add_argument_group('Chaste options', description='Options specific to Chaste code output')
Expand Down Expand Up @@ -180,7 +180,7 @@ def process_command_line():
if not args.show_outputs:
# Load model once, not once per translator, but only if we're actually generating code
model = load_model_with_conversions(args.cellml_file, use_modifiers=args.modifiers, quiet=args.quiet,
skip_singularity_fixes=args.skip_ingularity_fixes,
skip_singularity_fixes=args.skip_singularity_fixes,
skip_conversions=skip_conversion(args))

if len(translators) > 1 and skip_conversion(args):
Expand Down
4 changes: 2 additions & 2 deletions chaste_codegen/data/tests/test_console_script_help.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chaste_codegen/data/tests/test_console_script_usage.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions chaste_codegen/tests/test_console_script.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chaste_codegen/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1
0.9.2

0 comments on commit 64935e0

Please sign in to comment.