Skip to content

Commit d1d0f77

Browse files
committed
fix wrong argument names
1 parent 50fa33a commit d1d0f77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/get_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def pnetcdf_io(filename):
5252
# create a new file using clobber "w" mode
5353
f = pnetcdf.File(filename=filename,
5454
mode = 'w',
55-
file_format = "NC_64BIT_DATA",
55+
format = "NC_64BIT_DATA",
5656
comm=comm,
5757
info=None)
5858

test/tst_file_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def tearDown(self):
5858
def runTest(self):
5959
"""testing file access with different modes with CDF5/CDF2/CDF1 file format"""
6060
# TEST MODE "w"
61-
with pnetcdf.File(filename=self.file_path, mode='w', format=self.file_format, Comm=comm) as f:
61+
with pnetcdf.File(filename=self.file_path, mode='w', format=self.file_format, comm=comm) as f:
6262
# Try writing to file by defining a dimension
6363
f.def_dim('x',xdim)
6464
# Validate the created data file using ncvalidator tool

0 commit comments

Comments
 (0)