-
Notifications
You must be signed in to change notification settings - Fork 125
FEAT: Subclass of GWSignalWaveformGenerator for eccentric waveforms #1034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -579,6 +579,17 @@ def _parameters_from_source_model(self): | |
| return self._all_parameters.difference(self.defaults.keys()) | ||
|
|
||
|
|
||
| class EccentricGWSignalWaveformGenerator(GWSignalWaveformGenerator): | ||
| """ | ||
| Subclass that initializes an eccentric GWSignal Waveform Generator. | ||
| Equivalent to `GWSignalWaveformGenerator` with `eccentric=True`. | ||
| See documentation of `GWSignalWaveformGenerator` for more information. | ||
| """ | ||
|
|
||
| def __init__(self, **kwargs): | ||
| super().__init__(eccentric=True, **kwargs) | ||
|
Comment on lines
+582
to
+590
|
||
|
|
||
|
|
||
| def _try_waveform_call(func, parameters, generator, catch_waveform_errors): | ||
| try: | ||
| return func(parameters, generator) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth specifying that this doesn't do any kind of checking that the requested model actually supports eccentricity.