aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
8 daysdata_template_write_to_fh: Don't try to write coffset at top levelHEADmasterThomas White
Previously, there was a bad bug here. We would still try to write a top-level coffset even if panels have moved such that the coffset is no longer a single value. One possibility is to unset panel->cnz_offset_default when moving a panel. This works, but we have to do it on every translation, or accept a floating-point comparison with zero and associated non-determinism. It's very likely that if we move one panel, we'll be moving all panels, even if only by a small amount. So, a more stable way seems to just write separate coffset values all the time. The coffset values aren't really meant to be used at the top level anyway (that's what clen is for!), so this fits pretty well.
12 daystests/geom_roundtrip: Check bad regionsThomas White
2024-04-18Merge branch 'julia'Thomas White
2024-02-20tests/geom_roundtrip: Test dimension as panel-specific valueThomas White
2024-02-06Crystals shouldn't own RefLists (part 7)Thomas White
This fixes the test programs.
2024-02-06image_add_feature: Remove "image" argumentThomas White
It hasn't been needed for ages.
2024-02-06Crystal: Remove reference to image structure (part 3)Thomas White
2024-02-06Crystal: Remove reference to image structure (part 2)Thomas White
2023-09-23indexamajig: Re-use the image data arraysThomas White
We noticed that constant freeing and re-allocating the (potentially quite large) arrays resulted in much lower performance. Since we know that all images have the same data layout, we can safely re-use the arrays. This gives a large speedup.
2023-09-18tests/gradient_*: Use r_dev instead of get_exerrThomas White
We explicitly want the gradient of the residual, nothing else.
2023-09-12Fix sense of panel rotationsThomas White
Should always be a right-hand grip rotation around positive axis direction.
2023-09-11Remove vestigial tests/gradient_cell_asx.cThomas White
2023-07-28Add tests/geom_roundtripThomas White
2023-07-28Fix parameter refinement unitsThomas White
The *parameters* will be in metres, radians, m^-1 for translation, rotation and cell parameters respectively. The *residuals*, however, are in pixels.
2023-07-28Remove tests/plot_gradientsThomas White
2023-07-28Rotation centre coordinates need to be in metres (not pixels)Thomas White
2023-07-28Implement rotation gradients (with test)Thomas White
2023-07-28Rename tests/gradient_panel_move.c -> tests/gradient_check.cThomas White
Because it does all types of gradient.
2023-07-28Add tests for unit cell parametersThomas White
2023-07-28Unify panel position gradient tests into one fileThomas White
2023-07-28Implement panel x gradientsThomas White
2023-07-28Calculate panel MinvsThomas White
2023-07-28Calculate fs and ss gradients together, SPOT panel number, add matrix hooksThomas White
2023-07-28Add tests/gradient_cell_asxThomas White
2023-07-28Simplified gradient testThomas White
prediction_gradient_check was out of control - it had option processing, as well as bugs of its own! This replaces it with something much simpler.
2023-07-28Initial re-parameterisation of prediction refinement with fs/ss coordinatesThomas White
The gradients need to be updated.
2023-07-28z-rotation gradientsThomas White
2023-07-28Move clen to top level in all examples and testsThomas White
2023-05-02Remove pattern_sim and partial_simThomas White
Use of these programs has been following this pattern for several years: 1. Neglect 2. Once yearly attempt by someone to use either tool 3. Discovery that it's totally broken 4. Bug report and fast bug fix 5. Go to 1. For more discussion, see the issue referenced below. Closes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/81
2023-05-02Remove CMake build filesThomas White
It's already far behind parity with Meson, and getting worse.
2023-03-01process_hkl_check_4: Change temporary filenameParthasarathy Tirumalai
This test used "tempf.hkl", whereas process_hkl_check_1 used "tempF.hkl". This led to a race condition when running tests in parallel on an case-insensitive filesystem (Mac).
2022-09-08Stream: don't open stream if headers aren't understoodThomas White
This avoids e.g. crashing later if the geometry is bad. This commit also removes a problematic stanza from the geometry in test.stream, since the stream reading functions are now more fussy about this.
2022-06-20tests/file-wait: Use older type of function definitionThomas White
The definition with the "function" keyword doesn't work on plain 'sh'.
2022-06-09Remove some unused variablesThomas White
2022-06-02tests/stream_roundtrip: Clean up stream afterwardsThomas White
2022-03-09Meson: enable building without HDF5Thomas White
2022-03-08Update merging tests to latest stream versionThomas White
2022-03-08Add tests/stream_roundtripThomas White
2022-03-02Add tests/indexamajig-missing-fileThomas White
This checks that indexamajig correctly recognises when no files could be processed.
2022-03-02Add tests/file-waitThomas White
This tests that indexamajig --wait-for-file works
2021-10-28Make symmetry operation parser re-entrantThomas White
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/1
2021-10-20Add photon_energy to ev_enum test filesThomas White
Also fixes newline at end of files
2021-09-07ring_check: Fix data type for malloc sizeThomas White
2021-09-03Fix typo and failing tests from previous commitThomas White
2021-07-21Add missing cleanup on error pathsThomas White
2021-03-22Allow HDF5 path substitution when there are too many placeholder valuesThomas White
This allows, for example, masks which have fewer % signs in their HDF5 locations than the main data.
2021-01-06Use smaller profile radii in partialator testsThomas White
The radii are not used (the tests only check scaling), but must pass the newly-added check in partialator.
2020-10-27Add a test for stream readingThomas White
2020-10-26cellcompare_check: Factorise code and reduce to 1 repetition of eachThomas White
Otherwise it takes far too long.
2020-10-26Remove polarisation_checkThomas White
It takes far too long (over a minute) and didn't actually test anything. Contribution of a better polarisation unit test would be very welcome!