LSSTDESC / rail

Top level "umbrella" package for RAIL
MIT License
5 stars 3 forks source link

Smoke tests failing for FluxtoMag_and_Deredden_example.ipynb #142

Open hangqianjun opened 1 month ago

hangqianjun commented 1 month ago

Bug report

KeyError Traceback (most recent call last) Cell In[8], line 1 ----> 1 deredden_data = dereddener(mags_data)

File ~/work/rail/rail_astro_tools/src/rail/tools/photometry_tools.py:503, in DustMapBase.call(self, data) 490 """Return a converted table 491 492 Parameters (...) 500 The converted version of the table 501 """ 502 self.set_data('input', data) --> 503 self.run() 504 return self.get_handle('output')

File ~/work/rail/rail_astro_tools/src/rail/tools/photometry_tools.py:459, in DustMapBase.run(self) 457 data = self.get_data('input', allow_missing=True) 458 out_data = {} --> 459 coords = SkyCoord(data['ra'], data['dec'], unit = 'deg',frame='fk5') 460 dust_map_dict = dict(sfd=dustmaps_sfd.SFDQuery) 461 try:

KeyError: 'dec'

Before submitting Please check the following:

hangqianjun commented 1 month ago

Should be resolved with #144; waiting for smoke test run to see if things are fixed.