Skip to content

Commit

Permalink
remove attempt at unusual baseline relevance
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Mar 14, 2024
1 parent db17873 commit e2553c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/baseline_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ def create_baseline_from_site(site):

baseline_rel = "true"

# create baseline relevance such that only relevant if 1+ fixlet is relevant
if num_items > 100:
baseline_rel = f"""exists relevant fixlets whose(id of it is contained by set of ({ fixlet_ids_str })) of sites whose("Fixlet Site" = type of it AND "{ site_name }" = name of it)"""
# # This does not appear to work as expected:
# # create baseline relevance such that only relevant if 1+ fixlet is relevant
# if num_items > 100:
# baseline_rel = f"""exists relevant fixlets whose(id of it is contained by set of ({ fixlet_ids_str })) of sites whose("Fixlet Site" = type of it AND "{ site_name }" = name of it)"""

# generate XML for baseline with template:
baseline_xml = f"""<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit e2553c4

Please sign in to comment.