From 945ad61dd01841fce0dcca0a6157249f6c3f20ab Mon Sep 17 00:00:00 2001 From: barakr Date: Wed, 1 Nov 2023 12:10:15 +0200 Subject: [PATCH] allow swig file to support python2 for main --- test/expensive_test_hdf5_statistics.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/expensive_test_hdf5_statistics.py b/test/expensive_test_hdf5_statistics.py index 0df86cc..d1bc9be 100644 --- a/test/expensive_test_hdf5_statistics.py +++ b/test/expensive_test_hdf5_statistics.py @@ -11,7 +11,8 @@ import subprocess radius=8 -N_OUTPUT_FRAMES = 3 +N_OUTPUT_FRAMES = 25 +N_FULL_OUTPUT_PER_HDF5 = 5 BOX_SIDE=800 def get_95_conf(rate,time): @@ -40,6 +41,7 @@ def _make_cfg(self, cfg_file, is_orientational, is_multiple_hdf5s): cfg.is_multiple_hdf5s = is_multiple_hdf5s cfg.output_statistics_interval_ns = 1.0 cfg.simulation_time_ns = N_OUTPUT_FRAMES * cfg.output_statistics_interval_ns + cfg.full_output_statistics_interval_factor = N_FULL_OUTPUT_PER_HDF5 test_util.write_config_file(cfg_file, cfg) def _make_sd(self, is_orientational=False, is_multiple_hdf5s=False): @@ -93,8 +95,10 @@ def _test_xyz_stats_using_main(self, """ for is_multiple_hdf5s in [False, True]: print("*** Multiple HDF5s ***" if is_multiple_hdf5s else "*** Single HDF5 ***") - cfg_file = self.get_tmp_file_name("config{}.pb".format(is_multiple_hdf5s)) - out_file = self.get_tmp_file_name("output{}.pb".format(is_multiple_hdf5s)) + cfg_file = "config{}.pb".format(is_multiple_hdf5s) + out_file = "output{}.pb".format(is_multiple_hdf5s) +# cfg_file = self.get_tmp_file_name(cfg_file) +# out_file = self.get_tmp_file_name(out_file) self._make_cfg(cfg_file, is_orientational=is_orientational, is_multiple_hdf5s=is_multiple_hdf5s)