Skip to content

Commit

Permalink
reuse time_steps option
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMortier committed Oct 18, 2024
1 parent f56b9a2 commit 7196733
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aprofiles/cli/apro.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def l2b(
"data/l2b", exists=True, writable=True, help="📂 Base path for output data."
),
time_steps: int = typer.Option(
12, help="🔂 Number of most recent time steps to be processed."
6, help="🔂 Number of most recent time steps to be processed."
),
progress_bar: bool = typer.Option(True, help="⌛ Show progress bar.")
):
Expand Down
2 changes: 1 addition & 1 deletion aprofiles/cli/utils/l2b.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def make_files(path_in: Path, path_out: Path, time_steps: int, progress_bar: boo
yyyymmdd = str(ds.time.data[0].astype('M8[D]')).replace('-','')

# we just work with the 6 latest time steps, that is 30 min worth of data
start_idx = max(0, ds.time.size - 6)
start_idx = max(0, ds.time.size - time_steps)
ds30min = ds.isel(time=slice(start_idx,ds.time.size))
mmhh = pd.to_datetime(ds30min.time[0].data).strftime('%H%M')

Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

:material-history:{ style="text-align: center; font-size: xx-large; display: block" }

## 0.10.3
Oct 18, 2024

- use time_steps option (6 by default, for working with 30 minutes batch files)

## 0.10.2
Oct 18, 2024

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aprofiles"
version = "0.10.2"
version = "0.10.3"
description = "Analysis of atmospheric profilers measurements"
authors = ["augustinm <[email protected]>"]
license = "GPL-3.0"
Expand Down

0 comments on commit 7196733

Please sign in to comment.