Skip to content
Closed
Changes from 1 commit
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: 2 additions & 2 deletions validphys2/src/validphys/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,12 +1051,12 @@ 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=True, use_t0=False
Comment thread
scarlehoff marked this conversation as resolved.
Outdated
):
"""Return the t0set if use_t0 is True and None otherwise. Raises an
error if t0 is requested but no t0set is given.
"""
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")
return t0pdfset
Expand Down