silab-bonn / irrad_spectroscopy Goto Github PK
View Code? Open in Web Editor NEWGamma-spectroscopy of (irradiated) samples in Python
License: MIT License
Gamma-spectroscopy of (irradiated) samples in Python
License: MIT License
Currently, the dose rate calculations for isotopes, performed using the isotope_dose_rate
function in irrad_spectroscopy.physics
, do not respect the decay mode with which the given isotope decays. This results in an underestimation of the dose rate for e.g. cases where a beta plus (positron) decay generates 2 additional 511 keV photons.
This is partially related to #11, where the information on the decay mode for many isotopes is incorrect or outdated
Calculate dose rate per gamma and ultimately per isotope in air for each spectrum
Add function that returns a channel-like bool mask with peak and background positions
Add analyse_spectrum method to spectroscopy.py
as convinience function in order to do full spectral analysis in one step
Add compute_dose
function which takes isotope=activity
keywords arguments and returns the effective dose by all given isotopes for a certain parameter set of distance
etc
Refactor the code and remove deprecated functions / imports as well as restructure the code
This lists major API changes from 0.01 to 0.1:
bkg=None
is given in spectroscopy.fit_spectrum
, the method returns a tuple of (peaks, bkg). Otherwise it returns only peaks 751a73bx
by channels
and y
by counts
in spectroscopy.fit_spectrum
. Don't require channels
0569349x
by channels
, y
by counts
and calibration
by energy_cal
in spectroscopy.interpolate_bkg
. Don't require channels
0569349x
by channels
and y
by counts
in spectroscopy.fit_spectrum
. Don't require channels
0569349x
by channels
, y
by counts
and calibration
by energy_cal
in plot_utils.plot_spectrum
. Don't require channels
0569349lib
by table
in spectroscopy.validate_isotopes
56fa1b4isotope_lib
to gamma_table
, element_lib
to element_table
, xray_coeffs
to xray_coefficients_table
in irrad_spectroscopy.__init__
56fa1b4tables
folder; move table files there 56fa1b4material
to xray_coefficients_table
and argument material
to physics.gamma_dose_rate
56fa1b4calc_activity
to get_activity
in spectroscopy
566b811spec_utils.isotopes_to_dict
to spec_utils.get_isotope_info
and replace arguments lib
by table
and fltr
by iso_filter
56fa1b4spec_utils.create_isotope_library
to spec_utils.create_gamma_table
56fa1b4spec_utils.select_peaks
method 44226dcxray
to spectroscopy.fit_spectrum
in order to look only for x-ray K, L, ... lines from e.g. fluorescence 0eb5ff7The current gamma table is generated from this website which
A new gamma should be generated from a more reliable resource e.g. The Lund/LBNL Nuclear Data Search
Remove some known bugs:
local_bkg=False
, fixed in 2c00f37spectroscopy.get_activity
, fixed in 566b811A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.