Isolated the magnetic moment section from the energy section, since runs without ISPIN will not have magnetic moments and will throw NoneType errors subtracting None minus None