Skip to content

Commit

Permalink
Fixup 3b236d5: add progress option to B2R2
Browse files Browse the repository at this point in the history
  • Loading branch information
briling committed Feb 21, 2024
1 parent 0cba774 commit 11b3191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qstack/qml/b2r2.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get_b2r2_l_molecular(ncharges, coords, elements,
return twobodyrep


def get_b2r2(reactions, variant='l', rcut=defaults.rcut, gridspace=defaults.gridspace):
def get_b2r2(reactions, variant='l', progress=False, rcut=defaults.rcut, gridspace=defaults.gridspace):
if variant=='l':
get_b2r2_molecular=get_b2r2_l_molecular
combine = lambda r,p: p-r
Expand All @@ -145,7 +145,7 @@ def get_b2r2(reactions, variant='l', rcut=defaults.rcut, gridspace=defaults.grid
combine = lambda r,p: np.hstack((r,p))
else:
raise RuntimeError(f'Unknown B2R2 {variant=}')
return get_b2r2_inner(reactions, rcut=rcut, gridspace=gridspace,
return get_b2r2_inner(reactions, progress=progress, rcut=rcut, gridspace=gridspace,
get_b2r2_molecular=get_b2r2_molecular, combine=combine)


Expand Down

0 comments on commit 11b3191

Please sign in to comment.