-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
brendan
committed
Feb 23, 2023
1 parent
32078ed
commit 0659cde
Showing
3 changed files
with
76 additions
and
2 deletions.
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,31 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
class _DataGenerator(ABC): | ||
|
||
|
||
@abstractmethod | ||
def _check_input_data(self): | ||
pass | ||
|
||
@abstractmethod | ||
def _generate_data(self): | ||
pass | ||
|
||
def _check_generated_data(self): | ||
""" | ||
want to be able to use the DataLoaders method for this since they are the same... | ||
maybe make that a function? | ||
:return: | ||
""" | ||
pass | ||
|
||
class Twiss_data_generator(_DataGenerator): | ||
|
||
def __init__(self, x_twiss, y_twiss, E, input_data): | ||
super().__init__(input_data) | ||
|
||
def _import_data(self): | ||
pass | ||
|
||
def _check_input_data(self): | ||
pass |
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