-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1077 from vasole/np2toml
Adapt pyproject.toml
- Loading branch information
Showing
25 changed files
with
97 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
# | ||
# The PyMca X-Ray Fluorescence Toolkit | ||
# | ||
# Copyright (c) 2004-2016 European Synchrotron Radiation Facility | ||
# Copyright (c) 2004-2024 European Synchrotron Radiation Facility | ||
# | ||
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at | ||
# the ESRF by the Software group. | ||
# the ESRF. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -26,7 +26,7 @@ | |
# THE SOFTWARE. | ||
# | ||
# ###########################################################################*/ | ||
__author__ = "T. Vincent - ESRF Data Analysis" | ||
__author__ = "T. Vincent - ESRF" | ||
__contact__ = "[email protected]" | ||
__license__ = "MIT" | ||
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" | ||
|
@@ -754,7 +754,11 @@ def setImage(self, image, origin=(0, 0), scale=(1., 1.), | |
self._imagePlot.removeImage(self._imageLegend, replot=False) | ||
return | ||
|
||
data = np.array(image, order='C', copy=copy) | ||
if copy: | ||
data = np.array(image, order='C', copy=True) | ||
else: | ||
data = np.asarray(image, order='C') | ||
|
||
assert data.size != 0 | ||
assert len(data.shape) == 2 | ||
height, width = data.shape | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#/*########################################################################## | ||
# Copyright (C) 2004-2015 V.A. Sole, European Synchrotron Radiation Facility | ||
# Copyright (C) 2004-2024 European Synchrotron Radiation Facility | ||
# | ||
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at | ||
# the ESRF by the Software group. | ||
# the ESRF. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -23,7 +23,7 @@ | |
# THE SOFTWARE. | ||
# | ||
#############################################################################*/ | ||
__author__ = "V.A. Sole - ESRF Data Analysis" | ||
__author__ = "V.A. Sole - ESRF" | ||
__contact__ = "[email protected]" | ||
__license__ = "MIT" | ||
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" | ||
|
@@ -87,7 +87,10 @@ def setSelectableItemList(self, items, labels=None, copy=True): | |
|
||
def addSelectableItem(self, item, label=None, copy=True): | ||
# we always keep a copy by default | ||
item = numpy.array(item, dtype=numpy.float32, copy=copy) | ||
if copy: | ||
item = numpy.array(item, dtype=numpy.float32, copy=True) | ||
else: | ||
item = numpy.asarray(item, dtype=numpy.float32) | ||
if label is None: | ||
label = "Unnamed 00" | ||
i = 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.