MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / update_new_param

Method update_new_param

pyxrf/model/parameters.py:359–372  ·  view source on GitHub ↗

Update the parameters based on the dictionary of parameters. Set ``reset=False`` if selection status of elemental lines should be kept. Parameters ---------- param : dict new dictionary of parameters reset : boolean reset (``T

(self, param, reset=True)

Source from the content-addressed store, hash-verified

357 logger.info("Elements read from file are: {}".format(self.element_list))
358
359 def update_new_param(self, param, reset=True):
360 """
361 Update the parameters based on the dictionary of parameters. Set ``reset=False``
362 if selection status of elemental lines should be kept.
363
364 Parameters
365 ----------
366 param : dict
367 new dictionary of parameters
368 reset : boolean
369 reset (``True``) or clear (``False``) selection status of the element lines.
370 """
371 self.param_new = param
372 self.create_spectrum_from_param_dict(reset=reset)
373
374 @observe("bound_val")
375 def _update_bound(self, change):

Callers 2

read_param_from_fileMethod · 0.95

Calls 1

Tested by

no test coverage detected