Skip to content

Commit

Permalink
Updated np gwyddion.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BlytheDumerer committed Jun 17, 2024
1 parent 3f69848 commit 0534e26
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions SciFiReaders/readers/microscopy/spm/afm/gwyddion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -331,4 +333,4 @@ def _translate_volume(self, gwy_data, obj):


def _translate_xyz(self, gwy_data, obj):
return
return

0 comments on commit 0534e26

Please sign in to comment.