Skip to content

Commit

Permalink
Update platform.py (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillermoAbadLopez authored Aug 23, 2024
1 parent 2d3650c commit b0e101c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qililab/platform/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,11 @@ def to_dict(self):
),
}
flux_control_topology_dict = {
RUNCARD.FLUX_CONTROL_TOPOLOGY: [flux_control.to_dict() for flux_control in self.flux_to_bus_topology]
RUNCARD.FLUX_CONTROL_TOPOLOGY: (
[flux_control.to_dict() for flux_control in self.flux_to_bus_topology]
if self.flux_to_bus_topology is not None
else None
)
}

return (
Expand Down

0 comments on commit b0e101c

Please sign in to comment.