You can always update to the latest version of lasertram
using pip:
pip install --upgrade lasertram
or install a specific version:
pip install lasertram==version-number
To check which version of lasertram
you have installed:
pip show lasertram
Current and past maintainers of lasertram
:
- Addresses reviewer comments from Issue !1 related to USGS internal code review
- updated syntax to reflect
pylint
recommendations (e.g., snake case variables, correct negation/equivalence referencing)
- transitioned to solely using a
pyproject.toml
rather than combination ofsetup.cfg
+pyproject.toml
- fixed indexing issue in
despike_data
- added more coverage in tests to now include
get_secondary_standard_accuracies
anddespike_data
- added
lasertram.__version__
- changed naming of all functions that refer to standards for consistency
- Any attribute or method that references an internal standard uses
int_std
- Any attribute or method that references the calibration standard uses
calibration_std
- Any attribute or method that references an internal standard uses
A re-organization of the package structure was completed to set up for further growth. This has created the following modules for lasertram
:
tram
: holds the class 'LaserTRAM`calc
: holds the classLaserCalc
helpers
: holds the submodulesbatch
andconversions
, for batch processing and unit conversions, respectively.
An example folder structure for this is as follows:
└── 📁lasertram
└── 📁calc
└── calc.py
└── __init__.py
└── 📁helpers
└── batch.py
└── conversions.py
└── __init__.py
└── 📁tram
└── tram.py
└── __init__.py
└── __init__.py
The only real effect on the user is the change in import statements to now be the following:
from lasertram import LaserTRAM, LaserCalc, batch
or to import an entire module:
from from lasertram.helpers import batch, conversions
- Fixed undeclared list instantiation in
LaserTRAM.despike()
.
- Fixed issue with
calculate_uncertainties()
internal error calculation dropping the wrong terms
- Fixed issue in
drift_check()
where data do not have a timestamp and the index of analysis was being treated as a pandas Series. It is now a numpy array for consistency and better compatibility with the statsmodels package. - Updated analyte indexing for regex deprecation warning related to string literals.
- Updated Basic Usage page to reflect new uncertainty output implemented in
v0.0.10
- added support for both internal and external precision on output.
- Now on output uncertainties are displayed with column header suffixes as either
_exterr
orinterr
to reflect overall uncertainties that incorporate the uncertainty in the calibration standard accepted value or those that don't, respectively. The vast majority of use cases should utilize_exterr
values unless one is comparing datasets processed with the same calibration standard.
- Now on output uncertainties are displayed with column header suffixes as either
- fixed type issue with internal standard compositions being defaulted to
int
- fixed pandas indexing in
drift_check()
to support future move to.iloc
- added support for both GUI (LaserTRAM-DB) and API (
lasertram.LaserTRAM
) outputs to be used as inputs intolasertram.LaserCalc()
- changed all naming instances of
calibration_standard
tocalibration_std
. Previously some there were a mix of attributes that had one or the other. Now anything that deals with the calibration standard (e.g.,self.calibration_std_stats
) will always havecalibration_std
in the name for consistency.
- Fixed bug that overwrote and ignored omission interval in
LaserTRAM.normalize_interval()
- Future proofed output report for deprecated pandas indexing. Now properly uses
.iloc
- Fixed interval
dtype
inconsistencies so they are all typefloat64
rather thanobject
- Added general motivation to documentation landing page
- Added required dependencies to
setup.cfg
- Fixed
omitted_region
being counted as experiment analyte
- fixed filepath issues and typos in Basic Useage tutorial
- moved all test data to
test_data
folder - created
tests
folder for future tests to be held - created
CHANGELOG.md
- First release of
lasertram
for public use.