Skip to content

Commit

Permalink
str
Browse files Browse the repository at this point in the history
  • Loading branch information
Rama Vasudevan committed Jun 21, 2024
1 parent f148d65 commit f8711e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SciFiReaders/readers/spectroscopy/neutron_reflectivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ def read(self):
"""
self.file_path = self._input_file_path
metadata, headings, data = self._read_data()

self.headings = headings
# create the sidpy dataset
data_set = Dataset.from_array(data[:,1], name='Neutron Reflectivity')

data_set.data_type = 'spectrum'
data_set.units = headings[1][1]
data_set.quantity = headings[1][0]
data_set.units = str(headings[1][1])
data_set.quantity = str(headings[1][0])

# set dimensions
data_set.set_dimension(0, Dimension(data[:,0], name=headings[0][0],
units = headings[0][1],
quantity=headings[0][0],
data_set.set_dimension(0, Dimension(data[:,0], name=str(headings[0][0]),
units = str(headings[0][1]),
quantity=str(headings[0][0]),
dimension_type='spectral'))

metadata['column_headings'] = headings
Expand Down

0 comments on commit f8711e1

Please sign in to comment.