Skip to content

correctly check whether 'modinc' easyconfig parameter is set to True in CP2K easyblock#2138

Merged
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:cpk2
Aug 20, 2020
Merged

correctly check whether 'modinc' easyconfig parameter is set to True in CP2K easyblock#2138
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:cpk2

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

In the current version the result is always True now it honors when it is set to False

It is possible that this worked though, because IIRC True/False are singletons of their own type so type(False) == False

@boegel
Copy link
Copy Markdown
Member

boegel commented Aug 20, 2020

@Flamefire Definitely did not work as intended:

>>> bool(False)
False
>>> type(False)
<type 'bool'>
>>> bool(type(False))
True

@boegel boegel added the bug fix label Aug 20, 2020
@boegel boegel added this to the next release (4.3.0) milestone Aug 20, 2020
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel changed the title [cp2k] Eval modinc as bool correctly check whether 'modinc' easyconfig parameter is set to True in CP2K easyblock Aug 20, 2020
@boegel boegel merged commit 4a65c60 into easybuilders:develop Aug 20, 2020
@Flamefire Flamefire deleted the cpk2 branch August 20, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants