Commit Graph
369 Commits
Author SHA1 Message Date
maelclemence b6c4dbac4a modification remove amplitude exponent, there was dimension mismatch 2025-07-08 17:24:33 +02:00
maelclemence b47216312d adding a different window for FRC than for phase ramp 2025-07-08 16:49:22 +02:00
maelclemence 41e6f68a19 Small modifications of phase ramp correciton and standarize set 2025-07-07 15:04:57 +02:00
Damian Guenzing 3516405954 Merge pull request #41 from cdtools-developers/pipdocs
Update the documentation to reflect the existence of a PyPI package. 

I see I can just merge it.
2025-07-02 10:00:50 -07:00
levita_a ab30afb10e Update the documentation to reflect the existence of a PyPI package 2025-07-02 15:04:39 +02:00
Dayne Yoshiki Sasaki b223011b0f Merge pull request #40 from cdtools-developers/fixpypinaming
fix: change name from cdtools to cdtools-py to match pypi naming
v0.3.0pypi1
2025-06-30 10:17:37 -07:00
Damian Guenzing 1ecf001ad4 change name from cdtools to cdtools-py to match pypi naming 2025-06-29 21:14:49 +00:00
Abe Levitan 99139f59c9 Merge pull request #39 from cdtools-developers/pypirelease
Add pypi workflow
v0.3.0pypi
2025-06-29 11:11:50 +02:00
gnzng 302decd922 remove version increase 2025-06-23 15:46:32 -07:00
gnzng 2c764d4190 add pypi workflow 2025-06-23 15:38:44 -07:00
Dayne Yoshiki Sasaki 8c216aa7e6 Merge pull request #36 from cdtools-developers/version0-3-0
Pin current codebase version to 0.3.0
2025-06-23 09:37:16 -07:00
gnzng 951636e39f pin current version to 0.3.0 v0.3.0 2025-06-18 14:09:43 -07:00
Dayne Yoshiki Sasaki b95bdba1ef Merge pull request #35 from gnzng/float64
handling of 64-bit floats in Ptycho2DDataset cxi import
2025-06-17 16:21:56 -07:00
gnzng d7a1ea82c9 adjusted warn msg based on Daynes suggestion 2025-06-17 15:50:51 -07:00
gnzng b189c3c2af Add warning for 64-bit float conversion in Ptycho2DDataset and added to tests 2025-06-17 11:01:30 -07:00
Abe Levitan eb19ce3995 Merge pull request #32 from yoshikisd/bugfix/rpi_compare
[Bugfix] model.compare(dataset) does not work for the RPI test script
2025-06-12 07:50:18 -04:00
Dayne Yoshiki Sasaki 31318819d0 Merge branch 'cdtools-developers:master' into bugfix/rpi_compare 2025-06-11 17:03:06 -07:00
yoshikisd 4c784de922 Fixed sim_data shape change in CDIModel.compare for RPI measurements 2025-06-12 00:02:32 +00:00
Dayne Yoshiki Sasaki b3a70ec325 Merge pull request #30 from cdtools-developers/variable_qe
Add the ability for fancy_ptycho to model detectors with spatially varying quantum efficiency
2025-06-10 08:44:22 -07:00
levita_a 4ecc782c28 Reply to Daynes comment's and slightly loosen a tolerance in one test that has been failing 2025-06-10 14:11:01 +02:00
levita_a b6bc7d95cc Change the behavior of FancyPtycho.center_probes to center the probe in real space even when fourier_probe is set to True 2025-06-10 13:57:03 +02:00
levita_a 2c5587cacf Fix an issue for datasets with colinear translations 2025-06-10 13:57:03 +02:00
Dayne Yoshiki Sasaki da695c7c06 Merge pull request #29 from cdtools-developers/center_probe_real_space
Change the behavior of FancyPtycho.center_probes to always center the probe in real space
2025-06-09 19:17:10 -07:00
Abe Levitan b74aa82c32 Merge pull request #28 from cdtools-developers/bugfix/notranslationdataset
Fix an issue for datasets with colinear translations
2025-05-20 11:52:00 +02:00
levita_a 2c2f2d2d93 Add a way to save and load the quantum efficiency masks, and add test coverage 2025-05-13 16:05:16 +02:00
levita_a c86e505ae5 Make it possible to add a quantum efficiency mask to a dataset, allow fancy_ptycho to load that and use it in the forward model 2025-05-13 14:06:02 +02:00
levita_a ac1499f511 get it running in principle, but it is not good 2025-05-12 16:55:26 +02:00
levita_a 91717b65d6 Change the behavior of FancyPtycho.center_probes to center the probe in real space even when fourier_probe is set to True 2025-05-12 16:46:28 +02:00
levita_a cb5942c39a Fix an issue for datasets with colinear translations 2025-05-12 16:07:12 +02:00
Abe Levitan d853a141bf Merge pull request #26 from gnzng/update-doc-link
[minor doc fix] update links to automatic docs
2025-04-02 18:32:31 +02:00
Damian Guenzing a2ec05f63b Update CITATION.cff 2025-04-01 10:45:07 -07:00
Damian Guenzing dbd54f310b Update README.md 2025-04-01 10:43:54 -07:00
Dayne Yoshiki Sasaki 1c434dd277 Merge pull request #25 from cdtools-developers/bugfix/h5_strings
Bugfix/h5 strings
2025-03-20 12:03:00 -07:00
levita_a 2fd917350d response to Dayne's review 2025-03-20 10:46:24 +01:00
levita_a 5b6fd79b28 Add tests for nested_dict_to_numpy and nested_dict_to_torch 2025-03-18 13:13:47 +01:00
levita_a a30930b082 Fix bug with loading h5 files including strings, and add test coverage for h5_to_nested_dict and nested_dict_to_h5 2025-03-18 11:54:06 +01:00
Dayne Yoshiki Sasaki fce2add124 Merge pull request #24 from gnzng/fix-doc-deployment
[fix] remove environment from github actions for docs deployment
2025-03-07 13:23:00 -08:00
gnzng 48ca3a675a remove environment from github actions 2025-03-07 08:48:33 -08:00
allevitan ee7f7eecd4 Merge pull request #21 from gnzng/master
Include docs in main repo and automatic deploy using github actions
2025-03-07 16:25:05 +01:00
allevitan 54decc486a Merge pull request #22 from gnzng/fix-gaussian
Fix use of gaussian_probe() + typo
2025-03-07 16:22:00 +01:00
gnzng f8bebd0436 typo, factor -> factors 2025-03-04 14:21:51 -08:00
gnzng efadaf807e Rename probe_size parameter to probe_shape in FancyPtycho and MultislicePtycho classes to match the gaussian_probe function 2025-03-04 14:20:09 -08:00
gnzng e1b76f0959 DOCS: Force-Push due to rebasing unnecessary large commits to just add an extra doc publishing action 2025-03-03 10:11:20 -08:00
gnzng a097dd50d2 Update .gitignore to include .DS_Store files 2025-03-02 13:05:39 -08:00
allevitan db2450c5ae Merge pull request #18 from gnzng/master
add github workflow using pip installation for python 3.8 - 3.12
2025-02-27 10:34:19 +01:00
Damian Guenzing b39cd2b705 updated installation.rst for pip installation 2025-02-26 15:24:29 +00:00
Damian Guenzing 165ff8aced Merge branch 'cdtools-developers:master' into master 2025-02-26 07:19:48 -08:00
a7904491be Added a function to allow for deletion of translation positions with logical indexing (#16)
* Added a function to allow for deletion of translation positions via logical indexing
In ptycho_2d_dataset.py
- Created remove_translations_mask. This handles logical-indexing-based deletion of translation points
- Refactored crop_translations to be dependent on remove_translations_mask

* Add validation and tests for remove_translations_mask method in Ptycho2DDataset

* Switch mask to mask_remove

---------

Co-authored-by: gnzng <damian@guenzing.de>
Co-authored-by: Clemens Schmid <clemisch@tuta.io>
2025-02-26 06:52:04 +01:00
Damian Guenzing 5f30990e55 Delete constraints.txt
constraints not needed anymore, relict from rebasing
2025-02-25 17:07:30 -08:00
gnzng 9159afa987 add github workflow using pip installation for python 3.8 - 3.12 2025-02-25 16:04:09 -08:00