Skip to content

Commit 158e16e

Browse files
committed
Updated changelog
1 parent 98d6d40 commit 158e16e

2 files changed

Lines changed: 7 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,16 @@
2424
resort if no reader could be detected based on file magic, surfalize will try all available readers for that file and
2525
only then raise an exception if no reader is able to read the file.
2626
- Added support for custom operations to Batch
27+
- Extended documentation
28+
- Added example file download module as `Surfalize.examples`
29+
- Added indexing to `Surface`, which directly forwards indexing operations to the underlying `Surface.data` numpy array
30+
- Added basic methods to `Surface`: `min`, `max`, `mean`, `median`, `std`
31+
- Added experimental commandline interface for opening, converting and generating PDF reports for files
2732
## v0.14.3
2833
- Fixed bug with SUR format encoding argument having no effect
2934
- Added 'auto' encoding option to automatically infer the encoding using chardet
3035
- Updated docstrings of Surface.load and Surface.save
3136
- Added comment kwarg to SUR reading
32-
## v0.15.0
33-
- Added 3d plotting capabilities based on pyvista
34-
- Added pyvista as optional dependency for 3d plotting
35-
- Fixed bug in AutocorrelationFunction plotting
36-
- Added Zygo Metropro DAT format reader
37-
- Reworked Batch to preserve the order of parameters and operations by default. Before, all operations were executed
38-
before parameter calculations. Now operations and parameters can be called in an interlaced manner and their order
39-
will be executed in that order. This allows for cases where the user wants to calculate some parameters before and
40-
others after a specific operation. The legacy behavior of performing all operations first can be activated by
41-
specifying `presever_chaining_order=False` in `Batch.execute`
42-
- Added docs for Batch processing changes
43-
- Unified return values of plotting functions. Now all functions return either matplotlib figure and axes or a PIL image
44-
depending on the type of plot
45-
- Refactored `Batch` implementation. `Batch` class now obtains the methods from the `Surface` class that are decorated
46-
with the `batch_method` decorator. The decorater specifies the type (parameter, operation) as well as possible return
47-
value names (replacing the previous decorator) and fixed keyword arguments such as `inplace = True` that must have
48-
a specific value for the Batch version of the method. A note is added to decorated methods of the `Surface` class,
49-
indicating that it is suitable for Batch usage. The `Batch` class dynamically adds these methods to itself upon
50-
instantiation (might change to a metaclass in the future) and adjusts the docstring, removing references to the fixed
51-
parameters.
52-
- Added invert method to Surface class
53-
- Previously, file readers checked using file magic whether a known file format that raised an exception during reading
54-
is actually a different format. Now, this capability has been extended to unknown file formats. Moreover, as a last
55-
resort if no reader could be detected based on file magic, surfalize will try all available readers for that file and
56-
only then raise an exception if no reader is able to read the file.
57-
- Added support for custom operations to Batch
5837
## v0.14.2
5938
- Fixed issues with Python < 3.10 and on linux
6039
## v0.14.1

surfalize/surface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Custom imports
2626
from .file import FileHandler
27-
from .utils import is_list_like, register_returnlabels, approximately_equal
27+
from .utils import is_list_like, approximately_equal
2828
from .cache import CachedInstance, cache
2929
from .mathutils import Sinusoid, argclosest, trapezoid
3030
from .autocorrelation import AutocorrelationFunction
@@ -2239,7 +2239,7 @@ def plot_2d(self, cmap='jet', maskcolor='black', layer='Topography', ax=None, vm
22392239
def plot_3d(self, vertical_angle=50, horizontal_angle=0, zoom=1, cmap='jet', colorbar=True, show_grid=True,
22402240
light=0.3, light_position=None, crop_white=True, cbar_pad=50, cbar_height=0.5, scale=1,
22412241
level_of_detail=100, save_to=None, interactive=False, window_title='surfalize',
2242-
perspective_projection=False):
2242+
perspective_projection=True):
22432243
"""
22442244
Renders a surface object in 3d using pyvista.
22452245

0 commit comments

Comments
 (0)