Skip to content

Commit

Permalink
fixed ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-dkrz committed Nov 22, 2024
1 parent fa68a4a commit 0697ee8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docs/source/databrowser/APIRef.rst
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ Searching for metadata
.. _databrowser-api-stac:

Generating a STAC collection
---------------------------
-----------------------------

.. http:get:: /api/freva-nextgen/databrowser/stac-collection/(str:flavour)/(str:uniq_key)
Expand Down Expand Up @@ -587,7 +587,7 @@ Generating a STAC collection
:resheader Content-Type: ``application/json``: creation status and collection link

Example Request
~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~

Here's an example of how to use this endpoint with additional parameters.
In this example, we want to create a STAC collection that follows the
Expand All @@ -600,7 +600,7 @@ Generating a STAC collection
Host: www.freva.dkrz.de

Example Response
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~

.. sourcecode:: http

Expand Down
10 changes: 5 additions & 5 deletions docs/source/databrowser/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ the data via zarr.


Creating STAC Collections
------------------------
--------------------------
The ``stac-collection`` sub command allows you to create a dynamic `STAC (SpatioTemporal Asset Catalog) collection <https://stacspec.org/en/about/stac-spec/>_ `
from the current search. This can be useful for sharing standardized geospatial
data catalogs and enabling interoperability between different data systems.
Expand All @@ -250,12 +250,12 @@ data catalogs and enabling interoperability between different data systems.
freva-client databrowser stac-collection --help
.. execute_code::
:hide_code:
:hide_code:

from subprocess import run, PIPE
from subprocess import run, PIPE

res = run(["freva-client", "databrowser", "stac-collection", "--help"], check=True, stdout=PIPE, stderr=PIPE)
print(res.stdout.decode())
res = run(["freva-client", "databrowser", "stac-collection", "--help"], check=True, stdout=PIPE, stderr=PIPE)
print(res.stdout.decode())

The STAC collection provides multiple ways to access and interact with the data:
- Access your climate data through the intake-esm data catalog specification
Expand Down
2 changes: 1 addition & 1 deletion freva-rest/src/freva_rest/databrowser_api/mock/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"1min"
],
"bbox": [
"ENVELOPE(-180.00, -90.00)"
"ENVELOPE(-180.00, 180.00, 90.00,-90.00)"
],
"realm": [
"atmos"
Expand Down
2 changes: 1 addition & 1 deletion freva-rest/src/freva_rest/databrowser_api/mock/latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"1min"
],
"bbox": [
"ENVELOPE(-180.00, -90.00)"
"ENVELOPE(-180.00, 180.00, 90.00,-90.00)"
],
"realm": [
"atmos"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ deps = -e ./freva-rest
xarray
commands =
pytest -vv --cov=freva-rest --cov=freva-client --cov=freva-data-portal-worker --cov-report=html:coverage_report --junitxml report.xml --cov-report xml tests
pytest -vv --cov=freva-rest --cov=freva-client --cov=freva-data-portal-worker --cov-report=html:coverage_report --junitxml report.xml --cov-report xml tests
python3 -m coverage report --fail-under=98.5 --precision=2
[testenv:docs]
description = "Create the documentation."
Expand Down

0 comments on commit 0697ee8

Please sign in to comment.