Skip to content

[axs03 branch, test_axs.sh] Parameters _subs1, _subs2, _subs3 (from varisubs1) don't have correct values. #11

@maria-18-git

Description

@maria-18-git

Parameters _subs1, _subs2, _subs3 are not calculated correctly.

  1. 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']
  1. 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

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