1313from pathlib import Path
1414import phconvert as phc
1515
16- from .diffusion import hash_
16+ from .diffusion import hashfunc
1717from ._version import get_versions
1818__version__ = get_versions ()['version' ]
1919
@@ -268,7 +268,7 @@ def filepath(self):
268268 def _calc_hash_da (self , rs ):
269269 """Compute hash of D and A timestamps for single-step D+A case.
270270 """
271- self .hash_d = hash_ (rs .get_state ())[:6 ]
271+ self .hash_d = hashfunc (rs .get_state ())[:6 ]
272272 self .hash_a = self .hash_d
273273
274274 def run (self , rs , overwrite = True , skip_existing = False , path = None ,
@@ -291,7 +291,7 @@ def run(self, rs, overwrite=True, skip_existing=False, path=None,
291291 header = ' - Mixture Simulation:'
292292
293293 # Donor timestamps hash is from the input RandomState
294- self .hash_d = hash_ (rs .get_state ())[:6 ] # needed by merge_da()
294+ self .hash_d = hashfunc (rs .get_state ())[:6 ] # needed by merge_da()
295295 print ('%s Donor timestamps - %s' % (header , ctime ()), flush = True )
296296 self .S .simulate_timestamps_mix (
297297 populations = self .populations ,
@@ -304,7 +304,7 @@ def run(self, rs, overwrite=True, skip_existing=False, path=None,
304304 # donor + acceptor timestamps given the input random state.
305305 ts_d , _ , _ = self .S .get_timestamp_data (self .name_timestamps_d )
306306 rs .set_state (ts_d .attrs ['last_random_state' ])
307- self .hash_a = hash_ (rs .get_state ())[:6 ] # needed by merge_da()
307+ self .hash_a = hashfunc (rs .get_state ())[:6 ] # needed by merge_da()
308308 print ('\n %s Acceptor timestamps - %s' % (header , ctime ()), flush = True )
309309 self .S .simulate_timestamps_mix (
310310 populations = self .populations ,
0 commit comments