How to use the sherpa.utils.get_keyword_defaults function in sherpa

To help you get started, we’ve selected a few sherpa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sherpa / sherpa / sherpa / plot / pylab_backend.py View on Github external
def get_plot_defaults():
    return get_keyword_defaults(plot, 7)
github sherpa / sherpa / sherpa / plot / chips_backend.py View on Github external
def get_split_plot_defaults():
    return get_keyword_defaults(_set_subplot, 3)
github sherpa / sherpa / sherpa / sim / __init__.py View on Github external
def __init__(self):
        self.priors = {}
        self._walker = Walk
        self._sampler = MetropolisMH
        self._sampler_opt = get_keyword_defaults(MetropolisMH.init)
        self.sample = None
        self.walk = lambda: None
        NoNewAttributesAfterInit.__init__(self)
github sherpa / sherpa / sherpa / plot / chips_backend.py View on Github external
def get_histo_defaults():
    return get_keyword_defaults(_histogram, 6)
github JohannesBuchner / BXA / pyblocxs / __init__.py View on Github external
def __init__(self):

        self.priors = {}

        # default sampler
        self.sampler = 'MetropolisMH'
        self.samplers = {
            'MH' : {
                'class' : MH,
                'opts' : get_keyword_defaults(MH.init)
                },

            'MetropolisMH' : {
                'class' : MetropolisMH,
                'opts' : get_keyword_defaults(MetropolisMH.init)
                },
            }

        self.walk = 'Walk'
        self.walks = {
            'Walk' : {
                'class' : Walk,
                },
github sherpa / sherpa / sherpa / plot / chips_backend.py View on Github external
def get_contour_defaults():
    return get_keyword_defaults(contour, 6)
github sherpa / sherpa / sherpa / sim / __init__.py View on Github external
def _set_sampler(self, sampler):
        self._sampler = sampler
        self._sampler_opt = get_keyword_defaults(sampler.init)
github sherpa / sherpa / sherpa / plot / dummy_backend.py View on Github external
def get_contour_defaults():
    return get_keyword_defaults(contour, 6)