Skip to content

Commit

Permalink
Tag new version v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Nov 30, 2024
1 parent 366e014 commit f6587d2
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 39 deletions.
2 changes: 1 addition & 1 deletion config/config.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4",
"version": "1.5",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down
2 changes: 1 addition & 1 deletion docs/components/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const CONFIG_SCHEMA: any = {
"description": "A pydantic model describing the config file schema.",
"properties": {
"version": {
"const": "1.4",
"const": "1.5",
"description": "Version of the retrieval pipeline which is compatible with this config file. Retrievals done with any version `1.x` will produce the same output files as retrievals done with version `1.0`. But higher version numbers might use a different config file structure and produce more output files.",
"title": "Version",
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api-reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

```json
{
"version": "1.4",
"version": "1.5",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/guides/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Template:

```json
{
"version": "1.4",
"version": "1.5",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down
14 changes: 7 additions & 7 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "em27-retrieval-pipeline"
version = "1.4.1"
version = "1.5.0"
description = "automated EM27 data processing"
authors = [
{ name = "Moritz Makowski", email = "[email protected]" },
Expand Down
3 changes: 2 additions & 1 deletion src/retrieval/algorithms/proffast-1.0/main/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
prf
prf
2021-03-08_prf96-EM27-fast
2 changes: 1 addition & 1 deletion src/types/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class Config(pydantic.BaseModel):

model_config = pydantic.ConfigDict(extra="forbid")

version: Literal["1.4"] = pydantic.Field(
version: Literal["1.5"] = pydantic.Field(
...,
description="Version of the retrieval pipeline which is compatible with this config file. Retrievals done with any version `1.x` will produce the same output files as retrievals done with version `1.0`. But higher version numbers might use a different config file structure and produce more output files.",
)
Expand Down
56 changes: 31 additions & 25 deletions tests/bundle/test_bundling.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
BUNDLE_OUTPUT_DIR = os.path.join(PROJECT_DIR, "data", "testing", "bundle", "outputs")

CONFIG = {
"version":
"1.4",
"version": "1.5",
"general": {
"metadata": None,
"data": {
Expand All @@ -33,20 +32,25 @@
"results": os.path.join(INPUT_DATA_DIR, "results"),
},
},
"profiles":
None,
"retrieval":
None,
"bundles": [{
"dst_dir": BUNDLE_OUTPUT_DIR,
"output_formats": ["csv", "parquet"],
"sensor_ids": ["so", "mc"],
"retrieval_algorithms": ["proffast-1.0", "proffast-2.2", "proffast-2.3", "proffast-2.4"],
"atmospheric_profile_models": ["GGG2014", "GGG2020"],
"from_datetime": "2017-01-01T00:00:00+0000",
"to_datetime": "2024-12-31T23:59:59+0000",
"parse_dc_timeseries": True,
}],
"profiles": None,
"retrieval": None,
"bundles": [
{
"dst_dir": BUNDLE_OUTPUT_DIR,
"output_formats": ["csv", "parquet"],
"sensor_ids": ["so", "mc"],
"retrieval_algorithms": [
"proffast-1.0",
"proffast-2.2",
"proffast-2.3",
"proffast-2.4",
],
"atmospheric_profile_models": ["GGG2014", "GGG2020"],
"from_datetime": "2017-01-01T00:00:00+0000",
"to_datetime": "2024-12-31T23:59:59+0000",
"parse_dc_timeseries": True,
}
],
}


Expand All @@ -68,7 +72,7 @@ def test_bundling(download_sample_data: None) -> None:
locations_path=os.path.join(METADATA_DIR, "locations.json"),
sensors_path=os.path.join(METADATA_DIR, "sensors.json"),
campaigns_path=os.path.join(METADATA_DIR, "campaigns.json"),
)
),
)

bundle = config.bundles[0]
Expand All @@ -80,14 +84,16 @@ def test_bundling(download_sample_data: None) -> None:
if retrieval_algorithm == "proffast-1.0" and atmospheric_profile_model == "GGG2020":
continue

filename = "-".join([
"em27-retrieval-bundle",
sensor_id,
retrieval_algorithm,
atmospheric_profile_model,
bundle.from_datetime.strftime("%Y%m%d"),
bundle.to_datetime.strftime("%Y%m%d"),
])
filename = "-".join(
[
"em27-retrieval-bundle",
sensor_id,
retrieval_algorithm,
atmospheric_profile_model,
bundle.from_datetime.strftime("%Y%m%d"),
bundle.to_datetime.strftime("%Y%m%d"),
]
)
# fmt: off
csv_path = os.path.join(BUNDLE_OUTPUT_DIR, f"{filename}.csv")
assert os.path.exists(csv_path), f"Expected file {csv_path} does not exist."
Expand Down

0 comments on commit f6587d2

Please sign in to comment.