Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add validphys.commondata to vp-setupfits providers list #2066

Merged
merged 1 commit into from
Apr 30, 2024
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