dvalters / fuse-netcdf

ESoWC project to develop a Python utility to mount NetCDF files as a file-system in user space. (FUSE)
Other
8 stars 3 forks source link

refactored writing to (dimension) variables #44

Closed blazk closed 6 years ago

blazk commented 6 years ago

@dvalters writing to variables is more complex than it seemed to me at first!

dvalters commented 6 years ago

Hi @blazk - yes I did not expect it to be as complicated either! - Thanks for this PR - looks good. I will merge it now. Does look like we would need to make some changes to the overall architecture for more flexible variable editing. (given the range of potential tools people could edit the files with...)

blazk commented 6 years ago

Thanks @dvalters

So in terms of architecture, currently it is stateless meaning an entire operation (e.g. creating a variable, changing variable data array) must be done within a single FUSE call.

This doesn't always work:

So I think we need e.g. a Variable class to store a state between FUSE calls