Skip to content

Commit

Permalink
Fix issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
apontzen committed Feb 4, 2018
1 parent 6ab9d19 commit 3042b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/black_holes_and_crossmatching.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Black holes are added to the _tangos_ database with a specialised script that sc
for black hole particles. Type:

```
tangos_add_bh tutorial_changa_blackholes
tangos_add_bh --sims tutorial_changa_blackholes
```

This scans through the timesteps, adds black holes from each snapshot, and links them together using merger
Expand Down
2 changes: 1 addition & 1 deletion tangos/scripts/add_bh.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def generate_halolinks(session, fname, pairs):
def timelink_bh(sims, session):
query = db.sim_query_from_name_list(sims, session)
for sim in query.all():
pairs = parallel_tasks.distributed(list(zip(sim.timesteps[:-1],sim.timesteps[1:])))
pairs = list(zip(sim.timesteps[:-1],sim.timesteps[1:]))
fname = glob.glob(db.config.base+"/"+sim.basename+"/*.mergers")
if len(fname)==0:
logger.error("No merger file for "+sim.basename)
Expand Down

0 comments on commit 3042b01

Please sign in to comment.