diff --git a/src/boris/boris2spec_app.py b/src/boris/boris2spec_app.py index 1212708..bf2692f 100755 --- a/src/boris/boris2spec_app.py +++ b/src/boris/boris2spec_app.py @@ -25,7 +25,7 @@ import argparse from pathlib import Path -import numpy as np +import math def boris2spec_app(): @@ -115,7 +115,7 @@ def boris2spec_app(): "--hdi-prob", metavar="PROB", help="HDI prob for which interval will be computed", - default=np.math.erf(np.sqrt(0.5)), + default=math.erf(math.sqrt(0.5)), ) parser.add_argument( "--burn", diff --git a/src/boris/io.py b/src/boris/io.py index 2aa02ce..4c6e97c 100644 --- a/src/boris/io.py +++ b/src/boris/io.py @@ -558,7 +558,8 @@ def read_dat_file(dat_file_path: Path, sim_root: Path | None = None) -> list[Sim sim_root = sim_root or dat_file_path.parents[0] with open(dat_file_path) as f: for line in f: - simulations.append(SimInfo.from_dat_file_line(line, sim_root)) + if line.strip(): + simulations.append(SimInfo.from_dat_file_line(line, sim_root)) return simulations