Skip to content

Commit

Permalink
update halpha sfr
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Apr 20, 2024
1 parent e8c72bc commit 68e0d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion SAGA/objects/build3.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,11 @@ def add_quenched_flag(base):

if "EW_Halpha" in base.colnames:
# assume quenched until showing SF
halpha_sf = Query("EW_Halpha - abs(EW_Halpha_err) >= 2")
fill_values_by_query(base, C.valid_Halpha, {"quenched": 1})
fill_values_by_query(base, Query("EW_Halpha - abs(EW_Halpha_err) >= 2"), {"quenched": 0})
fill_values_by_query(base, halpha_sf, {"quenched": 0})
if "Halpha_sfr" in base.colnames:
fill_values_by_query(base, ~Query(C.valid_Halpha, halpha_sf), {"Halpha_sfr": np.nan, "Halpha_sfr_err": np.nan})

if "nuv_sfr" in base.colnames:
# assuming an error of 0.2 dex in log_sm, 0.2 ** 2 = 0.04
Expand Down
2 changes: 1 addition & 1 deletion SAGA/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
SAGA package version
"""

__version__ = "0.72.0"
__version__ = "3.0.0-rc.1"

0 comments on commit 68e0d91

Please sign in to comment.