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
The setter routes dicts to set_stratigraphic_column, which raises unconditionally:
# LoopStructural/modelling/core/geological_model.py:837raiseDeprecationWarning(
"set_stratigraphic_column is deprecated, use model.stratigraphic_column.add_units instead"
)
So every processor path (ProcessInputData, Map2LoopProcessor, LoopProjectfileProcessor) crashes, including the bundled example examples/4_advanced/plot_1_model_from_geological_map.py. The dict-to-column conversion code after the raise is unreachable, and the column is cleared before raising.
DeprecationWarning: set_stratigraphic_column is deprecated, use model.stratigraphic_column.add_units instead
I have a small fix ready: turn the raise into warnings.warn so the conversion code below it runs again, plus a regression test. PR incoming. Happy to rework it if you would rather port from_processor to the new add_units API directly.
@manduinca I will probably refactor the processor workflow, happy for you to make a pr for the small fix but it will likely be replaced in the near future.
This is fixed on master since #300: set_stratigraphic_column now warns instead of raising and from_processor completes. #297 is now just a regression test for this path. I think this issue can be closed.
Activity
lachlangrose commentedon Aug 5, 2026
@manduinca I will probably refactor the processor workflow, happy for you to make a pr for the small fix but it will likely be replaced in the near future.
test: cover from_processor with a stratigraphic column
manduinca commentedon Sep 2, 2026
This is fixed on master since #300:
set_stratigraphic_columnnow warns instead of raising andfrom_processorcompletes. #297 is now just a regression test for this path. I think this issue can be closed.