Skip to content

Commit

Permalink
added main call for distributed gibbs running
Browse files Browse the repository at this point in the history
  • Loading branch information
rsexton2 committed Feb 22, 2024
1 parent aec46e5 commit fe2fb3d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions basicrta/gibbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def run(self, run_resids=None):


class Gibbs(object):
"""Gibbs sampler to estimate parameters of an exponential mixture for a set
"""Gibbs sampler to estimate parameters of an exponential mixture for a set
of data. Results are stored in gibbs.results, which uses /home/ricky
MDAnalysis.analysis.base.Results(). If 'results=None' the gibbs sampler has
not been executed, which requires calling '.run()'
Expand Down Expand Up @@ -375,4 +375,11 @@ def estimate_tau(self):


if __name__ == '__main__':
print('do nothing')
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--contacts')
parser.add_argument('--nproc', type=int)
parser.add_argument('--resid', type=int)
args = parser.parse_args()

ParallelGibbs(args.contacts).run(run_resids=args.resid)

0 comments on commit fe2fb3d

Please sign in to comment.