CubeBrowser / cube-explorer

browser based exploration of iris cubes
BSD 3-Clause "New" or "Revised" License
8 stars 12 forks source link

Avoid loading and caching cube data #30

Closed philippjfr closed 8 years ago

philippjfr commented 8 years ago

Includes two fixes to avoid loading and caching cube data. The first avoids using the slices method in favor of the extract method since the former loads the data into memory. The second change uses copy, whereever the code tries to access the cube data. This should address #16.

jlstevens commented 8 years ago

The code looks correct and I've tested it on JupyterHub.

I've noticed that this fix really helps a lot with memory consumption: previously, the kernel would regularly run out of memory but I after applying this fix I haven't seen it happen once!

I'll go ahead and merge.