-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beam.get_direction: proposed name change #6
Comments
Beam.get_sample_to_source_direction()
|
Anyone interested in implementing this change? Will require changes to a bunch of dependent code in dials, xia2, cctbx.xfel etc, but not insurmountable. |
ndevenish
changed the title
dxtbx Beam.get_direction: proposed name change
Beam.get_direction: proposed name change
Apr 18, 2019
As originator, I'll take this on. |
dagewa
added a commit
that referenced
this issue
Jul 17, 2019
Beam.get_direction --> Beam.get_sample_to_source_direction. Fixes #6
dagewa
added a commit
to cctbx/cctbx_project
that referenced
this issue
Jul 17, 2019
dagewa
added a commit
to dials/dials
that referenced
this issue
Jul 17, 2019
dagewa
added a commit
to xia2/xia2
that referenced
this issue
Jul 17, 2019
This seems to be the only use of Beam.get_direction in xia2 (in dead code?)
dagewa
added a commit
that referenced
this issue
Sep 2, 2019
Beam.get_direction --> Beam.get_sample_to_source_direction. Fixes #6
dagewa
added a commit
that referenced
this issue
Sep 2, 2019
* Rename Beam.get_direction Beam.get_direction --> Beam.get_sample_to_source_direction. Fixes #6 * Inject deprecated get_direction method with a warning * Second attempt at injector * Update model/__init__.py Co-Authored-By: Markus Gerstel <2102431+Anthchirp@users.noreply.github.com>
dagewa
added a commit
to cctbx/cctbx_project
that referenced
this issue
Sep 2, 2019
dagewa
added a commit
to xia2/xia2
that referenced
this issue
Sep 2, 2019
This seems to be the only use of Beam.get_direction in xia2 (in dead code?)
dagewa
added a commit
to dials/dials
that referenced
this issue
Sep 2, 2019
rjgildea
pushed a commit
to dials/dials
that referenced
this issue
Sep 10, 2019
Anthchirp
added a commit
that referenced
this issue
Nov 13, 2019
* out= parameter removed for xparm_xds() * verbose= parameter removed for classes * FormatChecker * DataBlockTemplateImporter * DataBlockFilenameImporter * Beam.get_direction() removed (#6, #68) * ExperimentListDumper removed (#54) * Registry.lookup() removed (#34) * Registry.Registry removed (#34) * Add formal deprecation warning for the as_str= parameter in XDS_INP() (cf. b2533d5)
Anthchirp
added a commit
that referenced
this issue
Nov 19, 2019
* out= parameter removed for xparm_xds() * verbose= parameter removed for classes * FormatChecker * DataBlockTemplateImporter * DataBlockFilenameImporter * Beam.get_direction() removed (#6, #68) * ExperimentListDumper removed (#54) * Registry.lookup() removed (#34) * Registry.Registry removed (#34) * Add formal deprecation warning for the as_str= parameter in XDS_INP() (cf. b2533d5)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The dxtbx
Beam
class has a method calledBeam.get_direction
, but unfortunately this invites confusion. Without looking into the details ofBeam
, a developer might reasonably expect this to return a unit vector pointing in the direction of propagation of the beam. In fact, it returns the inverse of that, i.e. the sample-to-source direction (the methodBeam.get_unit_s0
does return what is expected). This trap has claimed at least one victim (cctbx/cctbx_project#133) and needs some care to disentangle.The imgCIF coordinate system describes this direction using the 'source axis'.
http://www.iucr.org/__data/iucr/cifdic_html/2/cif_img.dic/Caxis.html
Perhaps we could come up with a better method name that doesn't conceal an ambiguity. Maybe
Beam.get_unit_source_axis
orBeam.get_source_direction
?The text was updated successfully, but these errors were encountered: