Skip to content

Commit

Permalink
Small fixes (#209)
Browse files Browse the repository at this point in the history
* removing unused function, adding version to command line tool

* adding name to version output
  • Loading branch information
K20shores authored Aug 28, 2024
1 parent 216d03c commit af17fe5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 6 additions & 1 deletion src/acom_music_box/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import argparse
from acom_music_box import MusicBox, Examples
from acom_music_box import MusicBox, Examples, __version__
import datetime
import sys
import logging
Expand Down Expand Up @@ -40,6 +40,11 @@ def parse_arguments():
default=0,
help='Increase logging verbosity. Use -v for info, -vv for debug.'
)
parser.add_argument(
'--version',
action='version',
version=f'MusicBox {__version__}',
)
parser.add_argument(
'--color-output',
action='store_true',
Expand Down
12 changes: 1 addition & 11 deletions src/acom_music_box/music_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def create_solver(
# Create a solver object using the configuration file
self.solver = musica.create_solver(
path_to_config,
musica.micmsolver.rosenbrock,
solver_type,
number_of_grid_cells)

def solve(self, output_path=None):
Expand Down Expand Up @@ -697,16 +697,6 @@ def speciesOrdering(self):
"""
return musica.species_ordering(self.solver)

def userDefinedReactionRates(self):
"""
Retrieves the user-defined reaction rates from the solver.
This function calls the `user_defined_reaction_rates` function from the `musica` module,
passing the solver instance from the current object.
Returns:
dict: The dictionary of user-defined reaction rates used in the solver.
"""
@classmethod
def order_reaction_rates(self, curr_conditions, rate_constant_ordering):
"""
Expand Down

0 comments on commit af17fe5

Please sign in to comment.