Christopher Dupuis

Results 57 comments of Christopher Dupuis

Hi all, just wondering what the status of this is? I'm writing some xbatcher example notebooks and I'm running into this issue again.

Looking back at this, I think this issue is more a consequence of iterating over separate batches, rather than a problem with xbatcher itself. I could see a solution here...

Hey all, has there been any movement on this PR, or maybe elsewhere? It seems like a nice feature to me.

I'm putting together some combined xbatcher/ML examples, although I think what you want is probably simpler. Mine are going to be end-to-end tutorials.

Sounds reasonable, their formatting is pretty clean too. I'll have to look into it more, but for now I'm just trying to get the notebooks working lol They're oceanography-based, but...

@maxrjones Yeah, sounds great, I'll start a thread over there.

Can the test at the bottom be wrapped as a function? I'm guessing it's not supposed to run for everyone.

Actually I think I was confused. I read `if __name__ == "__main__"` as _the_ entry point rather than as a conditional entry point. Pythonisms are not for forte lol

Hey @maxrjones, does [this ](https://github.com/xarray-contrib/xbatcher/blob/673e3caefb4a23102bfc8e2292f468f735f0189c/xbatcher/generators.py#L434)serve any purpose? It's incredibly annoying to get through batch generation only to crash because I forgot to rename the dimensions I'm subsetting.

Partial example: ``` bgen = xb.BatchGenerator( ds, {'nlon':nlons, 'nlat':nlats}, concat_input_dims=True ) sub = {'nlon':range(halo_size,nlons-halo_size), 'nlat':range(halo_size,nlats-halo_size)} for batch in bgen: batch_input = [batch[x][sub] for x in ['SSH', 'SST']] ``` This will...