Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

ECDC-3526-NXtransformations_offsets #1042

Merged
merged 43 commits into from
Oct 25, 2023
Merged

Conversation

ggoneiESS
Copy link
Member

Issue

This fixes the main part of ticket ECDC-3526, transforming offset into a three-valued vector that is used properly for rotations and translations. It also fixes the GUI to remove some superfluous boxes for the magnitude.

Outstanding from the PR is the smaller issues described in the ticket. This will be pushed into another

Description of work

The offset is used at multiple points as a single-valued point that 'adds on' to whatever the magnitude is. This is incorrect and so the maths has been cleared up. More detailed information for this can be found in the ticket.

Acceptance Criteria

Existing JSON test files may no longer work due to the offset change being altered. Instead a simple component should be made and the effect of application of different offsets, vectors, and magnitudes, should be tested until the satisfaction of the reviewer.

UI tests

N/A

Nominate for Group Code Review

  • Nominate for code review

@ggoneiESS ggoneiESS self-assigned this Oct 13, 2023
@ggoneiESS ggoneiESS requested a review from danesss October 13, 2023 12:06
@ggoneiESS ggoneiESS marked this pull request as draft October 13, 2023 12:12
Copy link
Contributor

@danesss danesss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea looks good. 👍
I left a few comments and a couple of things that probably need fixing.

Unless you want specific input during the process, in general I think it is best to ask for a review when you have finished making changes and tests are passing. Otherwise we are reviewing changes but we don't know if they work or need further changes. If changes are needed, we have to repeat the review which is a duplication of work 😄

nexus_constructor/json/transformation_reader.py Outdated Show resolved Hide resolved
nexus_constructor/model/component.py Outdated Show resolved Hide resolved
nexus_constructor/model/component.py Outdated Show resolved Hide resolved
nexus_constructor/model/component.py Outdated Show resolved Hide resolved
nexus_constructor/model/transformation.py Show resolved Hide resolved
nexus_constructor/model/transformation.py Show resolved Hide resolved
nexus_constructor/transformation_view.py Outdated Show resolved Hide resolved
tests/model/test_transformations.py Show resolved Hide resolved
tests/model/test_transformations.py Outdated Show resolved Hide resolved
ui/transformation.py Outdated Show resolved Hide resolved
@ggoneiESS ggoneiESS marked this pull request as ready for review October 16, 2023 07:07
Copy link
Contributor

@danesss danesss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!
I've spotted a couple of things but it looks fine otherwise.
It seems that changing offset_units does not have any effect, maybe we are missing a test for that.

nexus_constructor/model/transformation.py Show resolved Hide resolved
nexus_constructor/model/component.py Outdated Show resolved Hide resolved
nexus_constructor/model/component.py Outdated Show resolved Hide resolved
nexus_constructor/model/transformation.py Outdated Show resolved Hide resolved
ui/transformation.py Outdated Show resolved Hide resolved
ui_tests/test_ui_transformation_view.py Outdated Show resolved Hide resolved
ui_tests/test_ui_transformation_view.py Outdated Show resolved Hide resolved
ui_tests/test_ui_transformation_view.py Show resolved Hide resolved
ui_tests/test_ui_transformation_view.py Outdated Show resolved Hide resolved
@ggoneiESS ggoneiESS merged commit 1f17028 into main Oct 25, 2023
6 checks passed
@ggoneiESS ggoneiESS deleted the ECDC-3526-NXtransformations_offsets branch October 25, 2023 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants