NSFopen 2.2.4__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nsfopen-2.3.0/CHANGELOG.md +103 -0
- nsfopen-2.3.0/MANIFEST.in +1 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/__init__.py +29 -29
- nsfopen-2.3.0/NSFopen/_version.py +1 -0
- nsfopen-2.3.0/NSFopen/example/Calculate_Roughness/Calculate_Roughness.html +7786 -0
- nsfopen-2.3.0/NSFopen/example/Calculate_Roughness/Calculate_Roughness.ipynb +258 -0
- nsfopen-2.3.0/NSFopen/example/Calculate_Roughness/Calculate_Roughness.py +91 -0
- nsfopen-2.3.0/NSFopen/example/Force_Spectroscopy/Force_Spectroscopy.html +7803 -0
- nsfopen-2.3.0/NSFopen/example/Force_Spectroscopy/Force_Spectroscopy.ipynb +271 -0
- nsfopen-2.3.0/NSFopen/example/Force_Spectroscopy/Force_Spectroscopy.py +160 -0
- nsfopen-2.3.0/NSFopen/example/Grain_Analysis/Grain_Analysis.html +7695 -0
- nsfopen-2.3.0/NSFopen/example/Grain_Analysis/Grain_Analysis.ipynb +178 -0
- nsfopen-2.3.0/NSFopen/example/Grain_Analysis/Grain_Analysis.py +70 -0
- nsfopen-2.3.0/NSFopen/example/Lateral_Force/Lateral_Force_Processing.html +7712 -0
- nsfopen-2.3.0/NSFopen/example/Lateral_Force/Lateral_Force_Processing.ipynb +184 -0
- nsfopen-2.3.0/NSFopen/example/Lateral_Force/Lateral_Force_Processing.py +69 -0
- nsfopen-2.3.0/NSFopen/example/Plane_Removal/Plane_Removal.html +7614 -0
- nsfopen-2.3.0/NSFopen/example/Plane_Removal/Plane_Removal.ipynb +106 -0
- nsfopen-2.3.0/NSFopen/example/Plane_Removal/Plane_Removal.py +44 -0
- nsfopen-2.3.0/NSFopen/example/Plotting_Data/Plotting_Data.html +7809 -0
- nsfopen-2.3.0/NSFopen/example/Plotting_Data/Plotting_Data.ipynb +278 -0
- nsfopen-2.3.0/NSFopen/example/Plotting_Data/Plotting_Data.py +101 -0
- nsfopen-2.3.0/NSFopen/example/Sharpen_Image/Sharpen_Image.html +7667 -0
- nsfopen-2.3.0/NSFopen/example/Sharpen_Image/Sharpen_Image.ipynb +154 -0
- nsfopen-2.3.0/NSFopen/example/Sharpen_Image/Sharpen_Image.py +71 -0
- nsfopen-2.3.0/NSFopen/example/Spring_Constant/Spring_Constant.html +7733 -0
- nsfopen-2.3.0/NSFopen/example/Spring_Constant/Spring_Constant.ipynb +201 -0
- nsfopen-2.3.0/NSFopen/example/Spring_Constant/Spring_Constant.py +92 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Spring_Constant/sader.py +8 -4
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/process/__init__.py +9 -9
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/process/colormaps.py +76 -71
- nsfopen-2.3.0/NSFopen/process/combine.py +112 -0
- nsfopen-2.3.0/NSFopen/process/fitting.py +211 -0
- nsfopen-2.3.0/NSFopen/process/gradients/BW1 +11 -0
- nsfopen-2.3.0/NSFopen/process/gradients/BW2 +21 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Blend1 +8 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Blend2 +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Blue +4 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Blue-Cyan +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Blue-Violet +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Blue-Yellow +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Body +7 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Caribbean +7 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Clusters +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Code-V +14 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Cold +7 -0
- nsfopen-2.3.0/NSFopen/process/gradients/DFit +15 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Digitalis +8 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Gold +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Gray-inverted +3 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Green +4 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Green-Cyan +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Green-Stripes-4 +17 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Green-Violet +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Green-Yellow +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Gwyddion.net +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Halcyon +8 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Lines +23 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Maple +8 -0
- nsfopen-2.3.0/NSFopen/process/gradients/MetroPro +32 -0
- nsfopen-2.3.0/NSFopen/process/gradients/NT-MDT +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Neon +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Olive +4 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Painbow +62 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Pink +4 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Plum +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Pm3d +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/RGB-Blue +3 -0
- nsfopen-2.3.0/NSFopen/process/gradients/RGB-Green +3 -0
- nsfopen-2.3.0/NSFopen/process/gradients/RGB-Red +3 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Rainbow1 +10 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Rainbow2 +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Red +4 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Red-Cyan +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Red-Stripes-5 +21 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Red-Violet +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Red-Yellow +5 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Rust +8 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Saw1 +7 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Shame +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Sky +7 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Sm2 +7 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Spectral +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Spectral-white +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Spring +6 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Viridis +14 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Warm +8 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Warpp-mono +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Warpp-spectral +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Wyko +13 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Yellow +4 -0
- nsfopen-2.3.0/NSFopen/process/gradients/Zones +17 -0
- nsfopen-2.3.0/NSFopen/process/grains.py +316 -0
- nsfopen-2.3.0/NSFopen/process/measure.py +862 -0
- nsfopen-2.3.0/NSFopen/process/ops.py +1278 -0
- nsfopen-2.3.0/NSFopen/process/process.py +1205 -0
- nsfopen-2.3.0/NSFopen/process/profile_iso.py +232 -0
- nsfopen-2.3.0/NSFopen/process/psdfit.py +215 -0
- nsfopen-2.3.0/NSFopen/process/surface3d.py +502 -0
- nsfopen-2.3.0/NSFopen/read/__init__.py +10 -0
- nsfopen-2.3.0/NSFopen/read/nhf.py +687 -0
- nsfopen-2.3.0/NSFopen/read/nhf_spec.py +27 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/read/read.py +654 -647
- nsfopen-2.3.0/NSFopen.egg-info/PKG-INFO +194 -0
- nsfopen-2.3.0/NSFopen.egg-info/SOURCES.txt +131 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen.egg-info/requires.txt +1 -1
- nsfopen-2.3.0/PKG-INFO +194 -0
- nsfopen-2.3.0/README.md +165 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/setup.py +63 -60
- nsfopen-2.3.0/tests/test_examples.py +26 -0
- nsfopen-2.3.0/tests/test_nsfopen.py +711 -0
- nsfopen-2.2.4/NSFopen/_version.py +0 -1
- nsfopen-2.2.4/NSFopen/example/Calculate_Roughness/Calculate_Roughness.html +0 -14844
- nsfopen-2.2.4/NSFopen/example/Calculate_Roughness/Calculate_Roughness.ipynb +0 -182
- nsfopen-2.2.4/NSFopen/example/Calculate_Roughness/Calculate_Roughness.py +0 -110
- nsfopen-2.2.4/NSFopen/example/Force_Spectroscopy/Force_Spectroscopy.html +0 -14913
- nsfopen-2.2.4/NSFopen/example/Force_Spectroscopy/Force_Spectroscopy.ipynb +0 -266
- nsfopen-2.2.4/NSFopen/example/Force_Spectroscopy/Force_Spectroscopy.py +0 -206
- nsfopen-2.2.4/NSFopen/example/Lateral_Force/Lateral Force Processing.html +0 -14808
- nsfopen-2.2.4/NSFopen/example/Lateral_Force/Lateral Force Processing.ipynb +0 -154
- nsfopen-2.2.4/NSFopen/example/Lateral_Force/Lateral Force Processing.py +0 -86
- nsfopen-2.2.4/NSFopen/example/Plane_Removal/Plane_Removal.html +0 -14971
- nsfopen-2.2.4/NSFopen/example/Plane_Removal/Plane_Removal.ipynb +0 -285
- nsfopen-2.2.4/NSFopen/example/Plane_Removal/Plane_Removal.py +0 -172
- nsfopen-2.2.4/NSFopen/example/Plotting_Data/Plotting Data.html +0 -14891
- nsfopen-2.2.4/NSFopen/example/Plotting_Data/Plotting Data.ipynb +0 -200
- nsfopen-2.2.4/NSFopen/example/Plotting_Data/Plotting Data.py +0 -112
- nsfopen-2.2.4/NSFopen/example/Sharpen_Image/Sharpen Image.html +0 -15001
- nsfopen-2.2.4/NSFopen/example/Sharpen_Image/Sharpen Image.ipynb +0 -318
- nsfopen-2.2.4/NSFopen/example/Sharpen_Image/Sharpen Image.py +0 -199
- nsfopen-2.2.4/NSFopen/example/Sharpen_Image/img.jpg +0 -0
- nsfopen-2.2.4/NSFopen/example/Spring_Constant/Spring_Constant.html +0 -14830
- nsfopen-2.2.4/NSFopen/example/Spring_Constant/Spring_Constant.ipynb +0 -191
- nsfopen-2.2.4/NSFopen/example/Spring_Constant/Spring_Constant.py +0 -91
- nsfopen-2.2.4/NSFopen/process/process.py +0 -492
- nsfopen-2.2.4/NSFopen/read/__init__.py +0 -8
- nsfopen-2.2.4/NSFopen/read/read_beta.py +0 -658
- nsfopen-2.2.4/NSFopen.egg-info/PKG-INFO +0 -47
- nsfopen-2.2.4/NSFopen.egg-info/SOURCES.txt +0 -57
- nsfopen-2.2.4/PKG-INFO +0 -47
- nsfopen-2.2.4/README.md +0 -28
- {nsfopen-2.2.4 → nsfopen-2.3.0}/LICENSE +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Calculate_Roughness/__pycache__/Calculate_Roughness.cpython-310.pyc +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Calculate_Roughness/sapphire.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Force_Spectroscopy/spectroscopy.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Lateral_Force/SBS-PMMA.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Plane_Removal/circles.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Plane_Removal/circles_holes.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Plane_Removal/grid.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Plane_Removal/squares_holes.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Plotting_Data/MoS2.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Sharpen_Image/grid.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Spring_Constant/__pycache__/Spring_Constant.cpython-310.pyc +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Spring_Constant/__pycache__/__init__.cpython-310.pyc +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Spring_Constant/thermal.nid +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen/example/Spring_Constant/thermal.png +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen.egg-info/dependency_links.txt +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen.egg-info/entry_points.txt +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen.egg-info/not-zip-safe +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/NSFopen.egg-info/top_level.txt +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/pyproject.toml +0 -0
- {nsfopen-2.2.4 → nsfopen-2.3.0}/setup.cfg +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Change log
|
|
2
|
+
|
|
3
|
+
## 2.3.0 (not yet released)
|
|
4
|
+
|
|
5
|
+
Compared to **2.2.4**, the latest version on PyPI (August 2024).
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
- `pip install NSFopen` now works by itself: the `nanosurf` and `scikit-learn` packages are no longer needed.
|
|
9
|
+
- NID files are read about 5 times faster, and line flattening is about twice as fast.
|
|
10
|
+
- NHF spectroscopy files of any size open immediately, and their curves are read when asked for.
|
|
11
|
+
- WaveMode NMA files are read, with a curve for every pixel and maps of any quantity.
|
|
12
|
+
- `process` has many new image analysis functions, brought over from the Nanosurf Surface Analyzer.
|
|
13
|
+
- Figures take their units and labels from the file, can be placed in subplots, and there is a new 3D plot.
|
|
14
|
+
|
|
15
|
+
### Reading files
|
|
16
|
+
Added:
|
|
17
|
+
- New NHF reader that needs only h5py, for file versions 1.1 and 2.0 to 2.6. Images are identical to those of Nanosurf's
|
|
18
|
+
reader on versions 1.1, 2.0, 2.3, 2.4 and 2.6.
|
|
19
|
+
- Spectroscopy (`afm.spec`): segments, grid position, other units through the file's calibration, force curves.
|
|
20
|
+
- WaveMode NMA (`afm.nma`): `curve()` gives Z, interaction and force of a pixel; `map()` builds per-pixel maps.
|
|
21
|
+
- `afm.units` holds the unit of every channel. `afm.close()` releases an NHF file; `read` also works in a `with` block.
|
|
22
|
+
- `read(..., measurement=)` picks a measurement of an NHF file.
|
|
23
|
+
|
|
24
|
+
Fixed:
|
|
25
|
+
- 2.2.4 needed `nanosurf` to be imported but did not declare it, and failed on NHF files with `nanosurf` 2.0.7.
|
|
26
|
+
- NID headers were read as Latin-1, so units and sizes came out as `°` and `3µm`.
|
|
27
|
+
- Duplicate `Wait` segments of older NHF files overwrote each other: the second is now `Wait 2`.
|
|
28
|
+
- A third NID channel of the same name overwrote the second: they are now `Amplitude`, `Amplitude2`, `Amplitude3`.
|
|
29
|
+
- A truncated NID file now says so.
|
|
30
|
+
|
|
31
|
+
### Processing images
|
|
32
|
+
Added:
|
|
33
|
+
- Leveling: `level_flatten`, `level_poly2d`, `level_lines`, `level_align_rows`, `level_facet`, `level_three_point`,
|
|
34
|
+
`level_median`, `level_rolling_ball`, `level_shift`.
|
|
35
|
+
- Filters: `filter_basic`, `filter_median`, `filter_gaussian`, `filter_fft`, `filter_notch`.
|
|
36
|
+
- Glitches: `glitch_spikes`, `glitch_lines`, `glitch_auto_lines`, `glitch_scars`, `glitch_step_lines`, `glitch_fill_mask`.
|
|
37
|
+
- Masks, kept per channel: `set_mask` and `mask_threshold`, `mask_otsu`, `mask_watershed`, `mask_outliers`, `mask_scars`,
|
|
38
|
+
`mask_shape`, `mask_floodfill`, `mask_grow`, `mask_shrink`, `mask_invert`, `mask_clear`, `mask_remove_small`,
|
|
39
|
+
`mask_fill_holes`. Leveling, filters and statistics can use the mask.
|
|
40
|
+
- Geometry and scale: `geometry_crop`, `geometry_flip`, `geometry_rotate`, `geometry_resample`, `geometry_square_pixels`,
|
|
41
|
+
`rescale_scale`, `rescale_z_to_reference`, `rescale_xy`.
|
|
42
|
+
- Statistics after ISO 25178: `statistics`, `bearing_curve`, `histogram_fit`, `slope_distributions`.
|
|
43
|
+
- Lines: `line_profile`, `step_heights`, `critical_dimension`, `masked_step_height`, and `profile_roughness` after
|
|
44
|
+
ISO 21920.
|
|
45
|
+
- Spectra and texture: `psd`, `psd_fit`, `spectrum`, `acf`, `line_functions`, `rms_by_scale`, `lattice`.
|
|
46
|
+
- Grain analysis: `grains`.
|
|
47
|
+
- Two channels: `combine`, `find_shift`.
|
|
48
|
+
- Access: `channels`, `array`, `set_channel`, `size`, `unit`, `origin`, and `apply` and `operations`.
|
|
49
|
+
|
|
50
|
+
Fixed:
|
|
51
|
+
- `NSFopen.process` could not be imported, because `colormaps.py` imported itself.
|
|
52
|
+
- `flatten(inplace=False)` and similar calls changed the data as well as returning the result.
|
|
53
|
+
- `plane_level` was wrong on non-square images.
|
|
54
|
+
- The physical sizes of non-square NHF images were swapped.
|
|
55
|
+
|
|
56
|
+
### Figures
|
|
57
|
+
Added:
|
|
58
|
+
- `plot3d`, a 3D view after the Surface Analyzer's, with materials, lighting and overlays of another channel. It needs no
|
|
59
|
+
graphics card.
|
|
60
|
+
- `plot_profile`, `plot_psd`, `plot_histogram_fit`, `plot_bearing`, `plot_acf`.
|
|
61
|
+
- `ax=` to draw into subplots, and `figsize`, `dpi`, `theme` and `color_range` on the plots.
|
|
62
|
+
- `image(profile=)` shows where a line cut lies.
|
|
63
|
+
- Color maps by name, including the Gwyddion gradients now included with the package: `cmap='Gold'`.
|
|
64
|
+
|
|
65
|
+
Fixed:
|
|
66
|
+
- The default scale bar had zero length on scans of about 2.5 µm or less, and non-integer lengths were labelled wrongly.
|
|
67
|
+
- `hist(color=)` raised an error.
|
|
68
|
+
|
|
69
|
+
### Changes that can affect existing scripts
|
|
70
|
+
| What | 2.2.4 | 2.3.0 |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| NHF force curves `[row, col]` | Position in the file | True grid position, row 0 at the bottom |
|
|
73
|
+
| NHF force curves | Arrays | Read on access; `np.asarray(curves)` gives the array |
|
|
74
|
+
| `image` and `hist`, `scale` | `1e9` for every channel | A readable unit from the channel; `scale=1e9` still forces it |
|
|
75
|
+
| `hist`, `xlabel` | `Z-Axis [nm]` for every channel | The channel and its unit |
|
|
76
|
+
| `image`, color bar | Only with `cbar=` | Always; `colorbar=False` turns it off |
|
|
77
|
+
| `image`, pixels | matplotlib's default | `interpolation='nearest'`; can be overridden |
|
|
78
|
+
| `remove_outliers` | Nearest neighbors with scikit-learn | Interpolation from the pixels around; the numbers differ, and `neighbors` is gone |
|
|
79
|
+
| Unknown channel | pandas `KeyError` | `ValueError` that lists the channels |
|
|
80
|
+
| Default channel | `Z-Axis` only | Falls back to `Topography` in files that have no `Z-Axis` |
|
|
81
|
+
| `NSFopen.read.checkFileType` | Present | Removed |
|
|
82
|
+
|
|
83
|
+
`stats()` keeps its results, including `Sku` as excess kurtosis (0 for a Gaussian surface). The new `statistics()` gives
|
|
84
|
+
the ISO value of `Sku` (3 for a Gaussian surface).
|
|
85
|
+
|
|
86
|
+
### Examples
|
|
87
|
+
- All are rewritten around `process`, and there is a new `Grain_Analysis`.
|
|
88
|
+
- **`Spring_Constant`: the result changes from 14.5 to 24.0 N/m.** The old fit used a power formula on amplitude data and
|
|
89
|
+
found Q = 253; the file records Nanosurf's own Q of 442, and the corrected fit finds 417.
|
|
90
|
+
- `Plotting_Data`: the image was drawn upside down.
|
|
91
|
+
- `Force_Spectroscopy`: the map axes were labelled µm but showed pixels.
|
|
92
|
+
- `Sharpen_Image`: it no longer passes the data through an 8-bit JPEG, and needs neither OpenCV nor PIL.
|
|
93
|
+
- `Plane_Removal`: it crashed on non-square images, and its clipping changed the data.
|
|
94
|
+
- `Lateral_Force`: the offset between the scans is measured instead of set by hand.
|
|
95
|
+
- Renamed without spaces: `Plotting_Data.py`, `Lateral_Force_Processing.py`, `Sharpen_Image.py`.
|
|
96
|
+
|
|
97
|
+
### Requirements
|
|
98
|
+
- matplotlib 3.6 or newer; the other requirements are unchanged (numpy, scipy, pandas, h5py, Python 3.9 or newer).
|
|
99
|
+
- Removed: `nanosurf` and `scikit-learn`, which 2.2.4 used without declaring them.
|
|
100
|
+
|
|
101
|
+
## Earlier versions
|
|
102
|
+
The earlier releases have no change notes. Their list and dates are on
|
|
103
|
+
[PyPI](https://pypi.org/project/NSFopen/#history).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include CHANGELOG.md
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"""Package for scripting the Nanosurf control software.
|
|
2
|
-
Copyright (C) Nanosurf AG - All Rights Reserved (2021)
|
|
3
|
-
License - MIT"""
|
|
4
|
-
|
|
5
|
-
import os
|
|
6
|
-
import pathlib
|
|
7
|
-
from ._version import __version__
|
|
8
|
-
|
|
9
|
-
from .read import read
|
|
10
|
-
|
|
11
|
-
# from . process import process
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def package_path() -> pathlib.Path:
|
|
15
|
-
return pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def example_path() -> pathlib.Path:
|
|
19
|
-
return package_path() / "example"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def help():
|
|
23
|
-
print("Nanosurf NID and NHF file reader:")
|
|
24
|
-
print("-------------------------------")
|
|
25
|
-
print(f"Installed version: {__version__}")
|
|
26
|
-
print("\nExamples are stored here:")
|
|
27
|
-
print(example_path())
|
|
28
|
-
for example in os.listdir(example_path()):
|
|
29
|
-
print(f" {example}")
|
|
1
|
+
"""Package for scripting the Nanosurf control software.
|
|
2
|
+
Copyright (C) Nanosurf AG - All Rights Reserved (2021)
|
|
3
|
+
License - MIT"""
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import pathlib
|
|
7
|
+
from ._version import __version__
|
|
8
|
+
|
|
9
|
+
from .read import read
|
|
10
|
+
|
|
11
|
+
# from . process import process
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def package_path() -> pathlib.Path:
|
|
15
|
+
return pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def example_path() -> pathlib.Path:
|
|
19
|
+
return package_path() / "example"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def help():
|
|
23
|
+
print("Nanosurf NID and NHF file reader and image analysis:")
|
|
24
|
+
print("-------------------------------")
|
|
25
|
+
print(f"Installed version: {__version__}")
|
|
26
|
+
print("\nExamples are stored here:")
|
|
27
|
+
print(example_path())
|
|
28
|
+
for example in os.listdir(example_path()):
|
|
29
|
+
print(f" {example}")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.3.0"
|