raise an error in precision class when no structure was selected