Skip to content

ymf2xmf: cherry-pick collections, fields and steps; --show; an interactive prompt - #21

Merged
cekees merged 2 commits into
mainfrom
ymf2xmf-select
Oct 23, 2026
Merged

cekees merged 2 commits into
mainfrom
ymf2xmf-select

Conversation

@cekees

@cekees cekees commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

C1.3 of the proteus campaign roster: interactive ymf2xmf with component cherry-picking and a show step.

  • ymf.archive.select_domain(domain, collections=, fields=, steps=): a copy of a domain holding only the chosen time collections (by name or part of one), the chosen fields on every grid (inside spatial collections too), and the chosen steps (step_indices: Python indices and slices such as -1, 0:10, ::5). A name that matches nothing is refused, naming what the archive holds.
  • ymf2xmf -c/--collection -f/--field -s/--steps: convert only that part. --show: describe the archive (numbered collections, step span, topology, every field any step carries) and convert nothing. -i: be asked, by number, with blank keeping everything.
  • The .ymf is never touched; the .xmf describes the part asked for.

18 tests; the full suite is 497 passed.

🤖 Generated with Claude Code

cekees and others added 2 commits October 23, 2026 22:03
…ctive prompt

select_domain(domain, collections=, fields=, steps=) in the archive core
is a copy holding only the chosen time collections (by name or part of
one), the chosen fields on every grid, and the chosen steps (Python
indices and slices: -1, 0:10, ::5). A name that matches nothing is
refused with what the archive holds.

ymf2xmf gains -c/--collection, -f/--field, -s/--steps for it, --show to
describe the archive and convert nothing, and -i to be asked. The
description numbers the collections and lists every field any step
carries. The .ymf is never changed; the .xmf describes the part asked
for, which is what a viewer opening one space, one field or one instant
of a long run wants.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cekees
cekees merged commit ef44cbe into main Oct 23, 2026
7 checks passed
@cekees
cekees deleted the ymf2xmf-select branch October 23, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant