Skip to content

Commit

Permalink
add validphys.commondata to vp-setupfits providers list
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Apr 30, 2024
1 parent bd41add commit d9750c2
Showing 1 changed file with 7 additions and 15 deletions.
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

0 comments on commit d9750c2

Please sign in to comment.