Skip to content

Commit 14f5549

Browse files
committed
updated documentation
1 parent a9fa5b5 commit 14f5549

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

docs/userguide/swatplus_simulation.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ To keep your original `TxtInOut` folder unchanged, it is recommended to run `SWA
6363

6464
```python
6565
# Update timeline in `time.sim` file
66-
target_reader.set_begin_and_end_year(
67-
begin=2012,
68-
end=2016
66+
target_reader.set_begin_and_end_date(
67+
begin_date=date(2012, 1, 1),
68+
end_date=date(2016, 12, 31),
6969
)
70+
7071
```
7172

7273
- Set warm-up years:
@@ -111,16 +112,7 @@ To keep your original `TxtInOut` folder unchanged, it is recommended to run `SWA
111112
- Run the SWAT+ simulation:
112113

113114
```python
114-
# Another way to modify `esco` parameter and perform simulation
115-
params = {
116-
'hydrology.hyd': {
117-
'has_units': False,
118-
'esco': {'value': 0.6}
119-
}
120-
}
121-
target_reader.run_swat(
122-
params=params # optional
123-
)
115+
target_reader.run_swat()
124116
```
125117

126118

@@ -142,7 +134,10 @@ params = [
142134
txtinout_reader.run_swat(
143135
target_dir=r"C:\Users\Username\simulation_folder_2", # mandatory
144136
params=params, # optional
145-
begin_and_end_year=(2012, 2016), # optional
137+
begin_and_end_date={
138+
"begin_date": date(2012, 1, 1),
139+
"end_date": date(2016, 12, 31)
140+
},
146141
warmup=1, # optional
147142
print_prt_control={'channel_sd': {'daily': False}} # optional
148143
)

0 commit comments

Comments
 (0)