Skip to content

Commit

Permalink
Remove type ignores that should not be needed
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jun 20, 2023
1 parent 769a484 commit 33a7917
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/analysis/tools/actions/vector/vectorActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ def getInputSchema(self) -> KeyedDataSchema:
return ((self.vectorKey, Vector),)

def __call__(self, data: KeyedData, **kwargs) -> Vector:
with warnings.catch_warnings(): # type: ignore
warnings.filterwarnings("ignore", r"invalid value encountered") # type: ignore
warnings.filterwarnings("ignore", r"divide by zero") # type: ignore
with warnings.catch_warnings():
warnings.filterwarnings("ignore", r"invalid value encountered")
warnings.filterwarnings("ignore", r"divide by zero")
vec = cast(Vector, data[self.vectorKey.format(**kwargs)])
mags = (np.array(vec) * u.Unit(self.fluxUnit)).to(u.ABmag).value # type: ignore
if self.returnMillimags:
Expand Down

0 comments on commit 33a7917

Please sign in to comment.