Skip to content

Commit

Permalink
made Ruff happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
s0larish committed Nov 12, 2024
1 parent c5dda5c commit 6f3fc65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion simpunch/level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def generate_starfield(wcs: WCS,

def generate_dummy_polarization(map_scale: float = 0.225,
pol_factor: float = 0.5) -> NDCube:
"""Create a synthetic polarization map"""
"""Create a synthetic polarization map."""
shape = [int(floor(180 / map_scale)), int(floor(360 / map_scale))]
xcoord = np.linspace(-pol_factor, pol_factor, shape[1])
ycoord = np.linspace(-pol_factor, pol_factor, shape[0])
Expand Down
3 changes: 1 addition & 2 deletions simpunch/tests/test_starfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ def _sample_ndcube(shape: tuple, code:str = "PM1", level:str = "0") -> NDCube:
@pytest.fixture
def sample_ndcollection() -> NDCollection:
input_data = sample_ndcube((2048, 2048))
sample_collection = NDCollection(
return NDCollection(
[("-60.0 deg", input_data),
("0.0 deg", input_data),
("60.0 deg", input_data)],
aligned_axes="all")
return sample_collection

def test_starfield(sample_ndcube: NDCube) -> None:
"""Test starfield generation."""
Expand Down

0 comments on commit 6f3fc65

Please sign in to comment.