Skip to content

Commit ecdbda5

Browse files
authored
Merge branch 'development' into ci/split_publish_to_pypi
2 parents 0a66c1c + 215a994 commit ecdbda5

19 files changed

Lines changed: 140 additions & 115 deletions

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,15 @@
515515
"infra",
516516
"review"
517517
]
518+
},
519+
{
520+
"login": "emmanuel-ferdman",
521+
"name": "Emmanuel Ferdman",
522+
"avatar_url": "https://avatars.githubusercontent.com/u/35470921?v=4",
523+
"profile": "https://github.com/emmanuel-ferdman",
524+
"contributions": [
525+
"code"
526+
]
518527
}
519528
],
520529
"contributorsPerLine": 7,

.github/workflows/download_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
pytest icepyx/tests/integration --verbose --cov app -m "downloads_data"
3030
3131
- name: "Upload coverage report"
32-
uses: "codecov/codecov-action@v5.4.0"
32+
uses: "codecov/codecov-action@v5.4.3"
3333
with:
3434
token: "${{ secrets.CODECOV_TOKEN }}"

.github/workflows/integration_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ jobs:
6363
pytest -s icepyx/tests/integration --verbose --cov app
6464
6565
- name: "Upload coverage report"
66-
uses: "codecov/codecov-action@v5.4.0"
66+
uses: "codecov/codecov-action@v5.4.3"
6767
with:
6868
token: "${{ secrets.CODECOV_TOKEN }}"

.github/workflows/unit_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ jobs:
4343
pytest icepyx/tests/unit --verbose --cov app
4444
4545
- name: "Upload coverage report"
46-
uses: "codecov/codecov-action@v5.4.0"
46+
uses: "codecov/codecov-action@v5.4.3"
4747
with:
4848
token: "${{ secrets.CODECOV_TOKEN }}"

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- tomli
2727

2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: v0.11.8
29+
rev: v0.11.12
3030
hooks:
3131
- id: ruff
3232
args: ["--fix", "--show-fixes"]

CONTRIBUTORS.rst

Lines changed: 6 additions & 5 deletions
Large diffs are not rendered by default.

doc/source/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"sphinx.ext.napoleon",
3838
"sphinx_autodoc_typehints",
3939
"sphinx.ext.autosectionlabel",
40+
"sphinx.ext.intersphinx",
4041
"numpydoc",
4142
# "sphinx.ext.autosummary",
4243
"myst_nb",
@@ -107,6 +108,14 @@
107108
typehints_defaults = "comma"
108109
typehints_use_return = True
109110

111+
# Options for intersphinx.
112+
intersphinx_mapping = {
113+
"earthaccess": ("https://earthaccess.readthedocs.io/en/stable/", None),
114+
"geopandas": ("https://geopandas.org/en/stable/", None),
115+
"harmony": ("https://harmony-py.readthedocs.io/en/stable/", None),
116+
"python": ("https://docs.python.org/3/", None),
117+
"xarray": ("https://docs.xarray.dev/en/stable/", None),
118+
}
110119

111120
# -- Options for HTML output -------------------------------------------------
112121

icepyx/core/APIformatting.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _fmt_temporal(start, end, key):
2626
Start date and time for the period of interest.
2727
end : date time object
2828
End date and time for the period of interest.
29-
key : string
29+
key : str
3030
Dictionary key, entered as a string, indicating which temporal format is needed.
3131
Must be one of ['temporal','time'] for data searching and subsetting, respectively.
3232
@@ -108,7 +108,7 @@ def _fmt_var_subset_list(vdict):
108108
109109
Parameters
110110
----------
111-
vdict : dictionary
111+
vdict : dict
112112
Dictionary containing variable names as keys with values containing a list of
113113
paths to those variables (so each variable key may have multiple paths, e.g. for
114114
multiple beams)
@@ -163,7 +163,7 @@ def to_string(params):
163163
164164
Parameters
165165
----------
166-
params : dictionary
166+
params : dict
167167
168168
Returns
169169
-------
@@ -223,14 +223,14 @@ class Parameters(Generic[T]):
223223
224224
Parameters
225225
----------
226-
partype : string
226+
partype : str
227227
Type of parameter list. Must be one of ['CMR','required','subset']
228228
229-
values : dictionary, default None
229+
values : dict, default None
230230
Dictionary of already-formatted parameters, if there are any, to avoid
231231
re-creating them.
232232
233-
reqtype : string, default None
233+
reqtype : str, default None
234234
For `partype=='required'`, indicates which parameters are required based
235235
on the type of query. Must be one of ['search','download']
236236
"""

icepyx/core/granules.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ def gran_IDs(grans, ids=False, cycles=False, tracks=False, dates=False, cloud=Fa
4747
----------
4848
grans : list of dictionaries
4949
List of input granule json dictionaries. Must have key "producer_granule_id"
50-
ids: boolean, default True
50+
ids: bool, default True
5151
Return a list of the available granule IDs for the granule dictionary
52-
cycles : boolean, default False
52+
cycles : bool, default False
5353
Return a list of the available orbital cycles for the granule dictionary
54-
tracks : boolean, default False
54+
tracks : bool, default False
5555
Return a list of the available Reference Ground Tracks (RGTs) for the granule dictionary
56-
dates : boolean, default False
56+
dates : bool, default False
5757
Return a list of the available dates for the granule dictionary.
58-
cloud : boolean, default False
58+
cloud : bool, default False
5959
Return a a list of AWS s3 urls for the available granules in the granule dictionary.
6060
"""
6161
assert len(grans) > 0, "Your data object has no granules associated with it"
@@ -272,21 +272,21 @@ def place_order(
272272
----------
273273
CMRparams :
274274
Dictionary of properly formatted CMR search parameters.
275-
subsetparams : dictionary
275+
subsetparams : dict
276276
Dictionary of properly formatted subsetting parameters. An empty dictionary
277277
is passed as input here when subsetting is set to False in query methods.
278-
verbose : boolean, default False
278+
verbose : bool, default False
279279
Print out all feedback available from the order process.
280280
Progress information is automatically printed regardless of the value of verbose.
281-
subset : boolean, default True
281+
subset : bool, default True
282282
Apply subsetting to the data order from the NSIDC, returning only data that meets the
283283
subset parameters.
284284
Spatial and temporal subsetting based on the input parameters happens
285285
by default when subset=True, but additional subsetting options are available.
286286
Spatial subsetting returns all data that are within the area of interest
287287
(but not complete granules.
288288
This eliminates false-positive granules returned by the metadata-level search)
289-
geom_filepath : string, default None
289+
geom_filepath : str, default None
290290
String of the full filename and path when the spatial input is a file.
291291
292292
Notes
@@ -312,12 +312,12 @@ def download(self, verbose, path, restart=False):
312312
313313
Parameters
314314
----------
315-
verbose : boolean, default False
315+
verbose : bool, default False
316316
Print out all feedback available from the order process.
317317
Progress information is automatically printed regardless of the value of verbose.
318-
path : string
318+
path : str
319319
String with complete path to desired download directory and location.
320-
restart : boolean, default False
320+
restart : bool, default False
321321
Restart your download if it has been interrupted.
322322
If the kernel has been restarted, but you successfully
323323
completed your order, you will need to re-initialize your query class object

icepyx/core/harmony.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class HarmonyApi(EarthdataAuthMixin):
3131
----------
3232
harmony_client : harmony.Client
3333
The Harmony API client.
34-
job_ids : list of str
34+
job_ids : list[str]
3535
List of job IDs that have been placed with the Harmony API.
3636
3737
"""
@@ -85,13 +85,13 @@ def _place_order(
8585
----------
8686
concept_id : str
8787
The concept ID of the dataset.
88-
spatial : harmony.BBox, str, harmony.WKT, or None, optional
88+
spatial : harmony.BBox, str, harmony.request.WKT, or None, optional
8989
The spatial extent for the order.
9090
temporal : HarmonyTemporal or None, optional
9191
The temporal range for the order.
9292
shape : str or None, optional
9393
A spatial shape file for filtering.
94-
granule_name : list of str, optional
94+
granule_name : list[str], optional
9595
Specific granule names to include in the order.
9696
skip_preview : bool, optional
9797
Whether to bypass preview mode if the order exceeds 300 granules.
@@ -234,13 +234,13 @@ def place_order(
234234
----------
235235
concept_id : str
236236
The concept ID of the dataset.
237-
spatial : harmony.BBox, str, harmony.WKT, or None, optional
237+
spatial : harmony.BBox, str, harmony.request.WKT, or None, optional
238238
The spatial extent for the order.
239239
temporal : HarmonyTemporal or None, optional
240240
The temporal range for the order.
241241
shape : str or None, optional
242242
A spatial shape file for filtering.
243-
granule_name : list of str, optional
243+
granule_name : list[str], optional
244244
Specific granule names to include in the order.
245245
skip_preview : bool, optional
246246
Whether to bypass preview mode if the order exceeds 300 granules.

0 commit comments

Comments
 (0)