Skip to content

Commit 6db1f0e

Browse files
committed
More *,
1 parent e65d89d commit 6db1f0e

8 files changed

Lines changed: 11 additions & 10 deletions

File tree

aiapy/calibrate/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def fix_observer_location(smap):
5151
return smap._new_instance(smap.data, new_meta, plot_settings=smap.plot_settings, mask=smap.mask)
5252

5353

54-
def update_pointing(smap, pointing_table=None):
54+
def update_pointing(smap, *, pointing_table=None):
5555
"""
5656
Update pointing information in the `smap` header.
5757

aiapy/calibrate/prep.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
@add_common_docstring(rotation_function_names=_rotation_function_names)
21-
def register(smap, missing=None, order=3, method="scipy"):
21+
def register(smap, *, missing=None, order=3, method="scipy"):
2222
"""
2323
Processes a full-disk level 1 `~sunpy.map.sources.sdo.AIAMap` into a level
2424
1.5 `~sunpy.map.sources.sdo.AIAMap`.
@@ -110,7 +110,7 @@ def register(smap, missing=None, order=3, method="scipy"):
110110
return newmap
111111

112112

113-
def correct_degradation(smap, correction_table=None, calibration_version=None):
113+
def correct_degradation(smap, *, correction_table=None, calibration_version=None):
114114
"""
115115
Apply time-dependent degradation correction to an AIA map.
116116
@@ -158,6 +158,7 @@ def correct_degradation(smap, correction_table=None, calibration_version=None):
158158
def degradation(
159159
channel: u.angstrom,
160160
obstime,
161+
*,
161162
correction_table=None,
162163
calibration_version=None,
163164
) -> u.dimensionless_unscaled:

aiapy/calibrate/spikes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
__all__ = ["respike", "fetch_spikes"]
1515

1616

17-
def respike(smap, spikes=None):
17+
def respike(smap, *, spikes=None):
1818
"""
1919
Re-insert "spikes" or "hot pixels" into level 1 AIA images.
2020

aiapy/calibrate/tests/test_prep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_register_level_15(lvl_15_map):
103103
[
104104
pytest.param(None, None, marks=pytest.mark.remote_data),
105105
(
106-
get_correction_table(get_test_filepath("aia_V8_20171210_050627_response_table.txt")),
106+
get_correction_table(correction_table=get_test_filepath("aia_V8_20171210_050627_response_table.txt")),
107107
8,
108108
),
109109
],

aiapy/calibrate/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343

4444

45-
def get_correction_table(correction_table=None):
45+
def get_correction_table(*, correction_table=None):
4646
"""
4747
Return table of degradation correction factors.
4848
@@ -110,7 +110,7 @@ def get_correction_table(correction_table=None):
110110

111111
@u.quantity_input
112112
@validate_channel("channel")
113-
def _select_epoch_from_correction_table(channel: u.angstrom, obstime, table, version=None):
113+
def _select_epoch_from_correction_table(channel: u.angstrom, obstime, table, *, version=None):
114114
"""
115115
Return correction table with only the first epoch and the epoch in which
116116
`obstime` falls and for only one given calibration version.

aiapy/response/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Channel:
7474

7575
@u.quantity_input
7676
@validate_channel("channel")
77-
def __init__(self, channel: u.angstrom, instrument_file=None):
77+
def __init__(self, channel: u.angstrom, *, instrument_file=None):
7878
self._channel = channel
7979
self._instrument_data = self._get_instrument_data(instrument_file)
8080

aiapy/response/tests/test_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_effective_area(channel):
129129
1.0140386988603103 * u.dimensionless_unscaled,
130130
),
131131
(
132-
get_correction_table(get_test_filepath("aia_V8_20171210_050627_response_table.txt")),
132+
get_correction_table(correction_table=get_test_filepath("aia_V8_20171210_050627_response_table.txt")),
133133
8,
134134
1.0140386988603103 * u.dimensionless_unscaled,
135135
),

aiapy/util/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818

1919

20-
def validate_channel(argument, valid_channels="all"):
20+
def validate_channel(argument, *, valid_channels="all"):
2121
"""
2222
Parameters
2323
----------

0 commit comments

Comments
 (0)