Skip to content

Commit 6278a42

Browse files
committed
clean up simulation
1 parent b2d2fab commit 6278a42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flopy4/mf6/simulation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ def convert_time(value):
2323

2424
@xattree
2525
class Simulation(Context):
26-
tdis: Tdis = field(converter=convert_time, block="timing")
26+
tdis: Tdis = field(block="timing", converter=convert_time)
2727
models: dict[str, Model] = field(block="models")
2828
exchanges: dict[str, Exchange] = field(block="exchanges")
2929
solutions: dict[str, Solution] = field(block="solutiongroup")
30-
filename: str = field(default="mfsim.nam", init=False)
30+
31+
def default_filename(self) -> str:
32+
return "mfsim.nam"
3133

3234
def __attrs_post_init__(self):
3335
super().__attrs_post_init__()

0 commit comments

Comments
 (0)