Skip to content

Commit

Permalink
initialization of dmx_selector now in validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakaplan committed Dec 11, 2024
1 parent ca0d055 commit 6b9c61f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pint/models/dispersion_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ def validate(self):
log.warning(
f"End of DMX_{index:04d} ({r1[j]}-{r2[j]}) overlaps with DMX_{indices[kk]:04d} ({r1[kk]}-{r2[kk]})"
)
if not hasattr(self, "dmx_toas_selector"):
self.dmx_toas_selector = TOASelect(is_range=True)

def validate_toas(self, toas):
DMX_mapping = self.get_prefix_mapping_component("DMX_")
Expand Down

0 comments on commit 6b9c61f

Please sign in to comment.