Skip to content

Commit

Permalink
use .is_binary
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakaplan committed Oct 30, 2023
1 parent 6802825 commit 9d59661
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pint/pintk/plk.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import pint.pintk.pulsar as pulsar
import pint.pintk.colormodes as cm
from pint.models.pulsar_binary import PulsarBinary
from pint.models.astrometry import Astrometry

import tkinter as tk
Expand Down Expand Up @@ -536,9 +535,7 @@ def setChoice(self, xid="mjd", yid="pre-fit"):
):
self.xbuttons[ii].configure(state="disabled")
self.ybuttons[ii].configure(state="disabled")

Check warning on line 537 in src/pint/pintk/plk.py

View check run for this annotation

Codecov / codecov/patch

src/pint/pintk/plk.py#L536-L537

Added lines #L536 - L537 were not covered by tests
elif choice == "orbital phase" and not any(
isinstance(x, PulsarBinary) for x in model.components
):
elif choice == "orbital phase" and not model.is_binary:
self.xbuttons[ii].configure(state="disabled")
self.ybuttons[ii].configure(state="disabled")

Check warning on line 540 in src/pint/pintk/plk.py

View check run for this annotation

Codecov / codecov/patch

src/pint/pintk/plk.py#L539-L540

Added lines #L539 - L540 were not covered by tests
if choice == "frequency" and (
Expand Down

0 comments on commit 9d59661

Please sign in to comment.