n3fit.scripts package

Submodules

n3fit.scripts.evolven3fit_new module

This module contains the CLI for evolven3fit_new

n3fit.scripts.evolven3fit_new.construct_eko_parser(subparsers)[source]
n3fit.scripts.evolven3fit_new.construct_eko_photon_parser(subparsers)[source]
n3fit.scripts.evolven3fit_new.construct_evolven3fit_parser(subparsers)[source]
n3fit.scripts.evolven3fit_new.main()[source]

n3fit.scripts.n3fit_exec module

n3fit - performs fit using ml external frameworks

class n3fit.scripts.n3fit_exec.N3FitApp[source]

Bases: App

The class which parsers and performs the fit

property argparser
config_class

alias of N3FitConfig

environment_class

alias of N3FitEnvironment

get_commandline_arguments(cmdline=None)[source]
run()[source]
class n3fit.scripts.n3fit_exec.N3FitConfig(input_params, environment=None)[source]

Bases: Config

Specialization for yaml parsing

classmethod from_yaml(o, *args, **kwargs)[source]
parse_fakedata(fakedata: bool)[source]

Parses the fakedata key from the closuretest namespace, if True then use generated closure test in fit

produce_fit()[source]

Produces a FitSpec which points at the current fit, to load fit_commondata from.

produce_hyperscanner(parameters, hyperscan_config=None, hyperopt=None)[source]

For a hyperparameter scan to be run, a hyperscanner must be constructed from the original hyperscan_config

produce_kfold_parameters(kfold=None, hyperopt=None)[source]

Return None even if there are kfolds in the runcard if the hyperopt flag is not active

produce_kpartitions(kfold_parameters)[source]
produce_use_fitcommondata(fakedata)[source]

Produces the use_fitcommondata key from the fakedata key in closuretest namespace

class n3fit.scripts.n3fit_exec.N3FitEnvironment(*, this_folder=None, net=True, upload=False, dry=False, **kwargs)[source]

Bases: Environment

Container for information to be filled at run time

init_output()[source]
classmethod ns_dump_description()[source]
exception n3fit.scripts.n3fit_exec.N3FitError[source]

Bases: Exception

Exception raised when n3fit cannot succeed and knows why

n3fit.scripts.n3fit_exec.main()[source]

n3fit.scripts.varflavors module

varflavors.py

When producing a PDF with different maximal flavor number than the nf during the fit, this script should be used. It copies the original fit folder after which it run evolven3fit on this fit using the manually selected theory_id.

After running evolven3fit, this script replaces the AlphaS_MZ'' and ``MZ'' values in the .info file, with the ``alphas and Qref values from the theory database.

This script does not run postfit, that should still be done manually.

n3fit.scripts.varflavors.main()[source]

n3fit.scripts.vp_setupfit module

setup-fit - prepare and apply data cuts before fit setup-fit constructs the fit [results] folder where data used by nnfit will be stored.

class n3fit.scripts.vp_setupfit.SetupFitApp[source]

Bases: App

The class which parsers and perform the filtering

property argparser
config_class

alias of SetupFitConfig

environment_class

alias of SetupFitEnvironment

get_commandline_arguments(cmdline=None)[source]
run()[source]
class n3fit.scripts.vp_setupfit.SetupFitConfig(input_params, environment=None)[source]

Bases: Config

Specialization for yaml parsing

classmethod from_yaml(o, *args, **kwargs)[source]
class n3fit.scripts.vp_setupfit.SetupFitEnvironment(*, this_folder=None, net=True, upload=False, dry=False, **kwargs)[source]

Bases: Environment

Container for information to be filled at run time

init_output()[source]
classmethod ns_dump_description()[source]
save_md5()[source]

Generate md5 key from file

exception n3fit.scripts.vp_setupfit.SetupFitError[source]

Bases: Exception

Exception raised when setup-fit cannot succeed and knows why

n3fit.scripts.vp_setupfit.main()[source]

Module contents