Refactor data source for GenKwConfig #9079
Labels
improvement
Something nice to have, that will make life easier for developers or users or both.
release-notes:refactor
PR changes code without changing ANY (!) behavior.
To be able to distinguish between the source of data when instantiating GenKwConfig we need to speicify either it's
sample_prior
,forward_init
ordesign_matrix
. Currently we rely on setting some flags in GenKwConfig; nevertheless this causes a lots of unnecessary if statements to check what the GenKw really is. Therefore we should implement each sub init_source as @DataClass instead.For instance:
The text was updated successfully, but these errors were encountered: