-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Parameters _subs1, _subs2, _subs3 are not calculated correctly.
- Run the following command:
maria@axel:~/axs03$ axs03 fresh_entry ---own_data='{ "n": 5, "_subs1": [ "AS^IS", "AS^IS", "^", "substitute", "N: #{n}#", {}, ["n"] ], "_subs2": [ "AS^IS", "AS^IS", "^", "execute", [[ [ "substitute", "N: #{n}#" ] ]], {}, ["n"] ], "_subs3": [ "AS^IS", "AS^IS", "^", "execute", [[ [ "get_kernel" ], [ "substitute", "N: #{n}#" ] ]], {}, ["n"] ] }' , save varisubs1
...
INFO:maria@axel stored_entry.py:save:490 [varisubs1] parameters {
"n": 5,
"_subs1": [
"AS^IS",
"^",
"substitute",
"N: #{n}#",
{},
[
"n"
]
],
"_subs2": [
"AS^IS",
"^",
"execute",
[
[
[
"substitute",
"N: #{n}#"
]
]
],
{},
[
"n"
]
],
"_subs3": [
"AS^IS",
"^",
"execute",
[
[
[
"get_kernel"
],
[
"substitute",
"N: #{n}#"
]
]
],
{},
[
"n"
]
]
} saved to '/home/maria/axs03/varisubs1/data_axs.json'
['^', 'bypath', '/home/maria/axs03/varisubs1']
- Get values of parameters:
maria@axel:~/axs03$ axs03 bypath varisubs1 , get _subs1
['^', 'substitute', 'N: #{n}#', {}, ['n']]
maria@axel:~/axs03$ axs03 bypath varisubs1 , get _subs2
['^', 'execute', [[['substitute', 'N: #{n}#']]], {}, ['n']]
maria@axel:~/axs03$ axs03 bypath varisubs1 , get _subs3
['^', 'execute', [[['get_kernel'], ['substitute', 'N: #{n}#']]], {}, ['n']]
maria@axel:~/axs03$ axs03 bypath varisubs1 , get _subs1 --n=1
['^', 'substitute', 'N: #{n}#', {}, ['n']]
maria@axel:~/axs03$ axs03 bypath varisubs1 , get _subs2 --n=2
['^', 'execute', [[['substitute', 'N: #{n}#']]], {}, ['n']]
maria@axel:~/axs03$ axs03 bypath varisubs1 , get _subs3 --n=3
['^', 'execute', [[['get_kernel'], ['substitute', 'N: #{n}#']]], {}, ['n']]
In test_axs.sh it should be:
https://github.com/krai/axs/blob/axs03/test_axs.sh#L48-L53
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels