mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/SPATZ.git
synced 2025-09-29 05:17:33 +00:00
added time specification for dataset and sensor classes
This commit is contained in:
@@ -37,11 +37,14 @@ class Sensor:
|
||||
raise NotImplementedError()
|
||||
|
||||
@abstractmethod
|
||||
def _get_data(self) -> ArrayLike | float:
|
||||
def _get_data(self, t: float = None) -> ArrayLike | float:
|
||||
raise NotImplementedError()
|
||||
|
||||
def get_init_data() -> ArrayLike:
|
||||
pass
|
||||
|
||||
def __call__(self) -> ArrayLike | float:
|
||||
out = self._get_data()
|
||||
def __call__(self, t: float = None) -> ArrayLike | float:
|
||||
out = self._get_data(t = t)
|
||||
out = self._sensor_specific_effects(out)
|
||||
|
||||
for transform in self._transforms:
|
||||
|
Reference in New Issue
Block a user