Skip to content

Commit

Permalink
allow swig file to support python2 for main
Browse files Browse the repository at this point in the history
  • Loading branch information
barakr committed Nov 1, 2023
1 parent c5bbfb2 commit 945ad61
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/expensive_test_hdf5_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 945ad61

Please sign in to comment.