Skip to content

Commit

Permalink
chore: added dataclass for input data
Browse files Browse the repository at this point in the history
  • Loading branch information
rabii-chaarani committed Jul 8, 2024
1 parent fb2b6d7 commit f32e3f2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions LoopDataConverter/input/input_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from dataclasses import dataclass
from ..datatypes import Datatype



@dataclass
class InputData:
geology: Datatype.GEOLOGY = None
structure: Datatype.STRUCTURE = None
fault: Datatype.FAULT = None
fold: Datatype.FOLD = None


def __getitem__(self, datatype: Datatype):

return self.__dict__[datatype]

@dataclass
class OutputData(InputData):

def __getitem__(self, datatype: Datatype):
return super().__getitem__(datatype)

0 comments on commit f32e3f2

Please sign in to comment.