Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ets_fiber_assigner/netflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def buildProblem(bench, targets, tpos, classdict, tvisit, vis_cost=None,
n_obs = len(val)-1
if "nobs_max" in classdict[key]:
n_obs = classdict[key]["nobs_max"]
prob.add_constraint(makeName("ST", key[0], key[1]),
prob.add_constraint(makeName("ST", key),
prob.sum([v for v in val]) == n_obs)

# Science targets inside a given program must not get more observation time
Expand Down