File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ Release notes
18
18
* Updated the msgpack dependency (by :user: `Jerome Kelleher <jeromekelleher> `;
19
19
:issue: `74 `, :issue: `75 `).
20
20
21
- * Allow :class: `Blosc ` compressor to run on systems where locks are not present (by
22
- :user: `Marcus Kinsella <mckinsel> `; :issue: `#83 `).
21
+ * Allow :class: `Blosc ` compressor to run on systems where locks are not present (by
22
+ :user: `Marcus Kinsella <mckinsel> `, :issue: `83 `; and :user: `Tom White <tomwhite> `,
23
+ :issue: `93 `).
23
24
24
25
* Drop Python 3.4 (by :user: `John Kirkham <jakirkham> `; :issue: `89 `).
25
26
@@ -61,7 +62,7 @@ Release notes
61
62
62
63
* Add support for encoding None values in VLen... codecs (:issue: `59 `).
63
64
64
-
65
+
65
66
.. _release_0.5.1 :
66
67
67
68
0.5.1
Original file line number Diff line number Diff line change 44
44
from numcodecs .blosc import Blosc
45
45
register_codec (Blosc )
46
46
# initialize blosc
47
- ncores = multiprocessing .cpu_count ()
47
+ try :
48
+ ncores = multiprocessing .cpu_count ()
49
+ except OSError :
50
+ ncores = 1
48
51
blosc .init ()
49
52
blosc .set_nthreads (min (8 , ncores ))
50
53
atexit .register (blosc .destroy )
You can’t perform that action at this time.
0 commit comments