Skip to content

Commit

Permalink
Remove FilterLoaded basis function
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Dec 11, 2024
1 parent ba93969 commit 17ec75c
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import numpy as np
from rubin_scheduler.scheduler import basis_functions, detailers, example, features
from rubin_scheduler.scheduler import detailers, example, features
from rubin_scheduler.scheduler.schedulers import CoreScheduler
from rubin_scheduler.scheduler.surveys import BlobSurvey
from rubin_scheduler.scheduler.utils import CurrentAreaMap, Footprint
Expand Down Expand Up @@ -119,11 +119,6 @@ def get_scheduler():
reward_functions = [(i[0], i[1]) for i in rf1 if i[1] > 0] + [
(i[0], i[1]) for i in rf2 if i[1] > 0
]
# Then put back in the FilterLoadedBasisFunction with both filters.
filternames = [fn for fn in [filtername, filtername2] if fn is not None]
reward_functions.append(
(basis_functions.FilterLoadedBasisFunction(filternames=filternames), 0)
)

# unpack the basis functions and weights
reward_basis_functions_weights = [val[1] for val in reward_functions]
Expand Down

0 comments on commit 17ec75c

Please sign in to comment.