mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-23 12:56:14 +01:00
true -> True for the convention
This commit is contained in:
parent
db30bb8ec4
commit
92ce14a9b0
@ -70,9 +70,9 @@ def is_bool(str_):
|
|||||||
Take a string, if is a bool return the conversion into
|
Take a string, if is a bool return the conversion into
|
||||||
fortran and ocaml.
|
fortran and ocaml.
|
||||||
"""
|
"""
|
||||||
if str_.lower() in ['true', '.true.']:
|
if "true" in str_.lower():
|
||||||
return Type(None, "true", ".True.")
|
return Type(None, "true", ".True.")
|
||||||
elif str_.lower() in ['false', '.false.']:
|
elif "false" in str_.lower():
|
||||||
return Type(None, "false", ".False")
|
return Type(None, "false", ".False")
|
||||||
else:
|
else:
|
||||||
raise TypeError
|
raise TypeError
|
||||||
|
@ -8,7 +8,7 @@ default: 10000
|
|||||||
type: logical
|
type: logical
|
||||||
doc: If true, compute the PT2 at the end of the selection
|
doc: If true, compute the PT2 at the end of the selection
|
||||||
interface: input
|
interface: input
|
||||||
default: true
|
default: True
|
||||||
|
|
||||||
[PT2_max]
|
[PT2_max]
|
||||||
type: PT2_energy
|
type: PT2_energy
|
||||||
|
@ -8,7 +8,7 @@ default: 10000
|
|||||||
type: logical
|
type: logical
|
||||||
doc: If true, compute the PT2 at the end of the selection
|
doc: If true, compute the PT2 at the end of the selection
|
||||||
interface: input
|
interface: input
|
||||||
default: true
|
default: True
|
||||||
|
|
||||||
[PT2_max]
|
[PT2_max]
|
||||||
type: PT2_energy
|
type: PT2_energy
|
||||||
|
@ -14,7 +14,7 @@ default: 10000
|
|||||||
type: logical
|
type: logical
|
||||||
doc: If true, compute the PT2 at the end of the selection
|
doc: If true, compute the PT2 at the end of the selection
|
||||||
interface: input
|
interface: input
|
||||||
default: true
|
default: True
|
||||||
|
|
||||||
[PT2_max]
|
[PT2_max]
|
||||||
type: PT2_energy
|
type: PT2_energy
|
||||||
|
Loading…
Reference in New Issue
Block a user