Skip to content

Commit

Permalink
Take away the clip dimension for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidner committed Jan 26, 2024
1 parent c118dae commit 8c4c4bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/autopack/gui/main_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ def open_directory_dialog(


def prune_dataset_for_viz(ds: xr.Dataset, drop_meta=False):
dims_to_drop = ["cost_field"]
dims_to_drop = ["cost_field", "clip"]
vars_to_drop = ["harness"]
if drop_meta:
vars_to_drop.extend(
var.name for var in ds.data_vars.values() if "meta." in var.name
)
return ds.drop_dims(dims_to_drop).drop_vars(vars_to_drop)
return ds.drop_dims(dims_to_drop, errors="ignore").drop_vars(
vars_to_drop, errors="ignore"
)


def to_viz_dataframe(ds: xr.Dataset, drop_meta=False):
Expand Down

0 comments on commit 8c4c4bf

Please sign in to comment.