File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -736,15 +736,15 @@ def __init__(
736
736
parameters or on single parameter vectors via tha `simulator_is_batched` argument.
737
737
"""
738
738
739
- if type (prior ) is not Prior :
739
+ if not isinstance (prior , Prior ) :
740
740
prior_args = {"batch_prior_fun" : prior } if prior_is_batched else {"prior_fun" : prior }
741
741
self .prior = Prior (** prior_args )
742
742
self .prior_is_batched = prior_is_batched
743
743
else :
744
744
self .prior = prior
745
- self .prior_is_batched = prior_is_batched
745
+ self .prior_is_batched = self . prior . is_batched
746
746
747
- if type (simulator ) is not Simulator :
747
+ if not isinstance (simulator , Simulator ) :
748
748
self .simulator = self ._config_custom_simulator (simulator , simulator_is_batched )
749
749
else :
750
750
self .simulator = simulator
You can’t perform that action at this time.
0 commit comments