Skip to content

Commit

Permalink
Merge pull request #15 from ignf-sidc/dev
Browse files Browse the repository at this point in the history
Dev => Prod 0.1.13
  • Loading branch information
vsasyan-ignf authored Sep 7, 2023
2 parents 1c7a772 + af4cf11 commit 5c726e4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ignf_gpf_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Python API to simplify the use of the GPF HTTPS API."""

__version__ = "0.1.12"
__version__ = "0.1.13"
14 changes: 11 additions & 3 deletions ignf_gpf_sdk/_data/workflows/generic_joincache.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@
"bottom_level": "18",
"top_level": "5"
}
]
],
// BBox obligatoire ici, sinon l'injection dans la pyramide1 ne sera pas visible
// BBox France métropolitaine
"bbox": {
"west": -4.82,
"south": 42.18,
"east": 8.71,
"north": 51.14
}
},
"getfeatureinfo": {
"stored_data": true
Expand Down Expand Up @@ -113,7 +121,7 @@
"configuration-WMST-pyramide1"
]
},

// Étape n°4 : Création de pyramide raster 2
"pyramide2": {
"actions": [
Expand Down Expand Up @@ -272,7 +280,7 @@
"processing": "{store_entity.processing.infos._id [INFOS(name=Calcul de pyramide raster)]}",
"inputs": {
"upload": [
"store_entity.upload.infos._id [INFOS(name=EXAMPLE_DATASET_RASTER3)]}"
"{store_entity.upload.infos._id [INFOS(name=EXAMPLE_DATASET_RASTER3)]}"
]
},
"output": {
Expand Down
2 changes: 1 addition & 1 deletion ignf_gpf_sdk/io/DescriptorFileReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, descriptor_file_path: Path) -> None:
JsonHelper.validate_object(
self.__descriptor_dict,
d_schema,
"Fichier descriptif de livraison {json_path} non valide.",
f"Fichier descriptif de livraison {descriptor_file_path} non valide.",
"Schéma du fichier descriptif de livraison non valide. Contactez le support.",
)

Expand Down
2 changes: 1 addition & 1 deletion ignf_gpf_sdk/store/StoreEntity.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def api_list(cls: Type[T], infos_filter: Optional[Dict[str, str]] = None, tags_f
params={**d_params, **{"page": i_page, "limit": i_limit}},
)
# On les ajoute à la liste
l_entities += [cls(i) for i in o_response.json()]
l_entities += [cls(i, datastore) for i in o_response.json()]
# On regarde le Content-Range de la réponse pour savoir si on doit refaire une requête pour récupérer la fin
b_next_page = ApiRequester.range_next_page(o_response.headers.get("Content-Range"), len(l_entities))
# On passe à la page suivante
Expand Down
2 changes: 1 addition & 1 deletion ignf_gpf_sdk/workflow/action/OfferingAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run(self, datastore: Optional[str] = None) -> None:
else:
# si les url sont récupérées sous forme de liste
s_urls = "\n - ".join(o_offering["urls"])
Config().om.info(f"Offre créée : {self.__offering}\n{s_urls}")
Config().om.info(f"Offre créée : {self.__offering}\n - {s_urls}", green_colored=True)
Config().om.info("Création d'une offre : terminé")

def __create_offering(self, datastore: Optional[str]) -> None:
Expand Down

0 comments on commit 5c726e4

Please sign in to comment.