Skip to content

Commit 0e95fb7

Browse files
committed
Added TODOs for PR.
1 parent cb5693c commit 0e95fb7

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

examples/tutorials/z_other_tutorials/json_io/04_combination_model.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
print("\nModel Metadata:")
8686
print(f"Name: {model.meta.name}")
8787
print(f"Creation Date: {model.meta.creation_date}")
88-
print(f"Last Modified: {model.meta.last_modification_date}")
88+
print(f"Last Modified: {model.meta.last_modification_date}") # TODO: This does not update here when running. In 03 you have a current date time setter
8989

9090
print("\nStructural Groups:")
9191
print(model.structural_frame)
@@ -100,23 +100,27 @@
100100
)
101101

102102
# Save the computed model
103+
# TODO: This is identical to the file saved before computation (no results stored)
103104
JsonIO.save_model_to_json(model, computed_json_file)
104105
print(f"\nSaved computed model to: {os.path.abspath(computed_json_file)}")
105106

107+
#%%
108+
106109
# Plot the results
107110
print("\nGenerating plots...")
108111

112+
109113
# 2D plots
110-
gpv.plot_2d(model, direction=['y'], show_results=False)
111-
gpv.plot_2d(model, direction='y', show_data=True, show_boundaries=True)
112-
gpv.plot_2d(model, direction='x', show_data=True)
113-
114-
# Plot the blocks accounting for fault blocks
115-
gpv.plot_2d(
116-
model=model,
117-
override_regular_grid=model.solutions.raw_arrays.litho_faults_block,
118-
show_data=True, kwargs_lithology={'cmap': 'Set1', 'norm': None}
119-
)
114+
gpv.plot_2d(model, direction='y', show_results=False)
115+
# gpv.plot_2d(model, direction='y', show_data=True, show_boundaries=True)
116+
# gpv.plot_2d(model, direction='x', show_data=True)
117+
#
118+
# # Plot the blocks accounting for fault blocks
119+
# gpv.plot_2d(
120+
# model=model,
121+
# override_regular_grid=model.solutions.raw_arrays.litho_faults_block,
122+
# show_data=True, kwargs_lithology={'cmap': 'Set1', 'norm': None}
123+
# )
120124

121125
# 3D plot
122126
gpv.plot_3d(model)

0 commit comments

Comments
 (0)