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

Method read_param_from_file

pyxrf/model/parameters.py:1029–1040  ·  view source on GitHub ↗

Update parameters if new param_path is given. Parameters ---------- param_path : str path to save the file

(self, param_path)

Source from the content-addressed store, hash-verified

1027 return self._sort_eline_list(self.element_list)
1028
1029 def read_param_from_file(self, param_path):
1030 """
1031 Update parameters if new param_path is given.
1032
1033 Parameters
1034 ----------
1035 param_path : str
1036 path to save the file
1037 """
1038 with open(param_path, "r") as json_data:
1039 param = json.load(json_data)
1040 self.update_new_param(param, reset=True)
1041
1042 def find_peak(self, *, threshv=0.1, elemental_lines=None):
1043 """

Callers 1

Calls 1

update_new_paramMethod · 0.95

Tested by

no test coverage detected