Add ability to use plugin models#4040
Conversation
|
@cdcapano Proposed change to your PR to fix the circular import issue cdcapano#5 |
|
I was having trouble with circular imports. Basic problem was custom model classes need to inherit from |
|
@ahnitz To avoid breaking backward compatibility, I decided to duck type the I'll add documentation and a tutorial in another PR. |
|
@cdcapano Ok, sounds good. |
* add ability to load plugin models * try to avoid circular imports * fix circular import by using functions to retrieve models * use get_models for building the models table * duck type models dict * code climate
This adds the ability for users to define their own models that can be used in pycbc inference, without needing to modify the source code. Borrows the same techniques as used for the plugin waveforms.