Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove unused method, test and package dependencies #1049

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

ns-rse
Copy link
Collaborator

@ns-rse ns-rse commented Dec 11, 2024

Closes #1036

With the delegation of much I/O (Input/Output) functionality to @SylviaWhittle AFMReader (see #1031) we have removed most of the methods to the io.LoadScan() class. One that slipped through was _spm_pixel_to_nm_scaling() and this commit removes it along with its associated test.

Further the delegation of reading AFM files using AFMReader means TopoStats no longer has explicit dependencies on the igor2, pySPM or tifffile packages and so these have been removed from the dependencies section of pyproject.toml. These are dependencies of AFMReader and will still be installed in virtual environments.

Moved pytest-testmon from tests to dev under optional dependencies as its not used when running the test suite, only when making commits locally.


Before submitting a Pull Request please check the following.

  • Existing tests pass.
  • Pre-commit checks pass.

@ns-rse ns-rse added this to the v2.3.0 milestone Dec 11, 2024
@ns-rse ns-rse added IO Input and Output tests Issues pertaining to testing v2.3.0 and removed IO Input and Output tests Issues pertaining to testing labels Dec 11, 2024
@ns-rse ns-rse force-pushed the ns-rse/1036-remove-unused-loadscan-method branch from f80e625 to e5d3b51 Compare December 11, 2024 15:01
Closes #1036

With the delegation of much I/O (Input/Output) functionality to @SylviaWhittle `AFMReader` (see #1031) we have removed
most of the methods to the `io.LoadScan()` class. One that slipped through was `_spm_pixel_to_nm_scaling()` and this
commit removes it along with its associated test.

Further the delegation of reading AFM files using `AFMReader` means `TopoStats` no longer has explicit dependencies on
the `igor2`, `pySPM` or `tifffile` packages and so these have been removed from the `dependencies` section of
`pyproject.toml`. These are dependencies of `AFMReader` and will still be installed in virtual environments.

Moved `pytest-testmon` from `tests` to `dev` under optional dependencies as its not used when running the test suite,
only when making commits locally.
@ns-rse ns-rse force-pushed the ns-rse/1036-remove-unused-loadscan-method branch from e5d3b51 to b5673d0 Compare December 11, 2024 15:56
Copy link
Collaborator

@MaxGamill-Sheffield MaxGamill-Sheffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, clean and can confirm it runs from command line on some samples I've been testing! Thanks for the tidy up here Neil

@ns-rse ns-rse added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit a030654 Dec 12, 2024
11 checks passed
@ns-rse ns-rse deleted the ns-rse/1036-remove-unused-loadscan-method branch December 12, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Input and Output tests Issues pertaining to testing v2.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove io.LoadScan._spm_px_to_nm_scaling()
4 participants