Skip to content

Commit 64fff58

Browse files
committed
Update for new output
1 parent 2c4a099 commit 64fff58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmdstanpy/model.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,9 +1604,6 @@ def log_prob(
16041604
output = os.path.join(output_dir, "output.csv")
16051605
cmd += ["output", f"file={output}"]
16061606

1607-
log_p = os.path.join(output_dir, "log_p.csv")
1608-
cmd += [f"log_prob_output_file={log_p}"]
1609-
16101607
get_logger().debug("Cmd: %s", str(cmd))
16111608

16121609
proc = subprocess.run(
@@ -1623,7 +1620,7 @@ def log_prob(
16231620
+ str(proc.returncode)
16241621
)
16251622

1626-
result = pd.read_csv(log_p)
1623+
result = pd.read_csv(output, comment="#")
16271624
return result
16281625

16291626
def _run_cmdstan(

0 commit comments

Comments
 (0)