Skip to content

Commit 496b090

Browse files
committed
lint fix
1 parent 324d9e3 commit 496b090

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cmdstanpy/model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,9 @@ def variational(
12681268
transcript_file = runset.stdout_files[dummy_chain_id]
12691269
with open(transcript_file, 'r') as transcript:
12701270
contents = transcript.read()
1271-
pat = re.compile(r'stan::variational::normal_meanfield::calc_grad:', re.M)
1271+
pat = re.compile(
1272+
r'stan::variational::normal_meanfield::calc_grad:', re.M
1273+
)
12721274
if len(re.findall(pat, contents)) > 0:
12731275
if grad_samples is None:
12741276
grad_samples = 10
@@ -1281,7 +1283,7 @@ def variational(
12811283
msg = (
12821284
'Variational algorithm failed.\n '
12831285
'Console output:\n{}'.format(contents)
1284-
)
1286+
)
12851287
raise RuntimeError(msg)
12861288
# pylint: disable=invalid-name
12871289
vb = CmdStanVB(runset)

0 commit comments

Comments
 (0)