From bf100b2c23a284072d11d54e080d882da0460942 Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Tue, 6 Feb 2024 15:59:28 +1100 Subject: [PATCH] fix: adding empty samples to project class --- map2loop/project.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/map2loop/project.py b/map2loop/project.py index e82161b4..dd65f70e 100644 --- a/map2loop/project.py +++ b/map2loop/project.py @@ -139,7 +139,12 @@ def __init__( self.stratigraphic_column = StratigraphicColumn() self.deformation_history = DeformationHistory() - self.fault_orientations = None # TODO set default values for all samplers + self.fault_orientations = pandas.DataFrame( + columns=["ID", "DIPDIR", "DIP", "X", "Y", "Z"] + ) + self.fault_samples = pandas.DataFrame(columns=["ID", "X", "Y", "Z"]) + self.fold_samples = pandas.DataFrame(columns=["ID", "X", "Y", "Z"]) + self.geology_samples = pandas.DataFrame(columns=["ID", "X", "Y", "Z"]) # Check for alternate config filenames in kwargs if "metadata_filename" in kwargs and config_filename == "": config_filename = kwargs["metadata_filename"]