Skip to content

Commit

Permalink
Vanilla universe (#169)
Browse files Browse the repository at this point in the history
* fix a pytest

* add toml

* fix unintended mod to toml file. (I blame my cat)

* add toml

* fix unintended mod to toml file. (I blame my cat)

* add --no-submit option to allow us to create the batch submission (DAG) file but without trying to submit it. That requires hveto to run in the local universe.

* Update hveto/__main__.py

reformat add_argumenyt

Co-authored-by: Duncan Macleod <duncanmmacleod+github@gmail.com>

* Update hveto/__main__.py

Co-authored-by: Duncan Macleod <duncanmmacleod+github@gmail.com>

* fix problem with patch

* fix the fix problem with patch, wrong open paren closed

---------

Co-authored-by: Joseph Areeda <joseph.areeda@ligo.org>
Co-authored-by: Duncan Macleod <duncanmmacleod+github@gmail.com>
  • Loading branch information
3 people authored Mar 19, 2024
1 parent 80e7279 commit e972226
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion hveto/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ def create_parser():
'this will launch automatically to condor, '
'requires the gwdetchar package'),
)
parser.add_argument(
'--no-submit',
action='store_true',
help=(
'When omega scans are requested, do not submit DAG. '
'Used when hveto is run in condor vanilla universe'),
)

# output options
pout = parser.add_argument_group('Output options')
Expand Down Expand Up @@ -924,10 +931,11 @@ def main(args=None):
timeout=4,
extra_commands=["request_disk=1G"],
gps=start)
do_submit = not args.no_submit
batch.generate_dag(
newtimes,
flags=flags,
submit=True,
submit=do_submit,
outdir=omegadir,
condor_commands=condorcmds)
LOGGER.info('Launched {} omega scans to condor'.format(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test = [
# sphinx documentation
docs = [
"numpydoc",
"Sphinx >=1.8",
"Sphinx",
"sphinx_bootstrap_theme",
"sphinxcontrib-programoutput",
]
Expand Down

0 comments on commit e972226

Please sign in to comment.