Skip to content

[axs03 branch, test_axs.sh]: Name of results in axs command doesn't work. #10

@maria-18-git

Description

@maria-18-git

The following commands don't work in test_axs.sh:
1 - axs03 d: bypath dad , dig d.multisub2.1 --epsilon=3333
2 - axs03 d: bypath dad , dig d.multisub2.1 --epsilon=3333 , , get d , dig d.multisub2.1 --epsilon=444

Results: KeyError: 'd'

  1. Run
axs03 fresh_entry , plant alpha 10 beta 20 gamma 30 multisub --:="AS^IS:^^:substitute:#{alpha}#, #{beta}# and #{gamma}#" , save grandma
axs03 fresh_entry , plant beta 200 gamma 300 _parent_entries --,:=AS^IS:^:bypath:grandma , save mum
assert 'axs03 bypath mum , substitute "#{alpha}# and #{beta}#"' '10 and 200'
assert 'axs03 bypath mum , get multisub --beta=2000' '10, 2000 and 300'
axs03 fresh_entry , plant gamma 31 delta 41 epsilon 51 zeta 60 multisub2 --,:="AS^IS:^^:substitute:#{gamma}#-#{delta}#,AS^IS:^^:substitute:#{epsilon}#-#{zeta}#" , save granddad
axs03 fresh_entry , plant delta 410 epsilon 510 _parent_entries --,:=AS^IS:^:bypath:granddad , save dad
axs03 fresh_entry , plant lambda 7000 mu 8000 _parent_entries --,:=AS^IS:^:bypath:dad,AS^IS:^:bypath:mum , save child
assert 'axs03 bypath child , substitute "#{alpha}#+#{beta}#, #{gamma}#-#{delta}#, #{epsilon}#*#{lambda}#"' '10+200, 31-410, 510*7000'
assert 'axs03 bypath dad , get multisub2 --delta=411 --zeta=611' "['31-411', '510-611']"

All commands run correctly.

  1. Run the following command:
maria@axel:~/axs03$ axs03 d: bypath dad , dig d.multisub2.1 --epsilon=3333
Traceback (most recent call last):
  File "/home/maria/axs03/param_source.py", line 235, in __getitem__
    param_entry, param_value, param_name_is_augmented = next( self.find_in_hierarchy_generator( "find_own_value_generator", param_name, parent_recursion=parent_recursion, include_self=include_self) )
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/maria/bin/axs03", line 158, in <module>
    print(pickle_struct(main()))
  File "/home/maria/bin/axs03", line 153, in main
    return ak.execute(pipeline)
  File "/home/maria/axs03/param_source.py", line 649, in execute
    result = entry_or_object.call(action_name, pos_params, edit_dict)
  File "/home/maria/axs03/param_source.py", line 508, in call
    result = runnable()
  File "/home/maria/axs03/runnable.py", line 160, in __call__
    result  = feed(action_object, joint_arg_tuple, optional_arg_dict)
  File "/home/maria/axs03/runnable.py", line 110, in feed
    ret_values = action_object(*joint_arg_tuple, **optional_arg_dict)
  File "/home/maria/axs03/param_source.py", line 303, in dig
    raise e
  File "/home/maria/axs03/param_source.py", line 288, in dig
    struct_ptr  = start_entry.__getitem__(param_name, parent_recursion=parent_recursion)
  File "/home/maria/axs03/runnable.py", line 183, in __getitem__
    param_value = super().__getitem__(param_name, parent_recursion=parent_recursion, include_self=include_self, compute_expressions=compute_expressions)
  File "/home/maria/axs03/param_source.py", line 247, in __getitem__
    raise KeyError(param_name)
KeyError: 'd'
  1. Run the following command:
maria@axel:~/axs03$ axs03 d: bypath dad , dig d.multisub2.1 --epsilon=3333 , , get d , dig d.multisub2.1 --epsilon=4444
Traceback (most recent call last):
  File "/home/maria/axs03/param_source.py", line 235, in __getitem__
    param_entry, param_value, param_name_is_augmented = next( self.find_in_hierarchy_generator( "find_own_value_generator", param_name, parent_recursion=parent_recursion, include_self=include_self) )
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/maria/bin/axs03", line 158, in <module>
    print(pickle_struct(main()))
  File "/home/maria/bin/axs03", line 153, in main
    return ak.execute(pipeline)
  File "/home/maria/axs03/param_source.py", line 649, in execute
    result = entry_or_object.call(action_name, pos_params, edit_dict)
  File "/home/maria/axs03/param_source.py", line 508, in call
    result = runnable()
  File "/home/maria/axs03/runnable.py", line 160, in __call__
    result  = feed(action_object, joint_arg_tuple, optional_arg_dict)
  File "/home/maria/axs03/runnable.py", line 110, in feed
    ret_values = action_object(*joint_arg_tuple, **optional_arg_dict)
  File "/home/maria/axs03/param_source.py", line 303, in dig
    raise e
  File "/home/maria/axs03/param_source.py", line 288, in dig
    struct_ptr  = start_entry.__getitem__(param_name, parent_recursion=parent_recursion)
  File "/home/maria/axs03/runnable.py", line 183, in __getitem__
    param_value = super().__getitem__(param_name, parent_recursion=parent_recursion, include_self=include_self, compute_expressions=compute_expressions)
  File "/home/maria/axs03/param_source.py", line 247, in __getitem__
    raise KeyError(param_name)
KeyError: 'd'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions