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

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoneiESS committed Oct 13, 2023
1 parent 09c2d07 commit 7751656
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion nexus_constructor/field_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def __init__(
self.unit_validator = UnitValidator()
self.units_line_edit.setValidator(self.unit_validator)
self.units_line_edit.setMinimumWidth(20)
# self.units_line_edit.setMaximumWidth(50)
unit_size_policy = QSizePolicy()
unit_size_policy.setHorizontalPolicy(QSizePolicy.Preferred)
unit_size_policy.setHorizontalStretch(1)
Expand Down
7 changes: 1 addition & 6 deletions nexus_constructor/json/transformation_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
create_fw_module_object,
)
from nexus_constructor.model.transformation import Transformation
from nexus_constructor.model.value_type import VALUE_TYPE_TO_NP, ValueTypes
from nexus_constructor.model.value_type import VALUE_TYPE_TO_NP
from nexus_constructor.transformations_list import TransformationsList

TRANSFORMATION_MAP = {
Expand Down Expand Up @@ -342,11 +342,6 @@ def _create_transformations(self, json_transformations: list):
values=values,
offset_vector=QVector3D(*offset_vector),
)
# offset = self._find_attribute_in_list(CommonAttrs.OFFSET, name, attributes)
# if offset:
# transform.attributes.set_attribute_value(
# CommonAttrs.OFFSET, offset, ValueTypes.FLOAT
# )
if depends_on not in DEPENDS_ON_IGNORE:
depends_on_id = TransformId(
*get_component_and_transform_name(depends_on)
Expand Down
7 changes: 0 additions & 7 deletions ui/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,10 @@ def setup_ui(self, transformation):

self.ui_placeholder_layout = QVBoxLayout()

# self.offset_box = QDoubleSpinBox(transformation)
# self.offset_box.setToolTip("Offset to the transformation.")
# self.offset_box.setMinimumWidth(100)
# self.offset_box.setMinimum(-1000)
# self.offset_box.setDecimals(5)
offset_font = QFont()
offset_font.setBold(True)
self.offset_label = QLabel("Offset")
self.offset_label.setFont(offset_font)
# self.ui_placeholder_layout.addWidget(self.offset_label)
# self.ui_placeholder_layout.addWidget(self.offset_box)

self.depends_on_text_box = QLineEdit(transformation)
self.depends_on_text_box.setToolTip("depends_on for transformation.")
Expand Down

0 comments on commit 7751656

Please sign in to comment.