Project

General

Profile

Bug #1211

MapPyBeamMaker constant solenoid mode incorrectly throws an exception if bz < 0

Added by Rogers, Chris over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Simulation
Target version:
Start date:
22 January 2013
Due date:
% Done:

100%

Estimated time:
Workflow:
New Issue

Description

Line 218 of src/map/MapPyBeamMaker is:

            if k_s < 1e-9:
                raise ZeroDivisionError(\
                      "Cannot define constant_solenoid beam for "+\
                      "solenoid with 0. focussing strength")

but should be

            if abs(k_s) < 1e-9:
                raise ZeroDivisionError(\
                      "Cannot define constant_solenoid beam for "+\
                      "solenoid with 0. focussing strength")

Hang on, surely k_s depends on bz^2...

#1

Updated by Rogers, Chris over 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Fixed in r873

#2

Updated by Rogers, Chris over 8 years ago

  • Target version changed from Future MAUS release to MAUS-v0.4.3

Also available in: Atom PDF