From 0534e261f66e6d0082ffe2dfde41f56fa25c9768 Mon Sep 17 00:00:00 2001 From: BlytheDumerer <144613631+BlytheDumerer@users.noreply.github.com> Date: Mon, 17 Jun 2024 14:14:42 -0400 Subject: [PATCH] Updated np gwyddion.py --- SciFiReaders/readers/microscopy/spm/afm/gwyddion.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SciFiReaders/readers/microscopy/spm/afm/gwyddion.py b/SciFiReaders/readers/microscopy/spm/afm/gwyddion.py index 1441cd2..6839160 100644 --- a/SciFiReaders/readers/microscopy/spm/afm/gwyddion.py +++ b/SciFiReaders/readers/microscopy/spm/afm/gwyddion.py @@ -125,17 +125,19 @@ def gsf_read(self): data_set.data_type = 'Image' #Add quantity and units - data_set.units = metadata['ZUnits'] + data_set.units = "a.u" #metadata['ZUnits'] data_set.quantity = metadata['Title'] #Add dimension info data_set.set_dimension(0, sid.Dimension(np.linspace(0, metadata['XReal'], num_cols), name = 'x', - units=metadata['XYUnits'], quantity = 'x', + units= "a.u", #metadata['XYUnits'], + quantity = 'x', dimension_type='spatial')) data_set.set_dimension(1, sid.Dimension(np.linspace(0, metadata['YReal'], num_rows), name = 'y', - units=metadata['XYUnits'], quantity = 'y', + units="a.u", #metadata['XYUnits'], + quantity = 'y', dimension_type='spatial')) # append metadata @@ -331,4 +333,4 @@ def _translate_volume(self, gwy_data, obj): def _translate_xyz(self, gwy_data, obj): - return \ No newline at end of file + return