Commit Graph
395 Commits
Author SHA1 Message Date
Dayne Yoshiki Sasaki 6443b16f5c Merge pull request #1 from cdtools-developers/refactor/reconstructors
Various suggested changes for the reconstructors branch
2025-10-17 15:58:47 -07:00
levita_a 7d39015719 response to dayne's review 2025-10-17 23:41:08 +02:00
Abe LevitanandDayne Yoshiki Sasaki 9d633074d8 Apply suggestions from code review
Co-authored-by: Dayne Yoshiki Sasaki <37006268+yoshikisd@users.noreply.github.com>
2025-10-17 18:37:38 -03:00
levita_a f022b5e2c4 Get the tests passing again after the change of the optimization functions in the model classes 2025-10-16 15:58:28 +02:00
levita_a 8328b852d3 Update the docs to include the reconstructors class and discuss their use in the examples 2025-10-16 14:43:04 +02:00
levita_a 3c8de5dc19 Update the example codes 2025-10-16 14:16:12 +02:00
levita_a aa684f27eb Change the pattern for Reconstructor so that the optimizer is defined at object creation, and move the dataloader creation logic to the base optimize() function as it was reused in all subclasses 2025-10-13 19:20:42 +02:00
levita_a a089dc3b72 Switch to a simpler pattern for the CDIModel.<algorithm>_optimize functions that preserves the old behavior when the old pattern is used 2025-10-13 14:26:07 +02:00
levita_a 766a7d1adf Move to better supported strategy for avoiding circular imports 2025-10-13 14:20:38 +02:00
yoshikisd 82ce845385 Changed the names of the reconstructors and updated the old optimizer class documentation 2025-08-04 16:51:24 +00:00
yoshikisd 1e7fe2eb5f Added pytests for reconstructors 2025-08-01 22:31:40 +00:00
yoshikisd 404d03bbd3 Rebased CDIModel to use Reconstructors for reconstructions. 2025-08-01 21:51:52 +00:00
yoshikisd 76bc2fa75b Got rid of world_size attribute 2025-08-01 21:50:35 +00:00
yoshikisd 0785eae552 Created Reconstructors class to replace optimization methods in CDIModel 2025-08-01 21:37:05 +00:00
Abe Levitan 25ca3a9317 Merge pull request #44 from cdtools-developers/flake8
[Flake8] conf file and cleaned up test files
2025-07-14 11:55:34 +02:00
gnzng fc5a76ad61 linting test_plotting.py and test_propagators.py 2025-07-07 15:13:11 -07:00
gnzng 65e83753a8 linting test_interactions.py, test_losses.py, and test_measurements.py 2025-07-07 14:58:11 -07:00
gnzng 88df4c0794 linting test_image_processing.py and test_initializers.py 2025-07-07 14:40:17 -07:00
gnzng b00f39e1fe linting test_analysis.py and test_data.py 2025-07-07 14:28:23 -07:00
gnzng 58246966f4 Add W503 to flake8 ignore list, line break before binary operator 2025-07-07 14:21:17 -07:00
gnzng 96d8b10792 linting test_fancy_ptycho.py 2025-07-07 14:11:50 -07:00
gnzng ecb8ee4864 linting test_simple_ptycho.py 2025-07-07 13:59:35 -07:00
gnzng 745f7b73e6 Fix background calculation in test_Ptycho2DDataset_downsample 2025-07-07 13:55:54 -07:00
gnzng f463144347 linting test_datasets.py 2025-07-07 13:49:46 -07:00
gnzng 4d812db68a restructured conftest.py imports 2025-07-07 13:39:44 -07:00
gnzng 38be347a18 lint conftest.py 2025-07-07 13:38:52 -07:00
gnzng 93f5d1969d Add .flake8 configuration to ignore line length errors (E501) 2025-07-07 12:53:06 -07:00
Damian Guenzing 603d47417b Merge pull request #43 from yoshikisd/bugfix/pytest_reconstruct
Set fixed RNG seed for reconstruction pytests
2025-07-07 11:55:38 -07:00
yoshikisd 36de44565b Set fixed RNG seed for reconstruction pytests 2025-07-07 15:16:12 +00: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