@@ -85,6 +85,7 @@ def onLoadProject(self):
8585 except json .JSONDecodeError as e :
8686 self .logger (message = f"Error loading data manager: { e } " , log_level = 2 )
8787 def onNewProject (self ):
88+ self .logger (message = "New project created, clearing data..." , log_level = 3 )
8889 self .update_from_dict ({})
8990 def set_model_manager (self , model_manager ):
9091 """Set the model manager for the data manager."""
@@ -187,7 +188,7 @@ def dem_function(x, y):
187188 def set_use_dem (self , use_dem ):
188189 self .use_dem = use_dem
189190 self ._model_manager .set_dem_function (self .dem_function )
190-
191+
191192 def set_basal_contacts (self , basal_contacts , unitname_field = None , use_z_coordinate = False ):
192193 """Set the basal contacts for the model."""
193194 self ._basal_contacts = {
@@ -465,6 +466,7 @@ def from_dict(self, data):
465466 self ._structural_orientations = data ['structural_orientations' ]
466467 if 'stratigraphic_column' in data :
467468 self ._stratigraphic_column = StratigraphicColumn .from_dict (data ['stratigraphic_column' ])
469+ print ([o .name for o in self ._stratigraphic_column .order ])
468470 self .stratigraphic_column_callback ()
469471
470472 def update_from_dict (self , data ):
@@ -539,6 +541,8 @@ def update_from_dict(self, data):
539541
540542 if self .stratigraphic_column_callback :
541543 self .stratigraphic_column_callback ()
544+ print ([o .name for o in self ._stratigraphic_column .order ])
545+
542546
543547 def find_layer_by_name (self , layer_name ):
544548 """Find a layer by name in the project."""
0 commit comments