-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
In model.py, predict_decoders(), we have in a loop over the stream names:
for stream_name in self.stream_names:
...
# embed token coords
tc_embed = self.embed_target_coords[stream_name]
tc_tokens = tc_embed(t_coords)If we have a stream tht is only used as a forcing, i.e. does not have any targets, it does not have network in embed_target_coords, so self.embed_target_coords[stream_name] returns an error.
Solution: we should add a check in the loop:
for stream_name in self.stream_names:
...
if stream_name not in self.embed_target_coords.keys():
continue
# embed token coords
tc_embed = self.embed_target_coords[stream_name]
tc_tokens = tc_embed(t_coords)What are the steps to reproduce the bug?
run for example era5 as forcing and decode synop
Hedgedoc link to logs and more information. This ticket is public, do not attach files directly.
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status