Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
377 commits
Select commit Hold shift + click to select a range
c49f745
option to replace NaN
smribet May 27, 2024
d6cd7a9
versions to 0.14.15
bsavitzky May 27, 2024
83d45d4
Merge branch 'dev' into main
bsavitzky May 27, 2024
44f8d0a
Merge pull request #659 from py4dstem/main
bsavitzky May 27, 2024
532f6fc
Merge pull request #660 from py4dstem/dev
bsavitzky May 27, 2024
29fed5e
Merge remote-tracking branch 'origin/dev' into flowlines
smribet May 27, 2024
4fb8f7f
pypi comment in
smribet May 28, 2024
7df8478
remove pypi upload
smribet May 28, 2024
cc26505
Merge pull request #661 from smribet/flowlines
bsavitzky May 28, 2024
4734fc9
updating README, now that tutorials have been updated
gvarnavi May 28, 2024
a87ab85
better position initialization , single-slice
gvarnavi May 29, 2024
bb8bdba
add mixed, multislice better positions
gvarnavi May 29, 2024
92f35e1
magnetic positions, absolute
gvarnavi May 29, 2024
c1557bb
add xmcd class
gvarnavi May 30, 2024
7ed3d2e
xmcd init, adjoint typos
gvarnavi May 30, 2024
936df0e
more careful normalizations
gvarnavi May 30, 2024
8095fa0
switched to real-imag electronic contribution
gvarnavi May 31, 2024
e6c0dba
better xray visualizations
gvarnavi May 31, 2024
c964ab7
cleanup magnetic viz
gvarnavi May 31, 2024
efe1fd0
Create DDF.py
maclariz May 31, 2024
6a48ab0
small bug in dp_mask for gpu
smribet May 31, 2024
d991380
plot radial peaks v lines added
yaeltsaPost Jun 5, 2024
9973e20
Typo
yaeltsaPost Jun 5, 2024
2e39852
bug fix for fit_amorphous_ring
smribet Jun 6, 2024
9db11d3
remove redundant code
smribet Jun 6, 2024
c2f6ea3
Merge pull request #663 from smribet/polar
sezelt Jun 7, 2024
ee13501
Merge remote-tracking branch 'py4dstem/dev' into diffraction
cophus Jun 21, 2024
4a183df
Changing default settings, fiddling with plots
cophus Jun 21, 2024
7f3eca7
adding robust fitting to polar
cophus Jun 24, 2024
fee10c8
Update DDF.py
maclariz Jun 25, 2024
18d5002
Merge pull request #1 from maclariz/maclariz-patch-1
maclariz Jun 25, 2024
6670dd3
Merge remote-tracking branch 'py4dstem/dev' into potential2D
cophus Jun 26, 2024
d52eaed
Fix for the infinite projection error
cophus Jun 27, 2024
0763f98
cleaning up
cophus Jun 27, 2024
be4d919
Black formatting
cophus Jun 27, 2024
b921a47
Adding docstrings, cleaning up code
cophus Jun 27, 2024
cd48bea
more docstrings added
cophus Jun 27, 2024
316bded
Cleaning up, removing residual comments
cophus Jun 27, 2024
9ada2d8
black
cophus Jun 27, 2024
307f27d
lite refactor commits from dev
gvarnavi Jul 4, 2024
fdce7a9
black
gvarnavi Jul 4, 2024
b84847c
one more try, new black
gvarnavi Jul 4, 2024
7b60b13
odd mamba file made its way in
gvarnavi Jul 4, 2024
5ff6acf
Update DDF v2.py
maclariz Jul 5, 2024
cbadde3
Merge pull request #666 from cophus/potential2D
sezelt Jul 7, 2024
6742118
Update DDF v3.py
maclariz Jul 8, 2024
8cf9b7e
Merge pull request #2 from maclariz/maclariz-patch-2
maclariz Jul 8, 2024
d665ca1
lint with black
gvarnavi Jul 8, 2024
568b783
switched to tqdmnd
gvarnavi Jul 8, 2024
246c0b5
Merge branch 'py4dstem:dev' into maclariz-DDF-patch-1
maclariz Jul 8, 2024
eae5561
Create __init__.py
maclariz Jul 8, 2024
dffd10c
Update __init__.py
maclariz Jul 8, 2024
bff3634
Update __init__.py
maclariz Jul 8, 2024
8b176e8
Update DDF.py
maclariz Jul 8, 2024
1e8278f
is_package_lite demo
gvarnavi Jul 10, 2024
e872c79
switching to __package__ calls instead
gvarnavi Jul 10, 2024
44c5e1a
I clearly dont understand __package__
gvarnavi Jul 10, 2024
33d20b6
reverting, doesnt seem like metadata would work - will continue on plane
gvarnavi Jul 10, 2024
1693c18
alright - this hack ought to work
gvarnavi Jul 11, 2024
f75992c
updating all __init__ files to be lite_aware
gvarnavi Jul 11, 2024
d995f66
Merge remote-tracking branch 'origin/dev' into phase_contrast
gvarnavi Jul 11, 2024
3509e0a
Update DDF.py
maclariz Jul 11, 2024
e04a6b8
Adjust scalebar logic to combine any specified parameters with defaults.
edwinsupple Jul 12, 2024
88d3d33
moving DDF functions to braggvectors
cophus Jul 12, 2024
5ec8b67
working
cophus Jul 18, 2024
8899487
black formatting, updated variable name
cophus Jul 18, 2024
0ecf427
updating black version
cophus Jul 18, 2024
7c2eb04
switch to centered alignment bins by default
gvarnavi Jul 18, 2024
394c0da
forgot to black small BO change
gvarnavi Jul 18, 2024
564999c
testing fix for drawing legend
cophus Jul 18, 2024
fece355
Revert "testing fix for drawing legend"
cophus Jul 18, 2024
a709705
adding option to hide legend
cophus Jul 18, 2024
f7bde15
option to hide legend axes
cophus Jul 18, 2024
00bf45d
Merge pull request #664 from cophus/diffraction
cophus Jul 19, 2024
c52a4d5
Adding subtraction utility function, cleaning up
cophus Jul 23, 2024
392e923
Merge pull request #662 from yaeltsaPost/flowlineCorr
bsavitzky Jul 25, 2024
b33ea28
Merge pull request #671 from py4dstem/phase_contrast
bsavitzky Jul 25, 2024
d801892
Merge branch 'dev' into lite
bsavitzky Jul 25, 2024
ab61525
Merge pull request #668 from py4dstem/lite
bsavitzky Jul 25, 2024
b9e125b
versions to 0.14.16
bsavitzky Jul 25, 2024
080cebe
Merge branch 'dev'
bsavitzky Jul 25, 2024
0c6aa4d
silly BO bug
gvarnavi Aug 5, 2024
502c25f
make TV and entropy measures array dims invariant
gvarnavi Aug 6, 2024
dcfa44a
in place datacube mod
gvarnavi Aug 6, 2024
e8c04ac
small bugfixes
gvarnavi Aug 8, 2024
60f74d9
versions dev to 0.14.17
bsavitzky Aug 9, 2024
39ba85e
remove equal datacube shapes check for magnetic ptychography
gvarnavi Aug 10, 2024
65b5982
parallax improvements: added batch_size, fixed inv_mask, added aligne…
gvarnavi Aug 10, 2024
cd1cf44
switching to arrows overlay comparison
gvarnavi Aug 10, 2024
0d02e3f
Adding ability to plot marker radii in pixels
cophus Aug 10, 2024
18ea00c
adding docstring, black formatting
cophus Aug 10, 2024
e85ac13
adding common aberrations function, easy to widgetify
gvarnavi Aug 11, 2024
9288d1a
added transpose and upsampling options
gvarnavi Aug 11, 2024
e9fff8d
added docstrings
gvarnavi Aug 11, 2024
6afcfd5
Merge pull request #3 from cophus/maclariz-DDF-patch-1
maclariz Aug 12, 2024
ac9e9bf
adding plot, return flags
gvarnavi Aug 12, 2024
2d8ce83
Merge pull request #674 from py4dstem/phase_contrast
smribet Aug 20, 2024
65b57a1
Merge branch 'py4dstem:dev' into maclariz-DDF-patch-1
maclariz Aug 28, 2024
c378039
Update digital_dark_field.py
maclariz Aug 28, 2024
85cfbcd
Merge pull request #4 from maclariz/maclariz-patch-3
maclariz Aug 28, 2024
f2c5d21
small changes to calibration for pointlist_to_array
smribet Aug 28, 2024
0cb2ecd
small bug in plotting
smribet Aug 28, 2024
2681d4a
Update polar_analysis.py
maclariz Aug 29, 2024
72195a4
Update polar_analysis.py
maclariz Aug 29, 2024
9867aa8
Update polar_analysis.py
maclariz Aug 29, 2024
3407f8b
Merge pull request #665 from maclariz/maclariz-DDF-patch-1
smribet Aug 29, 2024
f9b2f63
numpy less than 2
smribet Aug 29, 2024
e1c74f0
pymatgen and ncempy updates
smribet Aug 29, 2024
9480879
plotting options
smribet Aug 30, 2024
9404842
Merge remote-tracking branch 'origin/phase_contrast' into phase_contrast
smribet Aug 30, 2024
a15458b
Bump github/super-linter from 6 to 7
dependabot[bot] Sep 1, 2024
6b6c43a
Update digital_dark_field.py
maclariz Sep 2, 2024
87c340b
Update digital_dark_field.py
maclariz Sep 2, 2024
1d8bc2d
Update digital_dark_field.py
maclariz Sep 2, 2024
0baebf1
black format
smribet Sep 2, 2024
3fee4c3
Merge pull request #679 from maclariz/DDF-patch-2
smribet Sep 2, 2024
758fc78
Update digital_dark_field.py
maclariz Sep 3, 2024
a91a76e
Merge pull request #5 from maclariz/DDF-patch-3
maclariz Sep 3, 2024
34a8494
Update digital_dark_field.py
maclariz Sep 4, 2024
5d3cb3a
Merge pull request #673 from edwinsupple/fix-scalebar-bug
bsavitzky Sep 5, 2024
29a0ab4
Merge pull request #678 from py4dstem/dependabot/github_actions/githu…
bsavitzky Sep 5, 2024
717e37a
Merge pull request #680 from maclariz/dev
bsavitzky Sep 5, 2024
6668c8e
Merge pull request #677 from smribet/version
bsavitzky Sep 5, 2024
84eee17
updated initial guess
smribet Sep 5, 2024
e3e41c3
Merge remote-tracking branch 'origin/dev' into maclariz_rdf_patch
smribet Sep 5, 2024
a9dc99a
Merge pull request #681 from maclariz/DDF-patch-4
bsavitzky Sep 5, 2024
02448ee
Merge pull request #676 from maclariz/maclariz_rdf_patch
smribet Sep 5, 2024
1137637
versions to 0.14.18
bsavitzky Sep 5, 2024
02d0c03
Merge remote-tracking branch 'origin/dev' into phase_contrast
gvarnavi Sep 13, 2024
e1ee2fb
add virtual detector ptychography for single-slice
juliedactyl Sep 13, 2024
c21e78d
add docstrings
juliedactyl Sep 13, 2024
8a08b5f
raist NotImplementedError for projection sets
juliedactyl Sep 13, 2024
0a4ecf5
adding virtual detector support for mixed-probe fourier projection
gvarnavi Sep 14, 2024
76a5da2
adding to all classes
gvarnavi Sep 14, 2024
16e0956
Merge pull request #1 from py4dstem/pr_683
juliedactyl Sep 15, 2024
bad4498
Update digital_dark_field.py
maclariz Sep 16, 2024
cc25ea1
Update read_mib.py
AZangiabadi Sep 16, 2024
e0afd95
Update read_mib.py
AZangiabadi Sep 16, 2024
6ec6b4f
add slim preprocess, to circumvent calibration headaches
gvarnavi Sep 17, 2024
18be28d
adding vaccum transmission constraint
gvarnavi Sep 17, 2024
d304961
adding probe real-space support constraint
gvarnavi Sep 17, 2024
274fdeb
various ptycho-tomo bug fixes
gvarnavi Sep 18, 2024
6d7f6c0
various other classes compatibility fixes
gvarnavi Sep 18, 2024
2a3bd6f
Merge branch 'phase_contrast' into phase_contrast
gvarnavi Sep 18, 2024
73bd240
small typo
gvarnavi Sep 18, 2024
4ad052d
Merge pull request #685 from maclariz/DDF-patch-6
smribet Sep 18, 2024
50d0cee
Merge pull request #683 from juliedactyl/phase_contrast
smribet Sep 18, 2024
ab46604
Update digital_dark_field.py
maclariz Sep 19, 2024
a005f1c
Update digital_dark_field.py
maclariz Sep 19, 2024
c89b16d
enforcing masks to boolean
gvarnavi Sep 20, 2024
51c64ad
serial loop over virtual masks, proper normalization
gvarnavi Sep 20, 2024
aef4901
bool_ typo
gvarnavi Sep 20, 2024
715b4c1
running black read_mib.py
AZangiabadi Sep 21, 2024
254dfc4
small updates for files without .hdr file
smribet Sep 21, 2024
e796f3c
Merge pull request #686 from AZangiabadi/AZangiabadi-patch-1
smribet Sep 22, 2024
34a9658
Revert "Adjust scalebar logic to combine any specified parameters wit…
smribet Sep 23, 2024
baf9e30
Merge pull request #689 from py4dstem/revert-673-fix-scalebar-bug
gvarnavi Sep 23, 2024
f0fd344
Merge remote-tracking branch 'py4dstem/dev' into phase_contrast
Sep 23, 2024
ed33c31
switching to centered_alignment_bins=False default
gvarnavi Sep 23, 2024
7c9e657
adding DirectPtychography class
gvarnavi Oct 7, 2024
719b6e5
not sure this is correct
gvarnavi Oct 8, 2024
52d29a8
more intelligent trotter plotting
gvarnavi Oct 8, 2024
20d8359
numpy indexing changed?
gvarnavi Oct 8, 2024
9739a1e
how about this indexing
gvarnavi Oct 8, 2024
6c1d759
fine, this should work
gvarnavi Oct 8, 2024
5b0c14a
clean up SSB, add WDD
gvarnavi Oct 8, 2024
f37b976
changing vectorized dpc default to False
gvarnavi Oct 8, 2024
175ec7d
minor shape bug
gvarnavi Oct 8, 2024
91613c2
add recursive aberration fitting to SSB
gvarnavi Oct 11, 2024
8d04db2
various improvements, allowing reconstruct to override polar parameters
gvarnavi Oct 12, 2024
b51c4f9
gpu bug
gvarnavi Oct 12, 2024
4347df1
add gpu warning
gvarnavi Oct 12, 2024
db3dbb9
first pass at supporting vacuum probes - not great
gvarnavi Oct 12, 2024
025d950
more robust vacuum probe handling
gvarnavi Oct 12, 2024
85babaa
minor verbosity bug
gvarnavi Oct 12, 2024
e8892ca
adding batch size to parallax
gvarnavi Oct 14, 2024
a45b971
changing default trotter threshold
gvarnavi Oct 14, 2024
f7817ad
add OBF-like weights
gvarnavi Oct 17, 2024
71941b9
refactoring direct ptycho, adding parallelization, fixing normalizati…
gvarnavi Oct 20, 2024
5eba668
switched to argument form for multiprocessing
gvarnavi Oct 20, 2024
60f9e94
cleaned up classes, removed trailing Ptychography
gvarnavi Oct 20, 2024
b697818
remove trotter_sign -- correct is negative
gvarnavi Oct 20, 2024
428c4ed
proper WDD normalization
gvarnavi Oct 20, 2024
476bf09
factor of 2 for SSB?
gvarnavi Oct 20, 2024
bde377d
invert phase-compensated SSB amplitude contrast
gvarnavi Oct 20, 2024
d3ba942
typo
gvarnavi Oct 24, 2024
3f47d5c
add 3D Fourier-rotation
gvarnavi Oct 28, 2024
7eed22a
add support for fourier-rotation and custom tilt paths
gvarnavi Oct 28, 2024
a76464d
ensure magnetic ptycho-tomo still works, spline-interp only for now
gvarnavi Oct 28, 2024
e2b4191
multi-processing tweaks
gvarnavi Nov 4, 2024
054be29
add bf cropping
gvarnavi Nov 5, 2024
35194a0
Add fix a minor typo in contributors.md
bobleesj Nov 5, 2024
5e71638
modernizing parallax init and aberration fitting
gvarnavi Nov 5, 2024
2e7151f
fix integer_pixel_rolling memory reqs
gvarnavi Nov 6, 2024
2751dd7
docstring changes
gvarnavi Nov 6, 2024
f58a763
OBF bug
gvarnavi Nov 13, 2024
91d3bb5
ptycho-tomo slim_preprocess
gvarnavi Nov 14, 2024
6467b16
slim_preprocess bugs
gvarnavi Nov 14, 2024
0f32bd9
add 3D object support mask
gvarnavi Nov 14, 2024
2a41047
restart bug
gvarnavi Nov 14, 2024
5e30cae
Merge pull request #693 from bobleesj/precommit
bsavitzky Nov 14, 2024
7259309
silly fftftreq casting to float64
gvarnavi Nov 15, 2024
7216112
small tweaks to mixed-state virtual-detector ptycho
gvarnavi Nov 15, 2024
7e5aacb
Merge branch 'py4dstem:dev' into DDF-patch-7
maclariz Nov 15, 2024
13357b1
Update digital_dark_field.py
maclariz Nov 15, 2024
af0109a
oops, direct ptycho viz bug
gvarnavi Nov 15, 2024
b195d0d
bug in ptycho-tomo object support mask
gvarnavi Nov 16, 2024
d3e227b
black formatting
bsavitzky Nov 18, 2024
20917d0
black formatting
bsavitzky Nov 18, 2024
0151417
Update digital_dark_field.py
maclariz Nov 20, 2024
48d5eb6
Merge pull request #688 from maclariz/DDF-patch-7
bsavitzky Nov 20, 2024
a7b8643
Merge pull request #696 from maclariz/DDF-patch-8
bsavitzky Nov 21, 2024
f70514f
Update WK_scattering_factors.py
ZacharyVarley Dec 8, 2024
966a41c
Merge pull request #700 from ZacharyVarley/ZacharyVarley-patch-WK-sca…
sezelt Dec 18, 2024
892a3cd
fix flip and scan width
smribet Dec 24, 2024
179e896
read metadata
smribet Dec 24, 2024
fd5b6cd
use dill to serialize mpire for windows
gvarnavi Jan 16, 2025
dbb2a1b
add object support mask to ptycho-tomo
gvarnavi Jan 16, 2025
3de4557
reduce angle threshold for successive fourier rotations
gvarnavi Jan 16, 2025
3a46bf2
switch to bilinear=False, thanks Arthur -- boo Colin
gvarnavi Jan 16, 2025
b87e71b
Toma review typos
gvarnavi Jan 16, 2025
d7ebd28
Merge branch 'dev' into phase_contrast
gvarnavi Jan 16, 2025
e6ebf70
generalized guess_common_aberrations
gvarnavi Jan 17, 2025
83f9ed4
adding interpolation order flag for shifting, default bicubic
gvarnavi Jan 17, 2025
fc21a18
Merge pull request #703 from py4dstem/opt-refactor
gvarnavi Jan 17, 2025
e82f3d0
mpire windows fix?
gvarnavi Jan 18, 2025
190ba4e
Merge pull request #695 from py4dstem/phase_contrast
smribet Jan 21, 2025
544416c
Merge pull request #701 from smribet/arina_reader
smribet Jan 21, 2025
62c042e
adds minimal setup.cfg; necessary to make twine distribution happy Ja…
bsavitzky Jan 21, 2025
c500750
versions dev to 0.14.19
bsavitzky Jan 21, 2025
86c6a68
Update WK_scattering_factors.py
ZacharyVarley Jan 22, 2025
a68396b
Merge pull request #704 from ZacharyVarley/ZacharyVarley-patch-WK-WEK…
sezelt Jan 23, 2025
c8c8646
Small typo, docstring update, and fixed a bug.
tcpekin Jan 29, 2025
f260337
format with black
sezelt Jan 29, 2025
4e7d000
change branch behavior
tcpekin Feb 3, 2025
cf80977
fixes SyntaxError bug
bsavitzky Mar 3, 2025
26efa5f
rm whitespace
bsavitzky Mar 3, 2025
01199be
sqrt(**2+**2) --> hypot
bsavitzky Mar 3, 2025
e2555e5
fixes probe formation bug, adding to probe gen pipeline
bsavitzky Mar 4, 2025
880361a
black formatting
bsavitzky Mar 4, 2025
3a2d794
black formatting
bsavitzky Mar 4, 2025
597e5b1
Merge pull request #709 from bsavitzky/dev14
bsavitzky Mar 4, 2025
df83483
fix numpy 2 errors with: ruff check py4DSTEM --select NPY201 --fix
sezelt Mar 14, 2025
bea0dab
remove numpy restriction in setup.py
sezelt Mar 14, 2025
2303563
unpin ncempy version
sezelt Mar 14, 2025
9f46139
Merge pull request #712 from sezelt/np2
smribet Mar 17, 2025
ec01593
minor edits to Crystal.plot_structure for handling occupancy
sezelt Mar 17, 2025
04e2b6b
Merge pull request #706 from tcpekin/small_bug
sezelt Mar 17, 2025
2151c18
dependencies update
smribet Apr 30, 2025
c5fa00d
Merge branch 'diffraction' into dev
serinlee1065 May 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
patch_number = line_split[2].split("'")[0].split('"')[0]

# Increment patch number
patch_number = str(int(patch_number) + 1) + "'"
patch_number = str(int(patch_number) + 1) + '"\n'


new_line = line_split[0] + "." + line_split[1] + "." + patch_number
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v5
uses: github/super-linter@v7
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON_FLAKE8: true
Expand Down
85 changes: 0 additions & 85 deletions .github/workflows/pypi_upload.yml

This file was deleted.

16 changes: 8 additions & 8 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ There are many ways to contribute to py4DSTEM, including:

### Coding Guidelines

* **Code style:** py4DSTEM uses the black code formatter and flake8 linter. All code must pass these checks without error before it can be merged. We suggest using `pre-commit` to help ensure any code commited follows these practices, checkout the [setting up developer environment section below](#install). We also try to abide by PEP8 coding style guide where possible.
* **Code style:** py4DSTEM uses the black code formatter and flake8 linter. All code must pass these checks without error before it can be merged. We suggest using `pre-commit` to help ensure any code committed follows these practices, checkout the [setting up developer environment section below](#install). We also try to abide by PEP8 coding style guide where possible.

* **Documentation:** All code should be well-documented, and use Numpy style docstrings. Use docstrings to document functions and classes, add comments to explain complex code both blocks and individual lines, and use informative variable names.

* **Testing:** Ideally all new code should be accompanied by tests using pyTest framework; at the least we require examples of old and new behaviour caused by the PR. For bug fixes this can be a block of code which currently fails and works with the proposed changes. For new workflows or extensive feature additions, please also include a Jupyter notebook demonstrating the changes for an entire workflow i.e. from loading the input data to visualizing and saving any processed results.
* **Testing:** Ideally all new code should be accompanied by tests using pyTest framework; at the least we require examples of old and new behaviour caused by the PR. For bug fixes this can be a block of code which currently fails and works with the proposed changes. For new workflows or extensive feature additions, please also include a Jupyter notebook demonstrating the changes for an entire workflow i.e. from loading the input data to visualizing and saving any processed results.

* **Dependencies:** New dependencies represent a significant change to the package, and any PRs which add new dependencies will require discussion and agreement from the development team. If a new dependency is required, please prioritize adding dependencies that are actively maintained, have permissive installation requirements, and are accessible through both pip and conda.

Expand Down Expand Up @@ -107,20 +107,20 @@ You can now make changes to the code and test them using your favorite Python ID
cd <path-to-your-fork-of-the-py4DSTEM-git-repo> # go to your py4DSTEM repo
pre-commit install
```

This will setup pre-commit to work on this repo by creating/changing a file in .git/hooks/pre-commit, which tells `pre-commit` to automatically run flake8 and black when you try to commit code. It won't affect any other repos.

**_extra tips_:**
**_extra tips_:**

```bash
# You can call pre commit manually at any time without committing
pre-commit run # will check any staged files
pre-commit run # will check any staged files
pre-commit run -a # will run on all files in repo

# you can bypass the hook and commit files without the checks
# you can bypass the hook and commit files without the checks
# (this isn't best practice and should be avoided, but there are times it can be useful)

git add file # stage file as usual
git add file # stage file as usual
git commit -m "you commit message" --no-verify # commit without running checks
git push # push to repo.
git push # push to repo.
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ this is a test --

> :warning: **py4DSTEM version 0.14 update** :warning: Warning: this is a major update and we expect some workflows to break. You can still install previous versions of py4DSTEM [as discussed here](#legacyinstall)

> :warning: **Phase retrieval refactor version 0.14.9** :warning: Warning: The phase-retrieval modules in py4DSTEM (DPC, parallax, and ptychography) underwent a major refactor in version 0.14.9 and as such older tutorial notebooks will not work as expected. Notably, class names have been pruned to remove the trailing "Reconstruction" (`DPCReconstruction` -> `DPC` etc.), and regularization functions have dropped the `_iter` suffix (and are instead specified as boolean flags). We are working on updating the tutorial notebooks to reflect these changes. In the meantime, there's some more information in the relevant pull request [here](https://github.com/py4dstem/py4DSTEM/pull/597#issuecomment-1890325568).
> :warning: **Phase retrieval refactor version 0.14.9** :warning: Warning: The phase-retrieval modules in py4DSTEM (DPC, parallax, and ptychography) underwent a major refactor in version 0.14.9 and as such older tutorial notebooks will not work as expected. Notably, class names have been pruned to remove the trailing "Reconstruction" (`DPCReconstruction` -> `DPC` etc.), and regularization functions have dropped the `_iter` suffix (and are instead specified as boolean flags). See the [updated tutorials](https://github.com/py4dstem/py4DSTEM_tutorials) for more information.

![py4DSTEM logo](/images/py4DSTEM_logo.png)

Expand Down
Loading