You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(set all data external options): additional parameters added (#2041)
* feat(set all data external options): parameters added
"binary" and "base_name" parameters added to set_all_data_external
* feat(set all external binary): doc update
* feat(set all ext options)
# This tutorial shows the different options for storing MODFLOW data in FloPy.
20
21
# Interaction with a FloPy MODFLOW 6 model is different from other models,
@@ -36,7 +37,7 @@
36
37
# This tutorial focuses on the different storage options for MODFLOW data and
37
38
# how to optimize data storage read/write speed.
38
39
39
-
# ## Introduction to Data Storage Information
40
+
# ## Introduction to Data Storage Options
40
41
# MODFLOW array and list data can either be stored internally or externally in
41
42
# text or binary files. Additionally array data can have a factor applied to
42
43
# them and can have a format flag/code to define how these data will be
@@ -215,6 +216,10 @@
215
216
print(f"New binary flag for stress period 1: {spd_record[0]['binary']}")
216
217
print(f"New filename for stress period 2: {spd_record[1]['filename']}")
217
218
219
+
# An alternative to individually setting each file to external is to call the set_all_files_external method (there is also a set_all_files_internal method to do the opposite). While this requires less code, it does not give you the ability to set the names of each individual external file. By setting the binary attribute to True, flopy will store data to binary files wherever possible.
220
+
221
+
sim.set_all_data_external(binary=True)
222
+
218
223
# ## Optimizing FloPy Performance
219
224
#
220
225
# By default FloPy will perform a number of verification checks on your data
0 commit comments