Skip to content

Commit

Permalink
Tag new version
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Jun 5, 2024
1 parent fcd6b87 commit e4f4346
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions config/config.template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0",
"version": "1.2",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down Expand Up @@ -52,9 +52,9 @@
"use_ifg_corruption_filter": false,
"custom_ils": {
"ma": {
"channel1_me": 0.989200,
"channel1_me": 0.9892,
"channel1_pe": -0.001082,
"channel2_me": 0.989200,
"channel2_me": 0.9892,
"channel2_pe": -0.001082
}
},
Expand Down
4 changes: 2 additions & 2 deletions docs/components/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const CONFIG_SCHEMA: any = {
"description": "A pydantic model describing the config file schema.",
"properties": {
"version": {
"const": "1.0",
"const": "1.2",
"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.",
"enum": [
"1.0"
"1.2"
],
"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.0",
"version": "1.2",
"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 @@ -16,7 +16,7 @@ Template:

```json
{
"version": "1.0",
"version": "1.2",
"general": {
"metadata": {
"github_repository": "tum-esm/em27-metadata-storage",
Expand Down
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.1.0"
version = "1.2.0"
description = "automated EM27 data processing"
authors = [
{ name = "Moritz Makowski", email = "[email protected]" },
Expand Down
8 changes: 4 additions & 4 deletions src/export/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def run() -> None:

dates: list[datetime.date] = tum_esm_utils.timing.date_range(
from_date=campaign.from_datetime.date(),
to_date=min(
(datetime.datetime.utcnow() -
datetime.timedelta(days=1)).date(), campaign.to_datetime.date()
)
to_date=min((
datetime.datetime.now(tz=datetime.UTC) -
datetime.timedelta(days=1)
).date(), campaign.to_datetime.date())
)
print(
f"Exporting data from {dates[0]} to {dates[-1]} " +
Expand Down
2 changes: 1 addition & 1 deletion src/types/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class ExportTargetConfig(pydantic.BaseModel):
class Config(pydantic.BaseModel):
"""A pydantic model describing the config file schema."""

version: Literal["1.0"] = pydantic.Field(
version: Literal["1.2"] = 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

0 comments on commit e4f4346

Please sign in to comment.