#2879: grass.script.array cannot read raster on Windows --------------------------+----------------------------- Reporter: annakrat | Owner: grass-dev@… Type: defect | Status: new Priority: critical | Milestone: 7.0.4 Component: Python | Version: svn-trunk Resolution: | Keywords: wingrass, numpy CPU: Unspecified | Platform: MSWindows 8 --------------------------+-----------------------------
Comment (by glynn): > This file is created when the array is initialized and it is open, so on Windows no other process can write to it. It's possible for multiple processes to write to the same file, but that may require specifying additional flags (which neither the underlying numpy.memmap constructor nor Python's mmap.mmap constructor appear to support). OTOH, it's also possible that Windows doesn't allow writing to files which are memory-mapped. It isn't possible to avoid opening the file in the constructor, so the only other option would be to optionally pass the mapname and null parameters to the constructor and have the constructor call the read() method before calling the parent constructor. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/2879#comment:3> GRASS GIS <https://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev