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

fixed translation issue #1041

Merged
merged 2 commits into from
Oct 13, 2023
Merged

fixed translation issue #1041

merged 2 commits into from
Oct 13, 2023

Conversation

ggoneiESS
Copy link
Member

Issue

ECDC-3621: this branch fixes the first part of this issue, introduced in commit 7c1d072, preceeded by 5e89859 which works, https://github.com/ess-dmsc/nexus-constructor/compare/5e89859..7c1d072e and allows for further development in other related tickets. It does not fix and does PR does not aim to fix other issues raised in this ticket.

Description of work

component.py:90 contains an empty list, which does not have NoneType

There are many statements that utilise the stored_transforms variable which are (and the object itself checked) for None. We do not need to check for None (an empty object evaluates the same) but there are too many to be able to apply this 'better' fix as confidently as this one-line commit.

Acceptance Criteria

'Correctly'-functioning codebase

UI tests

No additional UI test has been included. User should test manually to add a component with a translation and see that the object moves immediately when a magnitude is assigned

Nominate for Group Code Review

  • Nominate for code review

@ggoneiESS ggoneiESS self-assigned this Oct 12, 2023
@ggoneiESS ggoneiESS requested a review from mattclarke October 12, 2023 16:41
@mattclarke mattclarke merged commit fd997d6 into main Oct 13, 2023
6 checks passed
@mattclarke mattclarke deleted the ECDC-3621-move-object branch October 13, 2023 08:10
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.

3 participants