Skip to content

Commit

Permalink
PEP 8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
akremin committed Nov 17, 2023
1 parent 6305602 commit 5fed4a0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions py/desiutil/test/test_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import unittest
import numpy as np


class TestNames(unittest.TestCase):
"""Test desiutil.names
"""
Expand All @@ -22,9 +23,9 @@ def test_radec_to_desiname(self):
"""
from ..names import radec_to_desiname
ras = [6.2457354547234, 23.914121939862518, 36.23454570972834,
235.25235223446, 99.9999999999999]
235.25235223446, 99.9999999999999]
decs = [29.974787585945496, -42.945872347904356, -0.9968423456,
8.45677345352345, 89.234958294953]
8.45677345352345, 89.234958294953]
correct_names = np.array(['DESI J006.2457+29.9747',
'DESI J023.9141-42.9458',
'DESI J036.2345-00.9968',
Expand All @@ -43,5 +44,3 @@ def test_radec_to_desiname(self):
outnames = radec_to_desiname(np.array(ras),
np.array(decs))
self.assertTrue(np.alltrue(outnames == correct_names))


0 comments on commit 5fed4a0

Please sign in to comment.