Closed thartbm closed 6 years ago
This is the error message:
Traceback (most recent call last): File "/home/marius/Science/PyVMEC/PyVMEC/GUI.py", line 612, in Run_Press self.experiment_run = exp.run_experiment_2(self.experiment_holder['settings']['fullscreen'], participant, self.experiment_holder) File "/home/marius/Science/PyVMEC/PyVMEC/Exp.py", line 738, in run_experiment_2 targetList = angle_split(running[i]['min_angle'], running[i]['max_angle'], running[i]['num_targets']) File "/home/marius/Science/PyVMEC/PyVMEC/Exp.py", line 182, in angle_split new_angle = min_angle + int(math.ceil(((float(max_angle) - float(min_angle))/(float(num_splits) - 1))))*i ZeroDivisionError: float division by zero Terminated
When only one target is picked, it should be the same as the lower bound for target angles, so you can use this formula for target angles on line 738:
targetList = arange(min_angle,max_angle+1,1.*(max_angle - min_angle)/max((num_targets-1),1))
Which requires that arange is imported from numpy. Not sure why you are doing stuff again on line 182...
arange
This is the error message:
When only one target is picked, it should be the same as the lower bound for target angles, so you can use this formula for target angles on line 738:
targetList = arange(min_angle,max_angle+1,1.*(max_angle - min_angle)/max((num_targets-1),1))
Which requires that
arange
is imported from numpy. Not sure why you are doing stuff again on line 182...