From aee6b63ab71d576b464b4136a975d80cdaf26281 Mon Sep 17 00:00:00 2001 From: Youjia Li Date: Mon, 11 Sep 2023 00:28:40 -0500 Subject: [PATCH] Removed unwanted test programs --- test/att_create.py | 32 -------------------------------- test/dim_def.py | 19 ------------------- 2 files changed, 51 deletions(-) delete mode 100755 test/att_create.py delete mode 100755 test/dim_def.py diff --git a/test/att_create.py b/test/att_create.py deleted file mode 100755 index d87f11a..0000000 --- a/test/att_create.py +++ /dev/null @@ -1,32 +0,0 @@ -from mpi4py import MPI -import pncpy -import numpy as np -from utils import validate_nc_file - -FILE_NAME = "tst_att_create.nc" -file_format = '64BIT_OFFSET' -comm = MPI.COMM_WORLD -rank = comm.Get_rank() -size = comm.Get_size() - -file1 = pncpy.File(filename=FILE_NAME, mode='w', format=self._file_format, comm=comm, info=None) -file1.redef() -file1.dummy_attr1 = np.int32(10) if file_format != "64BIT_DATA" else 10 -setattr(file1, "dummy_attr2", "attibute2") -print(vars(file1)) - -file1.height = np.int32(123) if file_format != "64BIT_DATA" else 123 -print(vars(file1)) - -file1.time = [1.2, 2.3, 3.4] -print(vars(file1)) - -file1.rename_att(oldname = "dummy_attr2", newname = "dummy_attr3") -print(vars(file1)) - -delattr(file1, 'dummy_attr1') -print(vars(file1)) -file1.enddef() - -file1.close() -assert validate_nc_file(FILE_NAME) == 0 \ No newline at end of file diff --git a/test/dim_def.py b/test/dim_def.py deleted file mode 100755 index 190728a..0000000 --- a/test/dim_def.py +++ /dev/null @@ -1,19 +0,0 @@ -from mpi4py import MPI -import pncpy -from utils import validate_nc_file - - -comm = MPI.COMM_WORLD -rank = comm.Get_rank() -size = comm.Get_size() - -FILE_NAME = "tst_dim_create.nc" - -file1 = pncpy.File(filename=FILE_NAME, mode='w', comm=comm, info=None) -file1.def_dim(dimname = "dummy_dim1", size = 3) -file1.def_dim(dimname = "dummy_dim2", size = -1) -print(file1.dimensions) -file1.close() - -assert validate_nc_file(FILE_NAME) == 0 -