-
Notifications
You must be signed in to change notification settings - Fork 57
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 #1076 from vasole/np2
[build] Get the code compile under numpy 2.0
- Loading branch information
Showing
3 changed files
with
15 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#/*########################################################################## | ||
# Copyright (C) 2004-2023 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. | ||
|
@@ -32,7 +32,7 @@ | |
This plugin also allows to apply the results from a file. | ||
""" | ||
__author__ = "V.A. Sole - ESRF Data Analysis" | ||
__author__ = "V.A. Sole - ESRF" | ||
__contact__ = "[email protected]" | ||
__license__ = "MIT" | ||
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" | ||
|
@@ -686,8 +686,8 @@ def initializeHDF5File(self, fname): | |
nxEntry = hdf.require_group(entryName) | ||
if 'NX_class' not in nxEntry.attrs: | ||
nxEntry.attrs['NX_class'] = 'NXentry'.encode('utf-8') | ||
nxEntry['title'] = numpy.string_("PyMca saved 3D Array".encode('utf-8')) | ||
nxEntry['start_time'] = numpy.string_(ArraySave.getDate().encode('utf-8')) | ||
nxEntry['title'] = numpy.bytes_("PyMca saved 3D Array".encode('utf-8')) | ||
nxEntry['start_time'] = numpy.bytes_(ArraySave.getDate().encode('utf-8')) | ||
|
||
alignmentGroup = nxEntry.require_group('Alignment') | ||
dataGroup = nxEntry.require_group('Data') | ||
|
@@ -697,7 +697,7 @@ def initializeHDF5File(self, fname): | |
def finishHDF5File(self, hdf): | ||
#add final date | ||
toplevelEntry = hdf["entry_000"] | ||
toplevelEntry['end_time'] = numpy.string_(ArraySave.getDate().encode('utf-8')) | ||
toplevelEntry['end_time'] = numpy.bytes_(ArraySave.getDate().encode('utf-8')) | ||
hdf.flush() | ||
hdf.close() | ||
|
||
|