Skip to content

Releases: AFM-SPM/AFMReader

v0.0.7

26 Jan 12:14
062b984

Choose a tag to compare

This release brings two improvements to AFMReader

.spm

The pixel_to_nm_scaling is sometimes returned as 0 which comes from SPM.pxs() function. If this is the case we instead calculate the pixel_to_nm_scaling from the SPM.size attribute which holds the pixel and real (actual size and unit) for both axes. For now we stick with just using the scale from x-axis so only square images are supported but this may change in the future.

.topostats

With the refactoring of TopoStats to use data classes (see 1284) a .topostats object is now based on the dataclasses which have many attributes that are Numpy arrays. These need decoding when reading from the HDF5 file format that underpins the .topostats format and is now supported.

Pull Requests

  • feature(spm): calculate px scaling from size if not available by @ns-rse in #184
  • sum loading: Stop defaulting to 1nm/px when pixel to nm scaling cannot be found. by @SylviaWhittle in #181
  • fix: decode numpy arrays; feature: topostats versions by @ns-rse in #177

CI and Docs

  • ci(pypi): Improves PyPI publishing workflow by @ns-rse in #160
  • style: linting docs/usage.md by @ns-rse in #182
  • docs: Fix mkdocs DeprecationWarning by @ns-rse in #183

Full Changelog: v0.0.6...v0.0.7

v0.0.6

24 Jun 14:23
ac06413

Choose a tag to compare

What's Changed

Full Changelog: v0.0.5...v0.0.6

v0.0.5

27 May 09:36
794e2d1

Choose a tag to compare

What's Changed

  • Add general loader module by @MaxGamill-Sheffield in #140
  • Minimum Python version >= 3.10 by @ns-rse in #143
  • packaging: Set pySPM min version to 0.6.2 by @ns-rse in #146
  • setup: Use AFM-SPM/pySPM fork by @ns-rse in #147
  • chore: Revert pySPM to install from PyPI by @ns-rse in #150

Full Changelog: v0.0.4...v0.0.5

v0.0.4

30 Apr 09:29
8dcc5e8

Choose a tag to compare

Main Features

  • Support for .top and .stp file formats
  • Improved support for .jpk scaling

Bugs

  • Corrected string clipping of error messages

What's Changed

  • tests(spm): Adds test for spm_pixel_to_nm_scaling() by @ns-rse in #87
  • ci: Adds pytest-testmon to local pre-commit hooks by @ns-rse in #89
  • doc: Adds citing and used by section to README.md by @ns-rse in #91
  • Add mypy to pre-commit and improve typehints by @ns-rse in #98
  • style: Disable ruff A005 (stdlib-module-shadowing) by @ns-rse in #102
  • States the outputs in the usage section by @MaxGamill-Sheffield in #104
  • docs: Adds basic documentation using mkdocs by @ns-rse in #103
  • feature: Ensure img_path is of type Path by @ns-rse in #108
  • tests: FileNotFound consistently raised & tested by @ns-rse in #110
  • feature: Returns just dictionary when loading .topostats by @ns-rse in #112
  • Add file format STP by @SylviaWhittle in #113
  • Scaling JPK data values correctly by @derollins in #118
  • feature: introduce config file for JPK tags by @ns-rse in #124
  • Vertically reflect JPK images by @derollins in #129
  • rm string clipping for error message output by @MaxGamill-Sheffield in #131
  • Add file format TOP by @SylviaWhittle in #135
  • tests(topostats): Compare versions as strings by @ns-rse in #136
  • tests: Adds pytest-loguru to test dependencies by @ns-rse in #137
  • tests: make topostats tests flexible to key name by @ns-rse in #138

New Contributors

  • @MaxGamill-Sheffield made their first contribution in #104
  • @derollins made their first contribution in #118

Full Changelog: v0.0.3...v0.0.4

Hotfix: units when loading spm files

05 Dec 12:48
7483dda

Choose a tag to compare

This hotfix addresses a bug where some .spm files fail to load due to having units of pm which weren't supported.

v0.0.2

02 Dec 11:11
192f577

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.1...v0.0.2

v0.0.1

29 May 11:08
662e07c

Choose a tag to compare

This is the initial release of AFMReader (nee topofileformats).

Support is present for reading the following Atomic Force Microscopy formats...

What's Changed

Full Changelog: https://github.com/AFM-SPM/AFMReader/commits/v0.0.1