Changeset 7f0c93f in sasview
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/cansas_reader.py
rcdfcfbd r7f0c93f 458 458 self.collimation.name = collimationData 459 459 460 if collimationTagName == "aperture":460 elif collimationTagName == "aperture": 461 461 for apertureNode in collimationNode: 462 462 apertureTagName = apertureNode.tag.replace(self.base_ns, "") … … 464 464 apertureData = apertureNode.text 465 465 466 if tagname == "distance":467 self.aperture.distance = apertureData468 self.aperture.distance_unit = apertureUnits469 470 if collimationTagName == "size":466 if apertureTagName == "distance": 467 self.aperture.distance = apertureData 468 self.aperture.distance_unit = apertureUnits 469 470 elif collimationTagName == "size": 471 471 for sizeNode in collimationNode: 472 472 sizeTagName = sizeNode.tag.replace(self.base_ns, "") … … 474 474 sizeData = sizeNode.text 475 475 476 if tagname == "x":477 self.aperture.size.x = sizeData478 self.collimation.size_unit = sizeUnits479 elif tagname == "y":480 self.aperture.size.y = sizeData481 self.collimation.size_unit = sizeUnits482 elif tagname == "z":483 self.aperture.size.z = sizeData484 self.collimation.size_unit = sizeUnits476 if sizeTagName == "x": 477 self.aperture.size.x = sizeData 478 self.collimation.size_unit = sizeUnits 479 elif sizeTagName == "y": 480 self.aperture.size.y = sizeData 481 self.collimation.size_unit = sizeUnits 482 elif sizeTagName == "z": 483 self.aperture.size.z = sizeData 484 self.collimation.size_unit = sizeUnits 485 485 486 486 self.current_datainfo.collimation.append(self.collimation)
Note: See TracChangeset
for help on using the changeset viewer.