@@ -51,11 +51,15 @@ class TestNvnmdEntrypointsV0(tf.test.TestCase):
5151 def test_mapt_cnn_v0 (self ) -> None :
5252 config_file = str (tests_path / "nvnmd" / "ref" / "config_v0_cnn.npy" )
5353 weight_file = str (tests_path / "nvnmd" / "ref" / "weight_v0_cnn.npy" )
54- output_filename = f'{ tests_path } /nvnmd/out/map_v0_cnn.npy'
55- parts = [f'{ tests_path } /nvnmd/out/map_v0_cnn_part_1.npy' , f'{ tests_path } /nvnmd/out/map_v0_cnn_part_2.npy' , f'{ tests_path } /nvnmd/out/map_v0_cnn_part_3.npy' ]
56- with open (output_filename , 'wb' ) as output_file :
54+ output_filename = f"{ tests_path } /nvnmd/out/map_v0_cnn.npy"
55+ parts = [
56+ f"{ tests_path } /nvnmd/out/map_v0_cnn_part_1.npy" ,
57+ f"{ tests_path } /nvnmd/out/map_v0_cnn_part_2.npy" ,
58+ f"{ tests_path } /nvnmd/out/map_v0_cnn_part_3.npy" ,
59+ ]
60+ with open (output_filename , "wb" ) as output_file :
5761 for part_filename in parts :
58- with open (part_filename , 'rb' ) as part_file :
62+ with open (part_filename , "rb" ) as part_file :
5963 output_file .write (part_file .read ())
6064 map_file = str (tests_path / "nvnmd" / "out" / "map_v0_cnn.npy" )
6165 # mapt
@@ -528,11 +532,14 @@ class TestNvnmdEntrypointsV1(tf.test.TestCase):
528532 def test_mapt_cnn_v1 (self ) -> None :
529533 config_file = str (tests_path / "nvnmd" / "ref" / "config_v1_cnn.npy" )
530534 weight_file = str (tests_path / "nvnmd" / "ref" / "weight_v1_cnn.npy" )
531- output_filename = f'{ tests_path } /nvnmd/out/map_v1_cnn.npy'
532- parts = [f'{ tests_path } /nvnmd/out/map_v1_cnn_part_1.npy' , f'{ tests_path } /nvnmd/out/map_v1_cnn_part_2.npy' ]
533- with open (output_filename , 'wb' ) as output_file :
535+ output_filename = f"{ tests_path } /nvnmd/out/map_v1_cnn.npy"
536+ parts = [
537+ f"{ tests_path } /nvnmd/out/map_v1_cnn_part_1.npy" ,
538+ f"{ tests_path } /nvnmd/out/map_v1_cnn_part_2.npy" ,
539+ ]
540+ with open (output_filename , "wb" ) as output_file :
534541 for part_filename in parts :
535- with open (part_filename , 'rb' ) as part_file :
542+ with open (part_filename , "rb" ) as part_file :
536543 output_file .write (part_file .read ())
537544 map_file = str (tests_path / "nvnmd" / "out" / "map_v1_cnn.npy" )
538545 # mapt
0 commit comments