Skip to main content

LabTools3

Set of Python analysis tools for physics labs. It contains the "package" directory which is the Python package with a setup.py script for installation and a "doc" directory containing the Sphinx documentation. The repository starts with version 0.2.9 of LabTools. Version 1.0.2: has mostly some big fixes.

Version 1.1.0: now includes 2D-histograms and some bug fixes.

Version 1.1.1: includes 3D lego plot for histo2d. Note that at the moment surface and lego plots are only in linear scale possible.

Version 1.1.2: non-linear fitting is now based on scipy.optimize.least_squares so parameter bounds can be used.

Version 1.1.3.1: (same as 1.1.3) updated the rebin function for 1D histograms, by default it now returns a new histogram (replace = False). Also added the options to have the mean calculated for combined bins instead of the sum (use_mean = True). Fixed a bug in project_x and project_y functions for 2D histograms.

Version 1.1.3.2: minor bug fixes

Version 1.1.3.3: histogram axis labels are preserved in rebinning and projection actions (for 2d histogram)

Version 1.1.3.4: minor bug fixes

Version 1.1.3.5: corrected problen with add_data

Version 1.1.3.6: added features to fitting: plot attribute to plot the fit, the fit results is plotted by default (controlled with the plot_fit kwarg). The fit object are callable, returning the value of the fit function using the current values of the fit parameters. New attribute to datafile: adata_comment_index, a list of indices pointing to comment lines.

Version 1.1.3.7: updated documentation

Version 1.1.3.8: datafile can be initialized with a list of strings correponding to the regular syntax

Version 1.1.3.9: Fixed a bug in histo where histogram window variable was not initialized when loading from file (required a clear_window call).

Version 1.1.3.10: 2d histo now accepts axes as keywords. Make sure for 3d display the axes is a Axes3DSubplot.

Version 1.1.3.11: new control on title and axes labels for plotting

Version 1.1.3.12: bug fixes, peak and background functions are available for histogram fits.

Version 1.1.3.13: fitting of only one parameters enabled for linear fits

Version 1.1.3.14: error calcualtion for filling histograms with weights include sum of weight**2

Version 1.1.3.15: contination lines enabled in parameter file by endine line with "" or ",""

Version 1.1.3.16: Corrected bug in histo.rebin. gen_fit allows control of relative step size using the diff_step keyword. It is also possible to supply a list of functions to calculate the parameter derivatives. This helps with numerical accuracy in the minimization process (see gen_fit documentation)

Version 1.1.3.17: Histogram window settings are now also saved to data file. Replace equal sign with colon in histogram title in get_spectrum.

Version 1.1.3.18: Added plot_guess function to histo. This makes it easy to plot fit functions with guessed parameters.

Version 1.1.3.19: Fixed but when using using the fill function in 1d histograms with weights multiple times.

Version 1.1.3.20: Added show_header to datafile and the full_precision key word to write_csv.

Version 1.1.3.21: Fixed bug in histo2d operations

Version 1.1.3.22: Updated datafile to be able to read new numpy output of numbers with types

Version 1.1.3.22: Minor bug fix as strings in column data generated error messages

Metadata

Release files for LabTools3 1.1.3.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LabTools3 1.1.3.23
File Size Uploaded
labtools3-1.1.3.23.tar.gz 41.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for LabTools3 1.1.3.23
File Interpreter ABI Platform
labtools3-1.1.3.23-py3-none-any.whl Python 3 none any Details

Total release size: 88.3 kB

Release files / labtools3-1.1.3.23.tar.gz

Download URL labtools3-1.1.3.23.tar.gz
Size 41.8 kB
Tags Source
SHA-256 checksum
How to use checksums
215d508f1f471b683f9a9931f0a4c5ce68e4fcde38897aeffa53f8fc06c02679
BLAKE2b-256 checksum
How to use checksums
d40c1c1f1eac375228f0137a33b2fa37646824a965e66e7fc22a1a24d5e325f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / labtools3-1.1.3.23-py3-none-any.whl

Download URL labtools3-1.1.3.23-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8945849d21935d3c055bdaf13b60650d1ce74324e9651dbf57a2ef05465696f
BLAKE2b-256 checksum
How to use checksums
9486f770d714265642b0e73388c4874ce0e580116d2bdf2c2bbf7e286f88672a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page