You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract base class from IonCyclotronSourceConfig for ICRH.
Rename IonCyclotronSourceConfig to ToricNNIonCyclotronSourceConfig and
introduce a base IonCyclotronSourceConfig class that holds shared ICRH
configuration (P_total, absorption_fraction, mode). This prepares for
future ICRH model variants beyond the ToricNN surrogate.
Key changes:
- IonCyclotronSourceConfig is now the base class with shared fields.
- ToricNNIonCyclotronSourceConfig inherits from it with ToricNN-specific
fields (model_path, wall geometry, frequency, minority params).
- Update pydantic_model.py type annotation to ToricNNIonCyclotronSourceConfig.
- Update model_config.py validator to use isinstance check.
- Update tests to reference ToricNNIonCyclotronSourceConfig.
PiperOrigin-RevId: 892473531
0 commit comments