Changeset 4699761 in sasview for src/sas/sascalc
- Timestamp:
- Aug 11, 2016 8:21:59 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 348bc8b
- Parents:
- 9d17c1d (diff), 713cc1c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/sascalc
- Files:
-
- 9 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/calculator/BaseComponent.py
rcb4ef58 rdeddda1 7 7 # imports 8 8 import copy 9 from collections import OrderedDict 10 9 11 import numpy 10 12 #TO DO: that about a way to make the parameter … … 254 256 Return a list of all available parameters for the model 255 257 """ 256 list = self.params.keys()258 list = _ordered_keys(self.params) 257 259 # WARNING: Extending the list with the dispersion parameters 258 260 list.extend(self.getDispParamList()) … … 264 266 """ 265 267 list = [] 266 267 for item in self.dispersion.keys(): 268 for p in self.dispersion[item].keys(): 268 for item in _ordered_keys(self.dispersion): 269 for p in _ordered_keys(self.dispersion[item]): 269 270 if p not in ['type']: 270 271 list.append('%s.%s' % (item.lower(), p.lower())) … … 309 310 """ 310 311 raise ValueError, "Model operation are no longer supported" 312 313 314 def _ordered_keys(d): 315 keys = list(d.keys()) 316 if not isinstance(d, OrderedDict): 317 keys.sort() 318 return keys -
src/sas/sascalc/dataloader/readers/associations.py
rb699768 re5c09cf 92 92 import nexus_reader 93 93 import sesans_reader 94 import cansas_reader_HDF5 95 import anton_paar_saxs_reader 94 96 registry_function(sesans_reader) 95 97 registry_function(abs_reader) … … 102 104 #registry_function(tiff_reader) 103 105 registry_function(nexus_reader) 104 106 registry_function(cansas_reader_HDF5) 107 registry_function(anton_paar_saxs_reader) 105 108 return True -
src/sas/sascalc/dataloader/readers/cansas_reader.py
r83b6408 rfcba29a 957 957 written = written | self.write_node(pix, "z", item.pixel_size.z, 958 958 {"unit": item.pixel_size_unit}) 959 written = written | self.write_node(det, "slit_length",960 item.slit_length,961 {"unit": item.slit_length_unit})962 959 if written == True: 963 960 self.append(pix, det) 961 self.write_node(det, "slit_length", item.slit_length, 962 {"unit": item.slit_length_unit}) 963 964 964 965 965 def _write_process_notes(self, datainfo, entry_node):
Note: See TracChangeset
for help on using the changeset viewer.