Skip to content

Commit 58a47cb

Browse files
committed
docstgring fixup
1 parent 4d63ab8 commit 58a47cb

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/icoco/problem.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Problem(ABC):
3434
3535
are not always needed since a code might not have any integer field to work with for example.
3636
Consequently, default implementation for all methods of this interface is to raise an
37-
icoco.NotImplemented exception.
37+
`icoco.exception.NotImplementedMethod` exception.
3838
3939
Some of the methods may not be called when some conditions are not met (i.e. when not in the
4040
correct context). Thus in this documentation we define the "TIME_STEP_DEFINED context" as the
@@ -113,9 +113,9 @@ def setDataFile(self, datafile: str) -> None:
113113
114114
Raises
115115
------
116-
icoco.WrongContext
116+
WrongContext
117117
exception if called multiple times or after initialize().
118-
icoco.WrongArgument
118+
WrongArgument
119119
exception if an invalid path is provided.
120120
"""
121121
raise NotImplementedMethod(prob=self.problem_name, method="setDataFile")
@@ -134,9 +134,9 @@ def setMPIComm(self, mpicomm: MPIComm) -> None:
134134
135135
Raises
136136
------
137-
icoco.WrongContext
137+
WrongContext
138138
exception if called multiple times or after initialize().
139-
icoco.WrongArgument
139+
WrongArgument
140140
exception if an invalid path is provided.
141141
"""
142142
raise NotImplementedMethod(prob=self.problem_name, method="setMPIComm")

src/icoco/problem_wrapper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def __init__(self, impl: Problem, working_directory: pathlib.Path = None) -> Non
211211
212212
Raises
213213
------
214-
icoco.WrongArgument
214+
WrongArgument
215215
exception if an working directory path is provided.
216216
"""
217217

@@ -250,9 +250,9 @@ def setDataFile(self, datafile: str) -> None:
250250
251251
Raises
252252
------
253-
icoco.WrongContext
253+
WrongContext
254254
exception if called multiple times or after initialize().
255-
icoco.WrongArgument
255+
WrongArgument
256256
exception if an invalid path is provided.
257257
"""
258258
datafile_path = pathlib.Path(datafile).resolve()
@@ -288,9 +288,9 @@ def setMPIComm(self, mpicomm: MPIComm) -> None:
288288
289289
Raises
290290
------
291-
icoco.WrongContext
291+
WrongContext
292292
exception if called multiple times or after initialize().
293-
icoco.WrongArgument
293+
WrongArgument
294294
exception if an invalid path is provided.
295295
"""
296296
with in_working_dir(self._working_directory):

0 commit comments

Comments
 (0)