Skip to content

Commit

Permalink
print things out
Browse files Browse the repository at this point in the history
  • Loading branch information
petrelharp committed Jan 4, 2025
1 parent 44cc73e commit 145233e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions stdpopsim/slim_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def _escape_eidos(s):
if (!exists("dry_run"))
defineConstant("dry_run", F);
defineConstant("verbosity", 5);
ffoo;
// Scaling factor to speed up simulation.
// See SLiM manual:
Expand Down Expand Up @@ -1817,7 +1816,7 @@ def _run_slim(
stderr=subprocess.PIPE,
) as proc:
stdout = proc.stdout.read()
for line in stdout.split():
for line in stdout.splitlines():
line = line.rstrip()
if print_output:
print(":::", line)
Expand Down
1 change: 1 addition & 0 deletions tests/test_slim_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def test_simulate(self, tmp_path):
print("::: STDERR")
print(stderr)
ts = tskit.load(fname)
assert False
# assert ts.num_samples == 10
# assert all(tree.num_roots == 1 for tree in ts.trees())

Expand Down

0 comments on commit 145233e

Please sign in to comment.