Unverified Commit 79afdd88 authored by Akke Viitanen's avatar Akke Viitanen
Browse files

hotfix dtype

parent 71289bb6
Loading
Loading
Loading
Loading
Loading
+19 −8
Original line number Diff line number Diff line
@@ -165,8 +165,19 @@ class CatalogAGN:
                ("magabs_" + b.strip() + "_point", np.float64, f"AGN {b} absolute magnitude", "ABmag")
                for b in bands
            ]
            + [(b.strip() + "_tau",    np.float64, f"AGN damped random walk timescale {b}", "days") for b in bands]
            + [(b.strip() + "_sf_inf", np.float64, f"AGN damped random walk structure function at infinity", "ABmag") for b in bands]
            + [
                (b.strip() + "_tau", np.float64, f"AGN damped random walk timescale {b}", "days")
                for b in bands
            ]
            + [
                (
                    b.strip() + "_sf_inf",
                    np.float64,
                    "AGN damped random walk structure function at infinity",
                    "ABmag",
                )
                for b in bands
            ]
        )

    def get_dtype(self) -> np.dtype:
@@ -733,7 +744,7 @@ class CatalogAGN:
        Return the joint probability that a galaxy has a BH and the BH is active.

        """
        return self["is_agn"] & self["has_bh"]
        return self["is_agn"] & self.get_has_bh()

    def get_lightcurve(self, i, band, *args, **kwargs):
        """