scipy/scipy — pull request #141 by WarrenWeckesser (2012-01-23 02:55:27+00:00)
Title: BUG: io: add work-around in netcdf.py for the bug in numpy that is the c...

...ause of the problem reported in ticket #1202

This change avoids the problem reported in ticket #1202 by checking the `writeable` flag of the data array before attempting to call assignValue() on the netcdf variable.

A pull request to fix the underlying problem has been submitted to numpy. Even after numpy is fixed, however, we'll need to support older versions of numpy, so the work-around provided by this pull request is necessary.