Skip to content

Commit 4c229a3

Browse files
committed
chore: topofileformats > AFMReader (notebooks, __init__.py, README.md)
Expunging the last references to `topofileformats` and converting to `AFMReader` + `README.md` + `.gitignore` + `examples/example_01.ipynb` + `AFMReader/__init__.py`
1 parent 64bd391 commit 4c229a3

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ _version.py
134134
\#*
135135

136136
# Ignore topostats/_version.py as per setuptools_scm
137-
topofileformats/_version.py
137+
AFMReader/_version.py

AFMReader/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
from importlib.metadata import version
44

5-
release = version("topofileformats")
5+
release = version("AFMReader")
66
__version__ = ".".join(release.split("."[:2]))

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# topofileformats
1+
# AFMReader
22

33
<div align="center">
44

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)
77
[![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)
88
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
99
[![Code style: flake8](https://img.shields.io/badge/code%20style-flake8-456789.svg)](https://github.com/psf/flake8)
10-
<!-- [![codecov](https://codecov.io/gh/AFM-SPM/topofileformats/branch/dev/graph/badge.svg)]
11-
(https://codecov.io/gh/AFM-SPM/topofileformats) -->
10+
<!-- [![codecov](https://codecov.io/gh/AFM-SPM/AFMReader/branch/dev/graph/badge.svg)]
11+
(https://codecov.io/gh/AFM-SPM/AFMReader) -->
1212
[![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)
1414

1515
</div>
1616

@@ -27,7 +27,7 @@ Supported file formats
2727
| `.jpk` | [Bruker](https://www.bruker.com/) |
2828

2929
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.
3131

3232
| File format | Description | Status |
3333
|-------------|---------------------------------------------------------|--------------------------------------------|
@@ -38,7 +38,7 @@ awaiting refactoring to move their functionality into topofileformats these are
3838

3939
## Usage
4040

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
4242
[TopoStats](https://github.com/AFM-SPM/TopoStats) to do so, however the library can be used on its own.
4343

4444
### .spm
@@ -48,7 +48,7 @@ channel name that you want to use. (If in doubt use one of the following: "Heigh
4848
"Height Sensor").
4949

5050
```python
51-
from topofileformats.spm import load_spm
51+
from AFMReader.spm import load_spm
5252

5353
image, pixel_to_nanometre_scaling_factor = load_spm(file_path="./my_spm_file.spm", channel="Height")
5454
```
@@ -64,7 +64,7 @@ will want to use unless you know you specifically want something else.
6464
Other channels: `"ER"` - Error, `"PH"` - Phase
6565

6666
```python
67-
from topofileformats.asd import load_asd
67+
from AFMReader.asd import load_asd
6868

6969
frames, pixel_to_nanometre_scaling_factor, metadata = load_asd(file_path="./my_asd_file.asd", channel="TP")
7070
```
@@ -76,7 +76,7 @@ and the channel name that you want to use. (If in doubt, use `HeightTracee` (yes
7676
extra 'e'), `ZSensorTrace`, or `ZSensor`).
7777

7878
```python
79-
from topofileformats.ibw import load_ibw
79+
from AFMReader.ibw import load_ibw
8080

8181
image, pixel_to_nanometre_scaling_factor = load_ibw(file_path="./my_ibw_file.ibw", channel="HeightTracee")
8282
```
@@ -87,19 +87,19 @@ You can open `.jpk` files using the `load_jpk` function. Just pass in the path
8787
to the file and the channel name you want to use. (If in doubt, use `height_trace` or `measuredHeight_trace`).
8888

8989
```python
90-
from topofileformats.jpk import load_jpk
90+
from AFMReader.jpk import load_jpk
9191

9292
image, pixel_to_nanometre_scaling_factor = load_jpk(file_path="./my_jpk_file.jpk", channel="height_trace")
9393
```
9494

9595
## Contributing
9696

9797
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
9999
went wrong or the feature you would like to see implemented.
100100

101101
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).
103103

104104
### Setup
105105

@@ -112,9 +112,9 @@ dependencies and `pre-commit` as shown below.
112112
``` bash
113113
# Activate your virtual environment, this will depend on which system you use e.g. conda or virtualenvwrapper
114114
# Clone the repository
115-
git clone [email protected]:AFM-SPM/topofileformats.git
115+
git clone [email protected]:AFM-SPM/AFMReader.git
116116
# Change directories into the newly cloned directory
117-
cd topofileformats
117+
cd AFMReader
118118
# Install the package along with the optional development (dev) dependencies
119119
pip install -e .[dev]
120120
# Install pre-commit

examples/example_01.ipynb

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"source": [
1616
"from pathlib import Path\n",
1717
"\n",
18-
"# Import the load_spm from topofileformats\n",
19-
"from topofileformats.spm import load_spm\n",
20-
"from topofileformats.logging import logger\n",
18+
"# Import the load_spm from AFMReader\n",
19+
"from AFMReader.spm import load_spm\n",
20+
"from AFMReader.logging import logger\n",
2121
"\n",
2222
"logger.enable(__package__)"
2323
]
@@ -60,8 +60,8 @@
6060
"metadata": {},
6161
"outputs": [],
6262
"source": [
63-
"# Import the load_asd from topofileformats\n",
64-
"from topofileformats.asd import load_asd, create_animation"
63+
"# Import the load_asd from AFMReader\n",
64+
"from AFMReader.asd import load_asd, create_animation"
6565
]
6666
},
6767
{
@@ -114,8 +114,8 @@
114114
"metadata": {},
115115
"outputs": [],
116116
"source": [
117-
"# Import the load_jpk function from topofileformats\n",
118-
"from topofileformats.jpk import load_jpk"
117+
"# Import the load_jpk function from AFMReader\n",
118+
"from AFMReader.jpk import load_jpk"
119119
]
120120
},
121121
{
@@ -155,8 +155,8 @@
155155
"metadata": {},
156156
"outputs": [],
157157
"source": [
158-
"# Import the load_ibw function from topofileformats\n",
159-
"from topofileformats.ibw import load_ibw"
158+
"# Import the load_ibw function from AFMReader\n",
159+
"from AFMReader.ibw import load_ibw"
160160
]
161161
},
162162
{
@@ -196,8 +196,8 @@
196196
"metadata": {},
197197
"outputs": [],
198198
"source": [
199-
"# Import the load_ibw function from topofileformats\n",
200-
"from topofileformats.ibw import load_ibw"
199+
"# Import the load_ibw function from AFMReader\n",
200+
"from AFMReader.ibw import load_ibw"
201201
]
202202
},
203203
{

0 commit comments

Comments
 (0)