Releases: kmnhan/erlabpy
v2.4.2
v2.4.2 (2024-05-07)
Fix
-
(ktool) resolve ktool initialization problem, closes #32 (
e88a58e
) -
(itool) disable flag checking for non-numpy arrays (
da6eb1d
)
Unknown
v2.4.1
v2.4.0
v2.4.0 (2024-05-02)
Chore
-
(deps) update dependencies (
37c1b4b
)Numbagg is now an optional dependency.
Documentation
-
improve documentation (
8f23f99
) -
improve io documentation (
4369d23
) -
fix PyQt version pinning to resolve build failures on Qt6.7 (
433ee9e
)
Feature
-
(imagetool) add method to update only the values (
ca40fe4
) -
add interpolation along a path (
7366ec4
)The
slice_along_path
function has been added toanalysis.interpolate
, which enables easy interpolation along a evenly spaced path that is specified by its vertices and step size. The path can have an arbitrary number of dimensions and points.
Fix
-
(io) remove direct display call in interactive summary (
d44b3a5
)This was causing duplicated plots.
-
(plotting) add some validation checks to
plot_array
(2e0753c
)The functions
plot_array
andplot_array_2d
now checks if the input array coordinates are uniformly spaced. If they are not, a warning is issued and the user is informed that the plot may not be accurate. -
(plotting) increase default colorbar size (
3208399
)The default
width
argument tonice_colorbar
is changed to 8 points. This ensures visibility in subplots, especially when constrained layout is used. -
delay interactive imports until called (
ad15910
)
Refactor
-
various cleanup (
2b38397
)Improve docstring formatting and tweak linter settings
Style
- remove % formatting (
ae18a34
)
Unknown
v2.3.2
v2.3.2 (2024-04-25)
Chore
- pin PyQt due to tests failing on Qt6.7 (
9dee08c
)
Fix
-
(io) make summary caching togglable (
99b8e22
)Also fixes a bug where interactive summary plots were duplicated
-
(io) data loader related fixes (
da08e90
)DA30 dataloader now preserves case for attribute names from zip files. Post processing for datasets now works properly
Unknown
v2.3.1
v2.3.1 (2024-04-25)
Chore
-
(deps) make
iminuit
andsuperqt
optional (1bbcc24
) -
(deps) reduce dependencies (
6a03518
) -
(github) update issue templates (
6a2dd50
) -
(deps) update lmfit dependencies to include >1.3.0 (
942a810
)
Fix
-
(interactive) keep pointer for imagetool, fix typing issues (
c98c38e
) -
(kspace) allow explicit coordinate kwargs (
fe47efc
)
Refactor
Style
- add mypy compatible type hints (
c97724d
)
Unknown
v2.3.0
v2.3.0 (2024-04-22)
Chore
-
cleanup directory (
40e1f8d
) -
customize issue template chooser (
0aa7617
) -
update issue templates (
5dfb250
)
Ci
-
(github) update test requirements (
21080cc
) -
(readthedocs) rollback to 3.11 due to bug in python 3.12.0 and 3.12.1 (
5eb6152
)
Documentation
-
update documentation (
ab32920
)Updated requirements, contrib page, fitting guide. Source button now links to github.
-
fix typo in getting-started.rst (
3304a18
) -
fix typos and add compat notes to getting-started (
3bb2ac5
) -
add masking section, WIP (
0844f6a
) -
add imagetool to user guide (
84d3586
) -
update io and plotting documentation and cleanup contributing (
b4c4f7c
) -
update badges (
5e373f4
) -
enable latexpdf generation (
7469271
)
Feature
-
(kspace) rewrite conversion with
xarray.apply_ufunc
(156cef8
)Momentum conversion now relies on xarray broadcasting for all computations, and objects with extra dimensions such as temperature can be automatically broadcasted. Dask arrays can also be converted.
-
(exampledata) enable specifying seed for noise rng (
aa542e8
) -
(interpolate) enable fast interpolation for 1D arrays (
ff333a0
) -
make both arguments optional for loader_context (
6780197
) -
(kspace) automatically detect kinetic energy axis and convert to binding (
bbde447
) -
add more output and parallelization to fit accessor (
59b35f5
)Allows dictionary of
DataArray
s as parameter to fit accessor. Now, the returnDataset
contains the data and the best fit array. Relevant tests have been added. -
add callable fit accessor using apply_ufunc (
11e3546
)Add a
Dataset.modelfit
andDataArray.modelfit
accessor with similar syntax and output asDataset.curvefit
. Closes #22 -
add option to plot_array_2d so that users can pass non-normalized color array (
74cf961
) -
(analysis.gold) add option to normalize energy axis in fitting (
3dffad6
)This improves performance and results when eV is large like ~100eV.
Fix
-
(exampledata) change noise generation parameters (
b213f11
) -
(fit) make FermiEdge2dModel compatible with flattened meshgrid-like input arrays (
c0dba26
) -
fix progress bar for parallel objects that return generators (
23d41b3
)Tqdm imports are also simplified. We no longer handle
is_notebook
ourselves, but just import fromtqdm.auto
-
(plotting) fix 2d colormaps (
8299576
)Allow images including nan to be plotted with gen_2d_colormap, also handle plot_array_2d colorbar aspect
Refactor
-
fix some type hints (
2dfa5e1
) -
(example) move exampledata from interactive to io (
1fc7e6c
)Also add sample data generation for fermi edge
-
refactor accessors as submodule (
9fc37bd
) -
rewrite either_dict_or_kwargs with public api (
34953d1
) -
move correct_with_edge from era.utilities to era.gold (
08a906f
)Calling from utilities will now raise a DeprecationWarning. The erlab.analysis namespace is unchanged, so the affect will be minimal.
-
qsel now raises a warning upon scalar indexing outside coordinate bounds (
d6ed628
)
Unknown
-
Merge pull request #23 from kmnhan/dev (
4514a23
)Added new interface for fitting, see #22 for discussions.
Made loader argument optional forerlab.io.loader_context
so it can be used to just change the data directory.
Momentum conversion has been rewritten usingxarray.apply_ufunc
, and is now dask-compatible. It also automatically determines the current energy axis (kinetic or binding). -
Merge remote-tracking branch 'origin/main' into dev (
fd8e1ad
) -
Merge pull request #20 from kmnhan/pre-commit-ci-update-config (
f1b965e
)[pre-commit.ci] pre-commit autoupdate
-
[pre-commit.ci] pre-commit autoupdate (
7e3a89e
)updates:
v2.2.2
v2.2.2 (2024-04-15)
Chore
Ci
- (readthdocs) update build python version and add zip format (
b2cc6fc
)
Documentation
-
(io) add tutorial for writing advanced plugins (
11f289e
) -
add ipywidgets to intersphinx mapping (
0ee46f8
)
Fix
-
(io) unify call signature for summarize (
e2782c8
) -
resolve failing tests due to changes in sample data generation (
80f0045
) -
(interactive.exampledata) properly generate 2D data (
825260c
)
Performance
- (io) speedup merlin summary generation by excluding duplicates (
d6b4253
)
Refactor
-
(io) allow for more complex setups (
f67b2e4
)LoaderBase.infer_index now returns a second argument, which is a dictionary containing optional keyword arguments to load.
-
(io) provide rich interactive summary (
b075a9e
) -
(io) include "Path" column in ssrl loader summary (
ae1d8ae
) -
(io) improve array formatting in summary (
1718529
)
Test
- add test for dataloader (
64cde09
)
v2.2.1
v2.2.1 (2024-04-14)
Chore
- (deps) pin lmfit<1.3.0 (
915fc60
)
Documentation
-
rephrase some docstrings (
e67597c
) -
add link to changelog (
fbb6d32
) -
add ipywidgets as requirement (
41024eb
) -
temporarily pin lmfit<1.3.0 to build docs (
6b86ac2
)
Fix
-
(fit) add sigma and amplitude expressions to MultiPeakModel parameters (
3f6ba5e
) -
(fit.minuit) properly handle parameters constrained with expressions (
d03f012
)
Refactor
-
set informative model name for MultiPeakModel (
d14ee9d
) -
add gaussian and lorentzian for consistency (
07c0dfb
)
Test
- add tests for fit models (
3f9125c
)
v2.2.0
v2.2.0 (2024-04-12)
Documentation
-
improve fitting documentation (
9e0a106
) -
add curve fitting guide (
ff9743c
) -
add docstrings to plotting.colors (
1a15a70
)
Feature
-
enable component evaluation for MultiPeakModel (
8875b74
) -
(analysis.fit) add BCS gap equation and Dynes formula (
f862aa4
)
Fix
- curvefittingtool errors (
9abb99c
)