Skip to content

Commit

Permalink
fix for policies
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl committed Nov 10, 2024
1 parent 578378a commit f4262bb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ protected void installEqasimExtension() {
for(Map.Entry<String, String > entry: eqasimConfigGroup.getEstimators().entrySet()) {
String mode = entry.getKey();
String utilityEstimator = entry.getValue();

// bugfix for when using with policies
utilityEstimator = utilityEstimator.replace("policy:", "");

if(utilityEstimator.startsWith(EPSILON_UTILITY_PREFIX)) {
if(processed.contains(utilityEstimator)) {
logger.warn(String.format("The epsilon utility estimator '%s' is used for more than one mode. The seed of the epsilon generator will rely on the first mode", utilityEstimator));
Expand Down

0 comments on commit f4262bb

Please sign in to comment.