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

use "1" rather than 1 in easystack files, since 1 == True in Python #153

Merged
merged 1 commit into from
May 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/easystack-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,17 @@ easyconfigs:
- OpenFOAM-v2206-foss-2022a.eb:
options:
installpath: /my/custom/installpath
parallel: "1"
```

!!! note
You need to take care with some values in YAML, especially integers, booleans, etc.

If the specified value definitely must be a string value, you should use quotes (`'...'`) to avoid
that the YAML parser automatically converts the value to be of a specific type.

If you wish to use _1_ (the number one), such as for the value to `parallel` option in the example
above, then this should be quoted, to avoid it being treated as the boolean `True`.

In other cases, the automatic conversion is useful, like for the `True` used above,
since `debug` is a boolean configuration option.
Expand Down