Skip to content

Commit 2ba0cbe

Browse files
jswhit2jswhit2
authored andcommitted
insert warning about threads
1 parent e8e7166 commit 2ba0cbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/netCDF4/_netCDF4.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,10 @@ are collective. There are a couple of important limitations of parallel IO:
10501050
to write to it.
10511051
- You cannot use variable-length (VLEN) data types.
10521052
1053+
***Import warning regarding threads:*** The underlying netcdf-c library is not thread-safe, so netcdf4-python cannot perform parallel
1054+
IO in a multi-threaded environment. Users should expect segfaults if a netcdf file is opened on multiple threads - care should
1055+
be taken to restrict netcdf4-python usage to a single thread, even when using free-threaded python.
1056+
10531057
## Dealing with strings
10541058
10551059
The most flexible way to store arrays of strings is with the

0 commit comments

Comments
 (0)