Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed marks from fixtures in tests #182

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sunkit_image/enhance.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ def mgn(
for s, weight in zip(sigma, weights):
# 2 & 3 Create kernel and convolve with image
# Refer to equation (1) in the paper
ndimage.filters.gaussian_filter(data, sigma=s, truncate=truncate, mode="nearest", output=conv)
ndimage.gaussian_filter(data, sigma=s, truncate=truncate, mode="nearest", output=conv)

# 4. Calculate difference between image and the local mean image,
# square the difference, and convolve with kernel. Square-root the
# resulting image to give `local standard deviation` image sigmaw
# Refer to equation (2) in the paper
conv = data - conv
ndimage.filters.gaussian_filter(conv**2, sigma=s, truncate=truncate, mode="nearest", output=sigmaw)
ndimage.gaussian_filter(conv**2, sigma=s, truncate=truncate, mode="nearest", output=sigmaw)
np.sqrt(sigmaw, out=sigmaw)

# 5. Normalize the gaussian transformed image to give C_i.
Expand Down
1 change: 0 additions & 1 deletion sunkit_image/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def granule_minimap3():


@pytest.fixture(params=["array", "map"])
@pytest.mark.remote_data()
nabobalis marked this conversation as resolved.
Show resolved Hide resolved
def aia_171(request):
smap = sunpy.map.Map(sunpy.data.sample.AIA_171_IMAGE)
if request.param == "map":
Expand Down
1 change: 0 additions & 1 deletion sunkit_image/tests/test_radial.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def test_fnrgf(map_test1, map_test2, radial_bin_edges):


@pytest.fixture()
@pytest.mark.remote_data()
def smap():
return sunpy.map.Map(sunpy.data.sample.AIA_171_IMAGE)

Expand Down
1 change: 0 additions & 1 deletion sunkit_image/tests/test_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


@pytest.fixture(params=["array", "map"])
@pytest.mark.remote_data()
def image_remote(request):
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=fits.verify.VerifyWarning)
Expand Down
1 change: 0 additions & 1 deletion sunkit_image/utils/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


@pytest.fixture()
@pytest.mark.remote_data()
def smap():
import sunpy.data.sample
from sunpy.data.sample import AIA_171_IMAGE
Expand Down
Loading