Skip to content

Commit

Permalink
further ComponentID related fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Aug 16, 2023
1 parent 417fea9 commit d728308
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lcviz/plugins/ephemeris/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ def _update_all_phase_arrays(self, *args, component=None):
phases = _times_to_phases(times)
if component not in self.phase_cids:
self.phase_cids[component] = ComponentID(phase_comp_lbl)

if self.phase_cids[component] in data.components:
data.update_components({self.phase_cids[component]: phases})
else:
data.add_component(phases, self.phase_cids[component])

# this loop catches phase components generated automatically by
# when add_results is triggered in other plugins:
for comp in data.components:
Expand Down

0 comments on commit d728308

Please sign in to comment.