Skip to content

Commit

Permalink
small change in creat_dir (slightly clearer)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipelupessy committed Sep 12, 2022
1 parent 7e734e5 commit 6042882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/amuse/rfi/tools/create_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ def echo_int():
class {0.name_of_the_code_interface_class}({0.name_of_the_superclass_for_the_code_interface_class}):
def __init__(self, **options):
{0.name_of_the_superclass_for_the_code_interface_class}.__init__(self, {0.name_of_the_community_interface_class}(**options), **options)
# the following alternative __init__ signature is appropiate for codes that use an unspecified unit system
# the following alternative __init__ is appropiate for codes that use an unspecified unit system
# (ie the quantities have dimension but no definite scale)
#
# def __init__(self, unit_converter=None, **options):
# self.unit_converter=unit_converter
# {0.name_of_the_superclass_for_the_code_interface_class}.__init__(self, {0.name_of_the_community_interface_class}(**options), **options)
#
# in this case you also need to use the define_converter below
{0.name_of_the_superclass_for_the_code_interface_class}.__init__(self, {0.name_of_the_community_interface_class}(**options), **options)
# typically the high level specification also contains the following:
# the definition of the state model of the code
Expand Down

0 comments on commit 6042882

Please sign in to comment.