Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additions to core_BEC_analysis
Jacob 2020-09-22
coldatom_tools
doppler_broadening
Returns the multiplicative factor to obtain FWHM of a delta-function distribution
at frequency f0 for atoms of mass m at temperature T. Particle mass input optional, default to mHe. eg:
doppler_width = doppler_broadening(T,m)*f0
doppler_limit
deBroglie_wavelength
Accepts temperature and particle mass (optional, defaults to mHe). Removed redundant lamnda_dB().
txy_tools
show_txy_raw
A function for flexible visualization and investigation of TXY data. Functions similarly to dld_front_panel but can be fed TXY data structures from memory rather than importing. Useful for quick checks of BEC structure or for quantitative analysis of count flux in cartesian histograms.
Mandatory inputs:
{shot_num,num_counts,counts_txy}
- compatible with the standard output ofimport_tdc_data
.Outputs:
draw_plots
argument tofalse
.Optional inputs include
log_plot, blur_size, num_bins
and others.getlims
Returns the bounding coordinate values of a set of N data points in D dimensions, returning an Nx2 array.
CLI_tools
sshow
Displays a tree diagram of a given structure s including the size and type of the leaves (assuming leaves terminate in an array of some kind). Removed redundancy (in /command_line_format_tools and /CLI_tools)
simple_utilities
intCDF
Returns the cumulative distribution function of data x over
a domain d. Y = intCDF(x,d) returns a row vector of the same size as x,
whose entries Y(i) counts the number of elements of d that are less than x(i).
Inputs:
x - data - 1D real vector
d - domain - 1D real vector
Example
add_unc
Accepts tuples of the form [x,x_unc] and returns the pair [val,unc]. Would be good to write a more general function that can accept [val,unc] pairs arrays and propagate uncertainties automatically through more complicated functions.
Updates to existing functions
bec_properties
coldatom_tools
g_bose
Removed:
nucellf
A shorthand for adding the ('UniformOutput',false) kwarg pair to cellfun. Can use inbuilt function cellfun(@(x) f(x), x, 'uni', 0) instead.
Notes:
cli_header contains some of the functionality of cli_format_text.
cli_format_text is strictly more general (and recommended). Removing cli_header from core_BEC and replacing calls throughout all projects is an unnecessary expense as they are (intended to be) user-interface tools rather than functional components.
sltext is recommended for removal as has no known usages