Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Dec 18, 2024
1 parent 19ef2c6 commit 2942880
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pyvela/pyvela/pyvela_script.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

from argparse import ArgumentParser
import sys
import os
Expand Down Expand Up @@ -41,6 +39,7 @@ def info_dict(args):
"julia": str(vl.VERSION),
"pyvela": pyvela.__version__,
"pint": pint.__version__,
"emcee": emcee.__version__,
},
}

Expand Down Expand Up @@ -69,7 +68,7 @@ def prepare_outdir(args):
if args.prior_file is not None:
shutil.copy(args.prior_file, args.outdir)
with open(f"{args.outdir}/summary.json", "w") as summary_file:
json.dump(summary_info, summary_file)
json.dump(summary_info, summary_file, indent=4)


def save_spnta_attrs(spnta: SPNTA, args):
Expand Down Expand Up @@ -111,7 +110,3 @@ def main(argv=None):
np.save(f, samples_raw)
with open(f"{args.outdir}/samples.npy", "wb") as f:
np.save(f, samples)


if __name__ == "__main__":
main(sys.argv[1:])

0 comments on commit 2942880

Please sign in to comment.