Skip to content

Commit d01ad91

Browse files
authored
Merge pull request #212 from SBouchard01/bgs_prep
Adding BGS filter to prepare_sim
2 parents 44e2510 + cbe0dc1 commit d01ad91

3 files changed

Lines changed: 96 additions & 71 deletions

File tree

abacusnbody/analysis/__init__.py

Whitespace-only changes.

abacusnbody/hod/menv.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99
import numpy as np
1010
from scipy.spatial import KDTree
1111

12+
import logging
13+
1214
from ..util import cumsum
1315

1416
__all__ = ['do_Menv_from_tree']
1517

1618
DEFAULT_BATCH_SIZE = 10**5
1719

20+
logger = logging.getLogger(__name__)
21+
1822

1923
def do_Menv_from_tree(
2024
pos,
@@ -53,7 +57,7 @@ def do_Menv_from_tree(
5357
if r_outer.ndim > 0:
5458
r_outer = r_outer[mmask]
5559

56-
print('Building and querying trees for mass env calculation')
60+
logger.info('Building and querying trees for mass env calculation')
5761
tree = KDTree(pos, boxsize=treebox)
5862

5963
# we're taking potentially large differences, use float64

0 commit comments

Comments
 (0)