1
- # topofileformats
1
+ # AFMReader
2
2
3
3
<div align =" center " >
4
4
5
- [ ![ PyPI version] ( https://badge.fury.io/py/topofileformats .svg )] ( https://badge.fury.io/py/topofileformats )
6
- ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/topofileformats )
5
+ [ ![ PyPI version] ( https://badge.fury.io/py/AFMReader .svg )] ( https://badge.fury.io/py/AFMReader )
6
+ ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/AFMReader )
7
7
[ ![ Code style: Ruff] ( https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json )] ( https://github.com/astral-sh/ruff )
8
8
[ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
9
9
[ ![ Code style: flake8] ( https://img.shields.io/badge/code%20style-flake8-456789.svg )] ( https://github.com/psf/flake8 )
10
- <!-- []
11
- (https://codecov.io/gh/AFM-SPM/topofileformats ) -->
10
+ <!-- []
11
+ (https://codecov.io/gh/AFM-SPM/AFMReader ) -->
12
12
[ ![ pre-commit.ci
13
- status] ( https://results.pre-commit.ci/badge/github/AFM-SPM/topofileformats /main.svg )] ( https://results.pre-commit.ci/latest/github/AFM-SPM/topofileformats /main )
13
+ status] ( https://results.pre-commit.ci/badge/github/AFM-SPM/AFMReader /main.svg )] ( https://results.pre-commit.ci/latest/github/AFM-SPM/AFMReader /main )
14
14
15
15
</div >
16
16
@@ -27,7 +27,7 @@ Supported file formats
27
27
| ` .jpk ` | [ Bruker] ( https://www.bruker.com/ ) |
28
28
29
29
Support for the following additional formats is planned. Some of these are already supported in TopoStats and are
30
- awaiting refactoring to move their functionality into topofileformats these are denoted in bold below.
30
+ awaiting refactoring to move their functionality into AFMReader these are denoted in bold below.
31
31
32
32
| File format | Description | Status |
33
33
| -------------| ---------------------------------------------------------| --------------------------------------------|
@@ -38,7 +38,7 @@ awaiting refactoring to move their functionality into topofileformats these are
38
38
39
39
## Usage
40
40
41
- If you wish to process AFM images supported by ` topofileformats ` it is recommend you use
41
+ If you wish to process AFM images supported by ` AFMReader ` it is recommend you use
42
42
[ TopoStats] ( https://github.com/AFM-SPM/TopoStats ) to do so, however the library can be used on its own.
43
43
44
44
### .spm
@@ -48,7 +48,7 @@ channel name that you want to use. (If in doubt use one of the following: "Heigh
48
48
"Height Sensor").
49
49
50
50
``` python
51
- from topofileformats .spm import load_spm
51
+ from AFMReader .spm import load_spm
52
52
53
53
image, pixel_to_nanometre_scaling_factor = load_spm(file_path = " ./my_spm_file.spm" , channel = " Height" )
54
54
```
@@ -64,7 +64,7 @@ will want to use unless you know you specifically want something else.
64
64
Other channels: ` "ER" ` - Error, ` "PH" ` - Phase
65
65
66
66
``` python
67
- from topofileformats .asd import load_asd
67
+ from AFMReader .asd import load_asd
68
68
69
69
frames, pixel_to_nanometre_scaling_factor, metadata = load_asd(file_path = " ./my_asd_file.asd" , channel = " TP" )
70
70
```
@@ -76,7 +76,7 @@ and the channel name that you want to use. (If in doubt, use `HeightTracee` (yes
76
76
extra 'e'), ` ZSensorTrace ` , or ` ZSensor ` ).
77
77
78
78
``` python
79
- from topofileformats .ibw import load_ibw
79
+ from AFMReader .ibw import load_ibw
80
80
81
81
image, pixel_to_nanometre_scaling_factor = load_ibw(file_path = " ./my_ibw_file.ibw" , channel = " HeightTracee" )
82
82
```
@@ -87,19 +87,19 @@ You can open `.jpk` files using the `load_jpk` function. Just pass in the path
87
87
to the file and the channel name you want to use. (If in doubt, use ` height_trace ` or ` measuredHeight_trace ` ).
88
88
89
89
``` python
90
- from topofileformats .jpk import load_jpk
90
+ from AFMReader .jpk import load_jpk
91
91
92
92
image, pixel_to_nanometre_scaling_factor = load_jpk(file_path = " ./my_jpk_file.jpk" , channel = " height_trace" )
93
93
```
94
94
95
95
## Contributing
96
96
97
97
Bug reports and feature requests are welcome. Please search for existing issues, if none relating to your bug/feature
98
- are found then feel free to create a new [ issue] ( https://github.com/AFM-SPM/topofileformats /issues/new ) detailing what
98
+ are found then feel free to create a new [ issue] ( https://github.com/AFM-SPM/AFMReader /issues/new ) detailing what
99
99
went wrong or the feature you would like to see implemented.
100
100
101
101
Pull requests are also welcome, please note that we have a [ Code of
102
- Conduct] ( https://github.com/AFM-SPM/topofileformats /blob/main/CODE_OF_CONDUCT.md ) .
102
+ Conduct] ( https://github.com/AFM-SPM/AFMReader /blob/main/CODE_OF_CONDUCT.md ) .
103
103
104
104
### Setup
105
105
@@ -112,9 +112,9 @@ dependencies and `pre-commit` as shown below.
112
112
``` bash
113
113
# Activate your virtual environment, this will depend on which system you use e.g. conda or virtualenvwrapper
114
114
# Clone the repository
115
- git clone
[email protected] :AFM-SPM/
topofileformats .git
115
+ git clone
[email protected] :AFM-SPM/
AFMReader .git
116
116
# Change directories into the newly cloned directory
117
- cd topofileformats
117
+ cd AFMReader
118
118
# Install the package along with the optional development (dev) dependencies
119
119
pip install -e .[dev]
120
120
# Install pre-commit
0 commit comments