Skip to content
Snippets Groups Projects
Commit 757aeade authored by Andre Sailer's avatar Andre Sailer
Browse files

DDSim.Gun: python3: fix problem with isotrop being set to False

this worked accidentally in python2, but now the dictionary order is fixed and isotrop was set to false when parsing the default values, because it happens after the setting of distribution now
parent df162424
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ class Gun(ConfigHelper): ...@@ -70,7 +70,7 @@ class Gun(ConfigHelper):
use the options phiMin, phiMax, thetaMin, and thetaMax to limit the range of randomly distributed directions use the options phiMin, phiMax, thetaMin, and thetaMax to limit the range of randomly distributed directions
if one of these options is not None the random distribution will be set to True and cannot be turned off! if one of these options is not None the random distribution will be set to True and cannot be turned off!
""" """
return self._isotrop return self._isotrop or bool(self._distribution)
@isotrop.setter @isotrop.setter
def isotrop(self, val): def isotrop(self, val):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment