Skip to content
Merged
Changes from all 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
22 changes: 7 additions & 15 deletions n3fit/src/n3fit/scripts/vp_setupfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,18 @@
from validphys.app import App
from validphys.config import Config, ConfigError, Environment, EnvironmentError_

SETUPFIT_FIXED_CONFIG = dict(
actions_=[
'datacuts check_t0pdfset',
'theory check_positivity',
]
)
SETUPFIT_FIXED_CONFIG = dict(actions_=['datacuts check_t0pdfset', 'theory check_positivity'])

SETUPFIT_PROVIDERS = [
'n3fit.n3fit_checks_provider',
'validphys.commondata',
'validphys.covmats',
'validphys.filters',
'validphys.theorycovariance.construction',
'validphys.results',
'validphys.covmats',
'n3fit.n3fit_checks_provider',
'validphys.theorycovariance.construction',
]

SETUPFIT_DEFAULTS = dict(
use_cuts='internal',
)
SETUPFIT_DEFAULTS = dict(use_cuts='internal')


log = logging.getLogger(__name__)
Expand All @@ -70,8 +64,6 @@
class SetupFitError(Exception):
"""Exception raised when setup-fit cannot succeed and knows why"""

pass


class SetupFitEnvironment(Environment):
"""Container for information to be filled at run time"""
Expand Down Expand Up @@ -178,7 +170,7 @@ class SetupFitApp(App):
config_class = SetupFitConfig

def __init__(self):
super(SetupFitApp, self).__init__(name='setup-fit', providers=SETUPFIT_PROVIDERS)
super().__init__(name='setup-fit', providers=SETUPFIT_PROVIDERS)

@property
def argparser(self):
Expand Down