bsmart.scripts package

Submodules

bsmart.scripts.bsmart_emcee module

class bsmart.scripts.bsmart_emcee.LikelihoodHandler(inputs, log)[source]

Bases: object

get_LL(observables)[source]

return the likelihood; we won’t get this far if the point failed to be generated

smooth_cap_loss(x)[source]

Caps the loss by applying a sigmoid. This is useful for losses that are unbounded.

class bsmart.scripts.bsmart_emcee.UpScalerHandler(inputs, log)[source]

Bases: object

This class is used to upscale the parameters to the range of the black box, required in order to pickle.

upscale(theta)[source]
bsmart.scripts.bsmart_emcee.emcee_init_workers(shared_map)[source]
bsmart.scripts.bsmart_emcee.emcee_log_prob(theta, shared_id, shared_map, mylock)[source]
bsmart.scripts.bsmart_emcee.main()[source]

bsmart.scripts.bsmart_run module

bsmart.scripts.bsmart_run.main()[source]
bsmart.scripts.bsmart_run.parse_input(file)[source]
bsmart.scripts.bsmart_run.print_scan_and_tool_help(help_name: str = None)[source]

New feature to help users: list scans and tools if no argument is given, otherwise print help about that scan if it is

bsmart.scripts.build_examples module

Script to build all runnable examples!

bsmart.scripts.build_examples.havemodel(ModelName, extra_commands_list, run_if_missing=True)[source]
bsmart.scripts.build_examples.main()[source]

bsmart.scripts.install_heptools module

Simple install script for:

SARAH SPheno MicrOMEGAs HiggsBounds HiggsSignals HiggsTools FlexibleSUSY VevaciousPlusPlus SModelS ZPEED MultiNest Diver BSMArt

Everything will be installed as a subdirectory from where the script is called. Location info will be stalled in a json file which can later be used by the

prepareModel.py

script to set up a specific model

version of 29/01/2025

bsmart.scripts.install_heptools.add_SARAH_paths(fakedir=None)[source]

Add the path for the SARAH installation to the Mathematica directory. If fakedir is given, we create a local environment

bsmart.scripts.install_heptools.extract_tar(tarball)[source]

extract the tarball and return the base directory

bsmart.scripts.install_heptools.get_file(temp_url, user_filename=None)[source]
bsmart.scripts.install_heptools.go_COLLIER()[source]
bsmart.scripts.install_heptools.go_Diver()[source]
bsmart.scripts.install_heptools.go_FlexibleSUSY()[source]
bsmart.scripts.install_heptools.go_HiggsBounds()[source]
bsmart.scripts.install_heptools.go_HiggsSignals()[source]
bsmart.scripts.install_heptools.go_HiggsTools()[source]
bsmart.scripts.install_heptools.go_LoopTools()[source]
bsmart.scripts.install_heptools.go_MicrOMEGAs()[source]
bsmart.scripts.install_heptools.go_MultiNest()[source]
bsmart.scripts.install_heptools.go_SARAH()[source]
bsmart.scripts.install_heptools.go_SModelS()[source]
bsmart.scripts.install_heptools.go_SPheno()[source]
bsmart.scripts.install_heptools.go_VevaciousPlusPlus()[source]
bsmart.scripts.install_heptools.go_ZPEED()[source]
bsmart.scripts.install_heptools.install_COLLIER()[source]
bsmart.scripts.install_heptools.install_Diver(FF)[source]
bsmart.scripts.install_heptools.install_FlexibleSUSY()[source]
bsmart.scripts.install_heptools.install_HiggsBoundsSignals(NAME)[source]
bsmart.scripts.install_heptools.install_LoopTools()[source]
bsmart.scripts.install_heptools.install_MicrOMEGAs()[source]
bsmart.scripts.install_heptools.install_MultiNest()[source]
bsmart.scripts.install_heptools.install_SARAH()[source]
bsmart.scripts.install_heptools.install_SModelS()[source]
bsmart.scripts.install_heptools.install_SPheno(F90)[source]
bsmart.scripts.install_heptools.install_Vevaciouspp()[source]
bsmart.scripts.install_heptools.install_ZPEED()[source]
bsmart.scripts.install_heptools.main()[source]
bsmart.scripts.install_heptools.shell_command(command_to_execute, working_dir)[source]
bsmart.scripts.install_heptools.use_requests(temp_url, temp_filename)[source]

This for fastjet, which seems to have blocked the python wget

bsmart.scripts.prepare_bsmart module

class bsmart.scripts.prepare_bsmart.CompactJSONEncoder(*args, **kwargs)[source]

Bases: JSONEncoder

A JSON Encoder that puts small containers on single lines.

CONTAINER_TYPES = (<class 'list'>, <class 'tuple'>, <class 'dict'>)

Container datatypes include primitives or other containers.

MAX_ITEMS = 10

Maximum number of items in container that might be put on single line.

MAX_WIDTH = 70

Maximum width of a container that might be put on a single line.

encode(o)[source]

Encode JSON object o with respect to single line lists.

property indent_str: str
iterencode(o, **kwargs)[source]

Required to also work with json.dump.

bsmart.scripts.prepare_bsmart.main()[source]
bsmart.scripts.prepare_bsmart.makeBSMArtTemplates(modelname, bsmart_dict, paths_dict, includecodes)[source]
bsmart.scripts.prepare_bsmart.updateBSMArtTemplate(modelname, bsmart_dict, paths_dict, in_includecodes, template, template_name=None)[source]

bsmart.scripts.prepare_model module

Script to prepare a model using SARAH for use with selected tools, including SPheno, MicrOmegas, HiggsBounds, HiggsSignals, HiggsTools, flavio, MultiNest and BSMArt

2025/01/29

bsmart.scripts.prepare_model.get_lib_path(basedir)[source]
bsmart.scripts.prepare_model.main()[source]
bsmart.scripts.prepare_model.shell_command(command_to_execute, working_dir, errors_are_fatal=False, log_everything=False)[source]

bsmart.scripts.quick_start module

Quickstart Script to prepare the MSSM using SARAH and BSMArt, including all installed tools, and create example scans (one lightning fast, the other longer)

bsmart.scripts.quick_start.main()[source]

Module contents