SiLab-Bonn / irrad_spectroscopy

Gamma-spectroscopy of (irradiated) samples in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API changes for version 0.1

leloup314 opened this issue · comments

This lists major API changes from 0.01 to 0.1:

  • If bkg=None is given in spectroscopy.fit_spectrum, the method returns a tuple of (peaks, bkg). Otherwise it returns only peaks 751a73b
  • Replace arguments x by channels and y by counts in spectroscopy.fit_spectrum. Don't require channels 0569349
  • Replace arguments x by channels, y by counts and calibration by energy_cal in spectroscopy.interpolate_bkg. Don't require channels 0569349
  • Replace arguments x by channels and y by counts in spectroscopy.fit_spectrum. Don't require channels 0569349
  • Replace arguments x by channels, y by counts and calibration by energy_cal in plot_utils.plot_spectrum. Don't require channels 0569349
  • Replace argument lib by table in spectroscopy.validate_isotopes 56fa1b4
  • Rename isotope_lib to gamma_table, element_lib to element_table, xray_coeffs to xray_coefficients_table in irrad_spectroscopy.__init__ 56fa1b4
  • Add tables folder; move table files there 56fa1b4
  • Add material to xray_coefficients_table and argument material to physics.gamma_dose_rate 56fa1b4
  • Rename calc_activity to get_activity in spectroscopy 566b811
  • Rename spec_utils.isotopes_to_dict to spec_utils.get_isotope_info and replace arguments lib by table and fltr by iso_filter 56fa1b4
  • Rename spec_utils.create_isotope_library to spec_utils.create_gamma_table 56fa1b4
  • Add spec_utils.select_peaks method 44226dc
  • Add functionality to do x-ray spectroscopy exclusively: add argument xray to spectroscopy.fit_spectrum in order to look only for x-ray K, L, ... lines from e.g. fluorescence 0eb5ff7