Skip to content

Commit

Permalink
Merge pull request #2107 from kif/2106_gui
Browse files Browse the repository at this point in the history
Display method in the proper order
  • Loading branch information
kif authored Mar 20, 2024
2 parents 353398b + 8da0a58 commit ecbf413
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/pyFAI/app/calib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Project: Azimuthal integration
# https://github.com/silx-kit/pyFAI
#
# Copyright (C) 2017-2018 European Synchrotron Radiation Facility, Grenoble, France
# Copyright (C) 2017-2024 European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu)
#
Expand All @@ -28,7 +28,7 @@
__contact__ = "valentin.valls@esrf.eu"
__license__ = "MIT"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
__date__ = "06/09/2023"
__date__ = "19/03/2024"
__status__ = "production"

import os
Expand Down Expand Up @@ -185,9 +185,9 @@ def configure_parser_arguments(parser):
parser.add_argument("--free-rot2", dest="fix_rot2",
help="free the rot2 parameter. Default: Activated", default=None, action="store_false")
parser.add_argument("--fix-rot3", dest="fix_rot3",
help="fix the rot3 parameter", default=None, action="store_true")
help="fix the rot3 parameter. Default: Activated", default=True, action="store_true")
parser.add_argument("--free-rot3", dest="fix_rot3",
help="free the rot3 parameter. Default: Activated", default=None, action="store_false")
help="free the rot3 parameter", default=True, action="store_false")

parser.add_argument("--npt", dest="npt_1d",
help="Number of point in 1D integrated pattern, Default: 1024", type=int,
Expand Down
5 changes: 3 additions & 2 deletions src/pyFAI/gui/helper/RingCalibration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
# /*##########################################################################
#
# Copyright (C) 2016-2021 European Synchrotron Radiation Facility
# Copyright (C) 2016-2024 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -25,7 +25,7 @@

__authors__ = ["V. Valls"]
__license__ = "MIT"
__date__ = "26/08/2021"
__date__ = "19/03/2024"

import logging
import numpy
Expand Down Expand Up @@ -53,6 +53,7 @@ def __init__(self, *args, **kwargs):
_logger.debug("GeometryRefinementContext.__init__")
self.__geoRef = GeometryRefinement(*args, **kwargs)
fixed = pyFAI.utils.FixedParameters()
fixed.add("rot3")
fixed.add("wavelength")
self.__fixed = fixed

Expand Down
6 changes: 3 additions & 3 deletions src/pyFAI/gui/widgets/MethodLabel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
# /*##########################################################################
#
# Copyright (C) 2016-2018 European Synchrotron Radiation Facility
# Copyright (C) 2016-2024 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -25,7 +25,7 @@

__authors__ = ["V. Valls"]
__license__ = "MIT"
__date__ = "16/10/2020"
__date__ = "19/03/2024"

import logging
_logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -64,7 +64,7 @@ class MethodLabel(qt.QLabel):
def __init__(self, parent=None):
super(MethodLabel, self).__init__(parent)
self.__method = None
self.__labelTemplate = "{split} / {impl} / {algo}"
self.__labelTemplate = "{split} / {algo} / {impl}"
self.__availability = False
self.__updateFeedback()

Expand Down

0 comments on commit ecbf413

Please sign in to comment.