-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adding loop specific exceptions and project file
processor template
- Loading branch information
Lachlan Grose
committed
Oct 5, 2021
1 parent
db3562f
commit a7664d2
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from LoopStructural.utils import LoopImportError, LoopTypeError, LoopValueError | ||
try: | ||
from LoopProjectFile import ProjectFile | ||
except ImportError: | ||
raise LoopImportError("LoopProjectFile cannot be imported") | ||
|
||
from .process_data import ProcessInputData | ||
import numpy as np | ||
import pandas as pd | ||
import networkx | ||
|
||
from LoopStructural.utils import getLogger | ||
logger = getLogger(__name__) | ||
|
||
class Map2LoopProcessor(ProcessInputData): | ||
def __init__(self,projectife,use_thickness=None): | ||
if isinstance(projectife,ProjectFile) == False: | ||
raise LoopTypeError("projectife must be of type ProjectFile") | ||
self.projectife = projectife | ||
# super().__init__( | ||
# self.projectfile.contacts, | ||
# self.projectfile.orientations, | ||
# stratigraphic_order, | ||
# thicknesses=thicknesses, | ||
# fault_orientations=fault_orientations, | ||
# fault_locations=fault_locations, | ||
# fault_properties=fault_properties, | ||
# fault_edges=list(fault_graph.edges), | ||
# colours=dict(zip(groups['code'],groups['colour'])), | ||
# fault_stratigraphy=None, | ||
# intrusions=None, | ||
# use_thickness=use_thickness, | ||
# fault_edge_properties=fault_edge_properties | ||
# ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters