# cleanup jointcal test warnings

XMLWordPrintable

#### Details

• Type: Story
• Status: Won't Fix
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
• Story Points:
1
• Team:

#### Description

Now that jointcal is running with full pytest-ness, there are a few runtime warnings that should be cleaned up.

On Linux I see a bunch of these:

 tests/test_jointcal_hsc.py::JointcalTestHSC::test_jointcalTask_2_visits  /home/parejkoj/lsst/lsstsw/stack/Linux64/meas_algorithms/13.0-24-g22030a45+3/python/lsst/meas/algorithms/astrometrySourceSelector.py:137: RuntimeWarning: invalid value encountered in greater  return sourceCat.get(self.fluxKey)/sourceCat.get(self.fluxSigmaKey) > self.config.minSnr 

I thought I was seeing some other ones on macOS; I'll add them if I can confirm.

#### Activity

Hide
Tim Jenness added a comment -

There was a discussion about these (well, similar ones) on slack a while back. This is a change to how numpy reports warnings when NaN is in a calculation, and pandas have been hit with this. See DM-11776.

Show
Tim Jenness added a comment - There was a discussion about these (well, similar ones) on slack a while back. This is a change to how numpy reports warnings when NaN is in a calculation, and pandas have been hit with this. See DM-11776 .
Hide
John Parejko added a comment -

Yes, I think we might just use the {{np.errstate}] context manager to squash these, but I want to check whether they're important at all first.

Show
John Parejko added a comment - Yes, I think we might just use the {{np.errstate}] context manager to squash these, but I want to check whether they're important at all first.

#### People

Assignee:
John Parejko
Reporter:
John Parejko
Watchers:
John Parejko, John Swinbank, Tim Jenness