Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Gregory Ashton
PyFstat
Commits
9de7652f
Commit
9de7652f
authored
Dec 14, 2017
by
Gregory Ashton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up of command line utils
Closes
#7
parent
4870f7b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
pyfstat/helper_functions.py
pyfstat/helper_functions.py
+10
-8
pyfstat/mcmc_based_searches.py
pyfstat/mcmc_based_searches.py
+0
-4
No files found.
pyfstat/helper_functions.py
View file @
9de7652f
...
...
@@ -38,16 +38,18 @@ def set_up_command_line_arguments():
parser
.
add_argument
(
"-v"
,
"--verbose"
,
action
=
"store_true"
,
help
=
"Increase output verbosity [logging.DEBUG]"
)
parser
.
add_argument
(
"-q"
,
"--quite"
,
action
=
"store_true"
,
help
=
"Decrease output verbosity [logging.WARNGING]"
)
parser
.
add_argument
(
"-vq"
,
"--very_quite"
,
action
=
"store_true"
,
help
=
"Increase output verbosity [logging.ERROR]"
)
help
=
"Decrease output verbosity [logging.WARNING]"
)
parser
.
add_argument
(
"--no-interactive"
,
help
=
"Don't use interactive"
,
action
=
"store_true"
)
parser
.
add_argument
(
"-c"
,
"--clean"
,
help
=
"Don't use cached data"
,
action
=
"store_true"
)
parser
.
add_argument
(
"-u"
,
"--use-old-data"
,
action
=
"store_true"
)
parser
.
add_argument
(
'-s'
,
"--setup-only"
,
action
=
"store_true"
)
parser
.
add_argument
(
"--no-template-counting"
,
action
=
"store_true"
)
parser
.
add_argument
(
"-c"
,
"--clean"
,
action
=
"store_true"
,
help
=
"Force clean data, never use cached data"
)
fu_parser
=
parser
.
add_argument_group
(
'follow-up options'
,
'Options related to MCMCFollowUpSearch'
)
fu_parser
.
add_argument
(
'-s'
,
"--setup-only"
,
action
=
"store_true"
,
help
=
"Only generate the setup file, don't run"
)
fu_parser
.
add_argument
(
"--no-template-counting"
,
action
=
"store_true"
,
help
=
"No counting of templates, useful if the setup is predefined"
)
parser
.
add_argument
(
'-N'
,
type
=
int
,
default
=
3
,
metavar
=
'N'
,
help
=
"Number of threads to use when running in parallel"
)
...
...
pyfstat/mcmc_based_searches.py
View file @
9de7652f
...
...
@@ -1224,10 +1224,6 @@ class MCMCSearch(core.BaseSearchClass):
return
d
def
_check_old_data_is_okay_to_use
(
self
):
if
args
.
use_old_data
:
logging
.
info
(
"Forcing use of old data"
)
return
True
if
os
.
path
.
isfile
(
self
.
pickle_path
)
is
False
:
logging
.
info
(
'No pickled data found'
)
return
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment