Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pyprojecttoml redux #456

Merged
merged 5 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
omit =
*/tests/*
*/data/*

*/scripts/*

[report]
omit =
*/tests/*
*/data/*
*/scripts/*
12 changes: 0 additions & 12 deletions MANIFEST.in

This file was deleted.

27 changes: 27 additions & 0 deletions hera_qm/scripts/ant_metrics_run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2019 the HERA Project
# Licensed under the MIT License

from hera_qm import utils
from hera_qm import ant_metrics
import sys

def main():
ap = utils.get_metrics_ArgumentParser('ant_metrics')
args = ap.parse_args()
history = ' '.join(sys.argv)
ant_metrics.ant_metrics_run(args.sum_files,
diff_files=args.diff_files,
apriori_xants=args.apriori_xants,
a_priori_xants_yaml=args.a_priori_xants_yaml,
crossCut=args.crossCut,
deadCut=args.deadCut,
metrics_path=args.metrics_path,
extension=args.extension,
overwrite=args.clobber,
verbose=args.verbose,
history=history)

if __name__ == '__main__':
main()
29 changes: 29 additions & 0 deletions hera_qm/scripts/auto_metrics_run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2021 the HERA Project
# Licensed under the MIT License

from hera_qm import utils
from hera_qm.auto_metrics import auto_metrics_run
import sys

def main():
ap = utils.get_metrics_ArgumentParser('auto_metrics')
args = ap.parse_args()
history = ' '.join(sys.argv)

auto_metrics_run(args.metric_outfile,
args.raw_auto_files,
median_round_modz_cut=args.median_round_modz_cut,
mean_round_modz_cut=args.mean_round_modz_cut,
edge_cut=args.edge_cut,
Kt=args.Kt,
Kf=args.Kf,
sig_init=args.sig_init,
sig_adj=args.sig_adj,
chan_thresh_frac=args.chan_thresh_frac,
history=history,
overwrite=args.clobber)

if __name__ == '__main__':
main()
Loading
Loading