Skip to content

Commit

Permalink
Fix typo, also typo in tao (fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherMayes committed Jul 1, 2023
1 parent 0a3ad8d commit c432b32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pytao/interface_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@ def tao_global(tao, *, verbose=False, as_dict=True, raises=True):
return __execute(tao, cmd, as_dict, raises, method_name='tao_global', cmd_type='string_list')


def global_optimation(tao, *, verbose=False, as_dict=True, raises=True):
def global_optimization(tao, *, verbose=False, as_dict=True, raises=True):
"""
Output optimization parameters.
Expand All @@ -2393,7 +2393,7 @@ def global_optimation(tao, *, verbose=False, as_dict=True, raises=True):
Notes
-----
Command syntax:
python global:opti_de
python global:optimization
Output syntax is parameter list form. See documentation at the beginning of this file.
Expand All @@ -2404,9 +2404,9 @@ def global_optimation(tao, *, verbose=False, as_dict=True, raises=True):
args:
"""
cmd = f'python global:opti_de'
cmd = f'python global:optimization'
if verbose: print(cmd)
return __execute(tao, cmd, as_dict, raises, method_name='global_optimation', cmd_type='string_list')
return __execute(tao, cmd, as_dict, raises, method_name='global_optimization', cmd_type='string_list')


def global_opti_de(tao, *, verbose=False, as_dict=True, raises=True):
Expand Down
4 changes: 2 additions & 2 deletions pytao/tests/test_interface_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ def test_tao_global_1():
ret = interface_commands.tao_global(tao)


def test_global_optimation_1():
def test_global_optimization_1():

tao = Tao(os.path.expandvars('-init $ACC_ROOT_DIR/regression_tests/python_test/cesr/tao.init -noplot'))
ret = interface_commands.global_optimation(tao)
ret = interface_commands.global_optimization(tao)


def test_global_opti_de_1():
Expand Down

0 comments on commit c432b32

Please sign in to comment.