From 50f58b3899dbfe1d82ef16f6d6e06ac3065d56b2 Mon Sep 17 00:00:00 2001 From: David Hassell Date: Tue, 21 Nov 2023 12:45:40 +0000 Subject: [PATCH 1/2] Reduce the size of the test suite's file creation script --- cfdm/test/create_test_files.npz | Bin 0 -> 8515 bytes cfdm/test/create_test_files.py | 3279 +------------------------------ 2 files changed, 5 insertions(+), 3274 deletions(-) create mode 100644 cfdm/test/create_test_files.npz diff --git a/cfdm/test/create_test_files.npz b/cfdm/test/create_test_files.npz new file mode 100644 index 0000000000000000000000000000000000000000..6febacde481c0529a05c726f1a3943eab7fca44b GIT binary patch literal 8515 zcmZWv2UHVVw^q5}RRpd|7l<7MlrEu}U$}q`B1%^i5tJr|A|gZ*6){49h=6n=aJ?wS zNE2y>B7`2fln4SL2_zsT385rpNM3yZduzQivu4iBn%QUVv&*-?bJn?hQR=so+qP}{ zU2+}Tb}3@>gZRG=*=>s3!f*S+?;`G_;GdR6=B9KLWb{@jT_C-`UB zq;@!Gt=IZa-=hNm`hiFoJHg4@?B4k4kenG)@u_jMLUiU|MI$RJ6;lJ~kbmCLV3z0uZAgyE}ar`~vDI4one#ICaztVA$3CavcJcBkM?nUn;ZaxF+Ga*2j#x2o#RKHwU zR+~6Otc2c<{-*8nuJ+V!bHPPH1sd0O3^h&cCiD`!;hpGgeC6|nE&>VC$|gfMf;6UP zS*jWsE})Mf`GCd7#3N{JBL4!OBu<6j!;>}VQP6}oC6R+@0a7e>abdHMHPE-w0`3SD;r-b$(kqO|6(i8chOhnG8k?gQ6GI_;IW0SM7B8$Ma9~8-m z_Mq6%;>*#^jA?WaVjW}Fiq64{MBuv&h1pC!H4I+T)5Vd9E&dHYgpLw)5 zJ`Felc&ikLrVqLNHQlML$GbLa}QQCZ6I7i5cHKCn~##M!w55)O&l z4YJ2_80Z1$jEcSzCJs0R>{z>TO)@YLkcB^XLVmx%!tt{*(3hqP@Bn4N47d(&zyV9Z zkVGj9pa8f6ccdwzHPGrrSt4I53{1k45hOD3r-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ALn+|<5DeRrN3M) z5N8(m#JtsGD0z-A2(Ki${G%7Wi}1BWtt87MsR#y_MKkm~3klB9)d{8H}j)4+M|4Gcb6J5#lo? z!|)3w?Yd3V>-!ry!~MZGJqRf`n$#bxmwrpANBI&gW5(8DgM~2dAJHL!y_@3?<%0XG ziN;VpWo=tX{UPtG;caB^>o7 z$tZJ0{ze-ztkNR~(mbWVYFXJ5-0`RrPs(Avik06;Egzhja2lAOS+pIfS83jabArOB z%4RH>klroJrATHvB_|D*s@*iMwV{hnTGLvKL4IA}`w-q@z?itj$?Y*Wi5}&#c_Xl? zNo3P=_IePYAgsq)HKuKi4S08r;qz*{vQzU2r&Dox*Qn7>4|^L0auH2;wg{hp7<8>q z1do~!K0upo3qF1z!Jwe3^?>CTsnPrROB>&@jeu5YE*B9-M#Q)^wpLT-lglP*^ Date: Tue, 21 Nov 2023 12:49:47 +0000 Subject: [PATCH 2/2] file path --- cfdm/test/create_test_files.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cfdm/test/create_test_files.py b/cfdm/test/create_test_files.py index d2781abf8..01dc133e8 100644 --- a/cfdm/test/create_test_files.py +++ b/cfdm/test/create_test_files.py @@ -14,7 +14,10 @@ VN = cfdm.CF() # Load large arrays -arrays = np.load("create_test_files.npz") +filename = os.path.join( + os.path.dirname(os.path.abspath(__file__)), "create_test_files.npz" +) +arrays = np.load(filename) # --------------------------------------------------------------------