Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if else ignored #79

Open
squidrice21 opened this issue Aug 30, 2024 · 0 comments
Open

if else ignored #79

squidrice21 opened this issue Aug 30, 2024 · 0 comments

Comments

@squidrice21
Copy link

Running this via paramit will set both branches to have the same assignment. a could be a variable for computation that doesn't need to take an input value:

b = 20

if b > 10:
    a = 'b is greater than 10'
else:
    a = 'b is less than 10'

The generated py in the report:

b = 20

if b > 10:
    a = 'b is less than 10'
else:
    a = 'b is less than 10'

The toml file:

[global]
b = "20"
a = "b is less than 10"

[meta]
version = "0.2.1"
created_on = "2024-08-30 16:39:18.816170"
script_path = "/home/test.py"
python_path = "/home/envs/test/bin/python"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant