Changeset dfcdbf8 in sasview for src/sas/sascalc/dataloader/readers
- Timestamp:
- Nov 1, 2018 2:23:18 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
- Children:
- 282bc3f
- Parents:
- 9f45f83
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py
rb204004 rdfcdbf8 172 172 # Top Level Meta Data 173 173 if key == u'definition': 174 self.current_datainfo.meta_data['reader'] = data_point 174 self.current_datainfo.meta_data['reader'] = data_set 175 break 175 176 # Run 176 177 elif key == u'run': 177 self.current_datainfo.run.append(data_ point)178 self.current_datainfo.run.append(data_set) 178 179 try: 179 180 run_name = h5attr(value, 'name') 180 run_dict = {data_ point: run_name}181 run_dict = {data_set: run_name} 181 182 self.current_datainfo.run_name = run_dict 182 183 except Exception: 183 184 pass 185 break 184 186 # Title 185 187 elif key == u'title': 186 self.current_datainfo.title = data_ point188 self.current_datainfo.title = data_set 187 189 # Note 188 190 elif key == u'SASnote': 189 self.current_datainfo.notes.append(data_point) 191 self.current_datainfo.notes.append(data_set) 192 break 190 193 # Sample Information 191 194 elif self.parent_class == u'SASsample': … … 619 622 raise TypeError 620 623 except TypeError: 621 iterable = iterable.split(",") 624 if isinstance(iterable, basestring): 625 iterable = iterable.split(",") 626 else: 627 iterable = [iterable] 622 628 return iterable 623 629
Note: See TracChangeset
for help on using the changeset viewer.