Skip to content
Snippets Groups Projects
Commit fcf4fceb authored by teresa.bister's avatar teresa.bister Committed by Teresa Karolin Bister
Browse files

[simulations] wording of Exception corrected

parent 7b774048
No related branches found
No related tags found
No related merge requests found
Pipeline #225492 passed
......@@ -195,7 +195,7 @@ class ObservedBound(BaseSimulation):
elif charge.size == self.ncrs:
self.crs['charge'] = np.tile(charge, self.nsets).reshape(self.shape)
else:
raise Exception("Shape of input energies not in format (nsets, ncrs).")
raise Exception("Shape of input charges not in format (nsets, ncrs).")
elif isinstance(charge, (float, np.float, int, np.int)):
self.crs['charge'] = charge
elif isinstance(charge, str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment