Skip to content

Commit 4475e94

Browse files
committed
remove src from ONLY_AFTER_INITIALIZE
1 parent fc05fce commit 4475e94

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/icoco/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ICoCoMethods: # pylint: disable=too-few-public-methods
7070
"setInputStringValue", "getOutputStringValue"]
7171
"""ICoco methods of section Scalar values I/O"""
7272

73-
ALL = ['GetICoCoMajorVersion'] + PROBLEM + TIME_STEP + RESTORE + IO_FIELD + IO_VALUE
73+
ALL = ["GetICoCoMajorVersion"] + PROBLEM + TIME_STEP + RESTORE + IO_FIELD + IO_VALUE
7474
"""All ICoCo methods"""
7575

7676

@@ -82,7 +82,8 @@ class ICoCoMethodContext: # pylint: disable=too-few-public-methods
8282

8383
ONLY_AFTER_INITIALIZE = [name for name in ICoCoMethods.ALL
8484
if name not in ["setDataFile", "setMPIComm", "initialize",
85-
"getMEDCouplingMajorVersion", "isMEDCoupling64Bits"]]
85+
"getMEDCouplingMajorVersion", "isMEDCoupling64Bits",
86+
"GetICoCoMajorVersion"]]
8687
"""Methods which must be called only AFTER ``initialize``."""
8788

8889
ONLY_INSIDE_TIME_STEP_DEFINED = ["solveTimeStep", "iterateTimeStep",

0 commit comments

Comments
 (0)