Skip to content

Commit

Permalink
Mwm snc (#492)
Browse files Browse the repository at this point in the history
* mwm_snc.py: mwm_snc_100pc_bright_boss_single: edit post_process()

* edit target_selection.yml
  • Loading branch information
astronomygupta authored Aug 12, 2024
1 parent a650a1a commit a09cdf7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/target_selection/cartons/mwm_snc.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,15 +686,15 @@ def post_process(self, model):
if current_phot_g_mean_mag < 18:
self.database.execute_sql(
" update sandbox.temp_mwm_snc_100pc_bright_boss_single "
+ " set cadence = 'bright_1x1 ' "
+ " set cadence = 'bright_1x1' "
+ " where catalogid = "
+ str(current_catalogid)
+ ";"
)
else:
self.database.execute_sql(
" update sandbox.temp_mwm_snc_100pc_bright_boss_single "
+ " set cadence = 'dark_1x1 ' "
+ " set cadence = 'dark_1x1' "
+ " where catalogid = "
+ str(current_catalogid)
+ ";"
Expand Down
20 changes: 19 additions & 1 deletion python/target_selection/config/target_selection.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'1.2.15':
'1.2.16':
xmatch_plan: 1.0.0
cartons:
- bhm_colr_galaxies_lsdr10_d3
Expand Down Expand Up @@ -36,6 +36,24 @@
min_gal_lat: 18.0
max_ebv: 0.2

'1.2.15':
xmatch_plan: 1.0.0
cartons:
- mwm_snc_100pc_bright_boss_single
open_fiber_path: /uufs/chpc.utah.edu/common/home/sdss50/sdsswork/target/open_fiber/postv1/draft2/
schema: sandbox
magnitudes:
h: [catalog_to_twomass_psc, twomass_psc, twomass_psc.h_m]
j: [catalog_to_twomass_psc, twomass_psc, twomass_psc.j_m]
k: [catalog_to_twomass_psc, twomass_psc, twomass_psc.k_m]
bp: [catalog_to_gaia_dr3_source, gaia_dr3_source, gaia_dr3_source.phot_bp_mean_mag]
rp: [catalog_to_gaia_dr3_source, gaia_dr3_source, gaia_dr3_source.phot_rp_mean_mag]
gaia_g: [catalog_to_gaia_dr3_source, gaia_dr3_source, gaia_dr3_source.phot_g_mean_mag]
database_options:
work_mem: '200MB'
enable_bitmapscan: false
enable_seqscan: false

'1.2.14':
xmatch_plan: 1.0.0
cartons:
Expand Down

0 comments on commit a09cdf7

Please sign in to comment.