Skip to content

Commit

Permalink
removing unintended []
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Szendrey committed Feb 27, 2024
1 parent 5016e23 commit 38251a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/models/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def convert_to_static_interventions(interventions):
def convert_optimize_to_static_interventions(interventions):
static_interventions = defaultdict(dict)
for i in interventions:
static_interventions[i.timestep] = torch.tensor([i.name])
static_interventions[i.timestep] = torch.tensor(i.name)
return static_interventions


Expand Down

0 comments on commit 38251a9

Please sign in to comment.