Skip to content

Commit

Permalink
[fix] Fix for dlwp_healpix dataloader not subsetting channels correct…
Browse files Browse the repository at this point in the history
…ly (#683)

* Fix for dlwp_healpix dataloader not subsetting channels correctly

* Adding fix for coupled dataloader as well

* format fix
  • Loading branch information
daviddpruitt authored Oct 29, 2024
1 parent f7a5773 commit f46e25f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modulus/datapipes/healpix/data_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@ def setup(self) -> None:
batch_size=self.batch_size,
)

dataset = dataset.sel(
channel_in=self.input_variables,
channel_out=self.output_variables,
)
else:
dataset = open_fn(
input_variables=self.input_variables,
Expand Down Expand Up @@ -984,6 +988,10 @@ def setup(self) -> None:
batch_size=self.batch_size,
)

dataset = dataset.sel(
channel_in=self.input_variables,
channel_out=self.output_variables,
)
else:
dataset = open_fn(
input_variables=self.input_variables + coupled_variables,
Expand Down

0 comments on commit f46e25f

Please sign in to comment.