Skip to content

Weekly hveto program added#176

Open
areeda wants to merge 46 commits into
gwdetchar:masterfrom
areeda:weekly
Open

Weekly hveto program added#176
areeda wants to merge 46 commits into
gwdetchar:masterfrom
areeda:weekly

Conversation

@areeda

@areeda areeda commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

The hveto-weekly program creates a condor DAG and submit files to run the existing hveto program with and arbitrary duration, like 7 days, on a set of dates to make backfilling easy.

Joseph Areeda and others added 28 commits June 16, 2023 15:00
* Add support for SNAX triggers

* Pin gwtrigfind requirement for snax

---------

Co-authored-by: Derek Davis <derek.davis@ldas-pcdev1.ligo-wa.caltech.edu>
@codecov

codecov Bot commented Aug 25, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 312 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.46%. Comparing base (e8ff509) to head (efe50e0).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
hveto/cli/hveto_run.py 0.00% 311 Missing ⚠️
hveto/__main__.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #176      +/-   ##
==========================================
- Coverage   39.88%   33.46%   -6.42%     
==========================================
  Files          21       22       +1     
  Lines        1735     2104     +369     
==========================================
+ Hits          692      704      +12     
- Misses       1043     1400     +357     
Flag Coverage Δ
Conda 33.46% <0.00%> (-6.42%) ⬇️
Linux 33.46% <0.00%> (-6.42%) ⬇️
macOS 33.46% <0.00%> (-6.42%) ⬇️
python3.10 33.46% <0.00%> (-6.42%) ⬇️
python3.11 33.46% <0.00%> (-6.42%) ⬇️
python3.9 33.48% <0.00%> (-6.43%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jrsmith02

Copy link
Copy Markdown
Contributor

The idea of this code makes sense to me. It will be good to have. I have not done a thorough review of the code files though.

Comment thread docs/Condor/README.md
This directory contains tempplates for Condor cron jobs to run hveto
on a daily basis as used by the Detchar account.

These templates are used to create the actual ssubmit files in

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo

Suggested change
These templates are used to create the actual ssubmit files in
These templates are used to create the actual submit files in

Comment thread docs/Condor/README.md
Comment on lines +8 to +9
- hveto-weekly.su - runs once per day and covers the previous 7 days from
00:00 to 00:00 UTc No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- hveto-weekly.su - runs once per day and covers the previous 7 days from
00:00 to 00:00 UTc
- hveto-weekly.sub - runs once per day and covers the previous 7 days from
00:00 to 00:00 UTC

Comment thread hveto/cli/weekly_hveto.py Outdated
default_end_date = now_utc.strftime('%Y-%m-%d')

parser.add_argument('-e', '--end', type=to_day, default=default_end_date,
help='Processng looks back duration days up to but not including this date. (default: %(default)s).')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
help='Processng looks back duration days up to but not including this date. (default: %(default)s).')
help='Processing looks back duration days up to but not including this date. (default: %(default)s).')

Comment thread hveto/cli/weekly_hveto.py Outdated
Comment on lines +167 to +168
help='We process one day at a time from end daste back to star date each '
'run is duration days long (default: %(default)s).')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
help='We process one day at a time from end daste back to star date each '
'run is duration days long (default: %(default)s).')
help='Process one day at a time from end date back to start date where '
'each run is duration days long (default: %(default)s).')

Comment thread docs/Condor/hveto-weekly.sub Outdated
#!/usr/bin/env condor_submit
#
# Condor submit file for Hveto weekly processing
# it runs inn the local universe creates and submits a DAG to the vbanilla universe

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# it runs inn the local universe creates and submits a DAG to the vbanilla universe
# it runs in the local universe and creates and submits a DAG to the vanilla universe

Comment thread hveto/cli/weekly_hveto.py Outdated
help='We process one day at a time from end daste back to star date each '
'run is duration days long (default: %(default)s).')
parser.add_argument('-d', '--duration', type=int, default=7,
help='Number of days analyze for each day (default: %(default)s).')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
help='Number of days analyze for each day (default: %(default)s).')
help='Number of days analyze for each run (default: %(default)s).')

Comment thread hveto/cli/weekly_hveto.py Outdated
parser.add_argument('--stride', type=int, default=1,
help='Number of days between each hveto run. '
'For example start=7/1, end=7/29, stride=7, duration=7'
'will create 4 hveto reports ending on 7/28, 7/21, 7/14, 7/1 each covering 7 days')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'will create 4 hveto reports ending on 7/28, 7/21, 7/14, 7/1 each covering 7 days')
'will create 4 hveto reports ending on 7/28, 7/21, 7/14, 7/7 each covering 7 days')

Comment thread hveto/cli/weekly_hveto.py Outdated

To run hveto for every day for the month of July, each run covering 7 days:

python -m weekly_hveto --start 7/1 --end 7/31 --duration 7 --stride 1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this need to have --end 8/1, to include 7/31?

Comment thread hveto/cli/weekly_hveto.py Outdated
dag_file.parent.mkdir(parents=True, exist_ok=True)

with dag_file.open('w') as dag_fh:
print(f'# process long duration hveto for {start_day} to {end_day} each {duration} days', file=dag_fh)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@areeda I think you might have already fixed this during our meeting, but I think this should be something like '# process long duration hveto for {start_day} to {end_day}, running each {stride} days, with each run covering {duration} days' - but note that it could confuse the user a little, in that there is no run that includes 'end_day' (here and throughout the code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants