I would like a print command in the command line, similar to what we had before. Here is the
Commit

old file. """print -- print the values (or grid) of the active datasets."""
from future import annotations
import click from .._apply import active_datasets
np.set_printoptions(precision=16)
@click.command("print") @click.option("--use", default=None, help="Select active datasets carrying this tag.") @click.option("--grid", "-g", "show_grid", is_flag=True, default=False, # end for d in pool: if show_grid: for axis in d.grid: click.echo(axis) # end # end else: click.echo(np.asarray(d.values).squeeze())
end
pgkyl file.gkyl print pgkyl file.gkyl print --grid pgkyl file.gkyl print --use mytag pgkyl file.gkyl interpolate print
--grid also accepts -g. Raw modal data prints coefficients; interpolate first for field values. Printing preserves the pipeline and NumPy’s global settings.
Validation: 177 tests passed. Entire-Checkpoint: 01M25XANMXD4NMVKQSPS4920MA