can't open tempfile when using memmap array
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
swan |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When I try to input a big array, I get this err.
```
Using memory-mapped arrays...
Traceback (most recent call last):
.......
File "/ENVPATH/
return cwt_a(signal, scales, dt, wavelet, ppd, verbose=verbose)
File "/ENVPATH/
W = memsafe_
File "/ENVPATH/
return np.memmap(_tmpfile, dtype=dtype, shape=shape)
File "/ENVPATH/
fid.
TypeError: write() argument must be str, not bytes
```
(I am using Python 3.8.6)
This error is caused by line 33 in 'swan/pycwt.py' and to fix this,
- _tmpfile = tmpf.TemporaryF
+ _tmpfile = tmpf.TemporaryF
Please consider merge it.
Thank you for pointing this out, merged.