Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 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
1 change: 0 additions & 1 deletion n3fit/src/n3fit/scripts/n3fit_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

N3FIT_FIXED_CONFIG = dict(
use_cuts = 'internal',
use_t0 = True,
actions_ = []
)

Expand Down
7 changes: 4 additions & 3 deletions validphys2/src/validphys/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,14 +1051,15 @@ def parse_use_t0(self, do_use_t0: bool):

# TODO: Find a good name for this
def produce_t0set(
self, t0pdfset=None, use_t0_sampling=False, use_t0_fitting=True,
self, t0pdfset=None, use_t0_sampling=False, use_t0_fitting=False, use_t0=False
):
"""Return the t0set if use_t0 is True and None otherwise. Raises an
error if t0 is requested but no t0set is given.
Note that ``n3fit`` will set ``use_t0_fitting`` to `True` by default
"""
if use_t0_sampling or use_t0_fitting:
if use_t0_sampling or use_t0_fitting or use_t0:
Comment thread
scarlehoff marked this conversation as resolved.
Outdated
if not t0pdfset:
raise ConfigError("Setting use_t0 requires specifying a valid t0pdfset")
raise ConfigError("Setting use_t0* requires specifying a valid t0pdfset")
Comment thread
scarlehoff marked this conversation as resolved.
Outdated
return t0pdfset
return None

Expand Down