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
{{ message }}
Repository navigation
[BUG] Notebook examples - AttributeError: 'Loop3DView' object has no attribute 'add_scalar_field' or 'add_isosurface' #263
Working with LoopStructural v1.6.16, I get the AttributeError: 'Loop3DView' object has no attribute 'add_scalar_field' or AttributeError: 'Loop3DView' object has no attribute 'add_isosurface'
when running the provided example notebooks (2b. Refolded folds, 3a. Modelling faults using structural frames, 3c. Defining the fault displacement function)
After upgrading to 1.6.18, I still have a few similar errors in some notebooks (downloaded from the last built of the doc) and python scripts (downloaded from github).
Assignining model.create_and_add_foliation to a strati object (among others), and updating the call to the viewer solves it.
AttributeError: 'Loop3DView' object has no attribute 'add_model_surfaces'
4_advanced/_model_from_geological_map
4_advanced/_5_using_logging
AttributeError: 'Loop3DView' object has no attribute 'add_isosurface'
4_advanced/_7_local_weights
3_fault/_faulted_intrusion
3_fault/_define_fault_displacement
Activity
lachlangrose commentedon Aug 4, 2025
This example wasn't updated for the new visualisation using pyvista. I've updated it and the docs are being re-run.
gpirot commentedon Aug 8, 2025
After upgrading to 1.6.18, I still have a few similar errors in some notebooks (downloaded from the last built of the doc) and python scripts (downloaded from github).
Assignining model.create_and_add_foliation to a strati object (among others), and updating the call to the viewer solves it.
AttributeError: 'Loop3DView' object has no attribute 'add_model_surfaces'
4_advanced/_model_from_geological_map
4_advanced/_5_using_logging
AttributeError: 'Loop3DView' object has no attribute 'add_isosurface'
4_advanced/_7_local_weights
3_fault/_faulted_intrusion
3_fault/_define_fault_displacement