Skip to content

Commit

Permalink
Merge branch 'SylviaWhittle/file-type-ibw' of github.com:AFM-SPM/topo…
Browse files Browse the repository at this point in the history
…fileformats into SylviaWhittle/file-type-ibw
  • Loading branch information
SylviaWhittle committed May 1, 2024
2 parents 826ece3 + d9ec44a commit 72706d5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
41 changes: 41 additions & 0 deletions examples/example_01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,47 @@
"image, pixel_to_nm_scaling = load_ibw(file_path=FILE, channel=\"HeightTracee\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Plot the image\n",
"import matplotlib.pyplot as plt\n",
"\n",
"plt.imshow(image, cmap=\"afmhot\")\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# IBW Files"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Import the load_ibw function from topofileformats\n",
"from topofileformats.ibw import load_ibw"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Load the IBW file as an image and pixel to nm scaling factor\n",
"FILE = \"../tests/resources/sample_0.ibw\"\n",
"image, pixel_to_nm_scaling = load_ibw(file_path=FILE, channel=\"HeightTracee\")"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ dependencies = [
"igor2",
"tifffile",
"pySPM",
"pySPM",
"loguru",
]

Expand Down

0 comments on commit 72706d5

Please sign in to comment.