Skip to content

Commit

Permalink
Use fink-utils definition of list of extragalactic sources. Closes #630
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Jan 18, 2024
1 parent 9acfce6 commit 6af8a82
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions bin/daily_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
from fink_filters.classification import extract_fink_classification
from fink_filters.filter_simbad_candidates.filter import simbad_candidates

from fink_utils.xmatch.simbad import return_list_of_eg_host


def main():
parser = argparse.ArgumentParser(description=__doc__)
Expand Down Expand Up @@ -103,28 +105,8 @@ def main():

out_dic['simbad_tot'] = n_simbad

# Alerts with a close-by candidate host-galaxy
list_simbad_galaxies = [
"galaxy",
"Galaxy",
"EmG",
"Seyfert",
"Seyfert_1",
"Seyfert_2",
"BlueCompG",
"StarburstG",
"LSB_G",
"HII_G",
"High_z_G",
"GinPair",
"GinGroup",
"BClG",
"GinCl",
"PartofG",
]

n_simbad_gal = df_sci.select('cdsxmatch')\
.filter(df_sci['cdsxmatch'].isin(list_simbad_galaxies))\
.filter(df_sci['cdsxmatch'].isin(return_list_of_eg_host()))\
.count()

out_dic['simbad_gal'] = n_simbad_gal
Expand Down

0 comments on commit 6af8a82

Please sign in to comment.