aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell-utils.h
AgeCommit message (Collapse)Author
2021-05-07Add has_unique_axis()Thomas White
2021-03-05Mass update of copyright dates in source code commentsThomas White
2021-01-11UnitCell: Store all representations once they're calculatedThomas White
Previously, the "getter" functions would re-calculate the requested representation every time they were called. This could mean doing a matrix inversion in the middle of a tight loop, wasting loads of time. Now, it stores the calculated values and returns them directly next time. Setting the parameters invalidates the values for all representations other than the one given. The cost of doing this is that the cell can no longer be "const" in the getter functions. This tracked through some other code, but nothing too severe.
2021-01-06partialator: Reject crystals with obviously too large profile radiiThomas White
The criterion for "too large" is 20% of the 1/d value for the lowest reflection which is not systematically absent according to the centering. A profile radius larger than the 1/d value for a reflection will crash the xsphere partiality model, and some visualisation shows that this is a clearly non-physical situation. The profile radius shouldn't be anywhere near the inter-Bragg spacing for reasonable data. However, feedback shows that this is happening quite often in real data, probably due to bad indexing.
2020-07-29Remove config.h from libcrystfel headersThomas White
Same reason as removing them from tests. Also, libcrystfel might be used in projects which have HAVE_CONFIG_H defined.
2020-07-29Add cell_print_onelineThomas White
2020-07-29Const-cleaningThomas White
2020-01-10Mass update of copyright datesThomas White
2019-08-22Remove match_cell and match_cell_abThomas White
2019-08-22Tidy up comparison function definitionsThomas White
Especially, remove the last ltl/atl tolerance values.
2019-08-22Framework for new unit cell comparison functionThomas White
2019-08-16Clarify cell vs reference in comparison functions. Also reindexed vs permutedThomas White
2019-08-16Add compare_permuted_cell_parametersThomas White
2019-08-16compare_cell_parameters and compare_reindexed_cell_parameters: Accept 6 ↵Thomas White
tolerances
2019-05-07Update all source code comments to Doxygen formatThomas White
2019-04-05cell_tool: Add --cslThomas White
2019-03-11Keep track of the "un-centering" matrix, as well as the "centering"Thomas White
This makes it easy to reverse the transformation, if required, which it is when comparing centered cells.
2019-03-11New way of doing cell comparisons, similar to match_cell()Thomas White
2019-03-11Fix tolerances (again)Thomas White
2019-03-11Use IntegerMatrix for all unit cell transformationsThomas White
Get rid of UnitCellTransformation, a thin wrapper which didn't do anything.
2019-03-11Simplify the output of cell_print()Thomas White
2019-03-11Change horribly confusing names of unit cell comparison functionsThomas White
cells_are_similar -> compare_cell_parameters_and_orientation compare_cells -> compare_reindexed_cell_parameters_and_orientation cell_tool.c:cells_the_same -> cellutils.c:compare_cell_parameters All comparisons now done in real space, checking that centering is the same, and without uncentering anything.
2019-03-11Remove cells_are_similar() from APIThomas White
There are two functions with this name. Avoid confusion.
2019-03-11cell_tool: Use libcrystfel cells_are_similar() functionThomas White
2017-09-07Add compare_cells() (and use it in whirligig)Thomas White
2016-10-19Add transform_cell_gsl()Thomas White
2015-11-27indexamajig: Write target unit cell into streamThomas White
2015-02-11Move cell_get_volume from asdf.c to cell_utils.cAlexandra Tolstikova
2014-09-19Introduce CrystFEL unit cell filesThomas White
2014-06-13Add extern "C" for C++ compatibilityChuck
2014-03-03Add missing includesThomas White
Reported by Rick Kirian
2013-04-18Read/write lattice type, centering and unique axis information from/to streamThomas White
2013-01-04Tidy up documentationThomas White
2012-10-02Finishing tweaks for uncentering stuffThomas White
Today, I have mostly been having my life made difficult by the PDB's invention of "H centering".
2012-10-02WIP on cell transformationsThomas White
2012-10-02Uncenter the cell before using it for indexing stuffThomas White
2012-10-02Move unit cell utility stuff to separate moduleThomas White