fix: makes repr return actual name

This commit is contained in:
Deepak Mallubhotla 2022-04-30 11:45:24 -05:00
parent 7eba3311c7
commit 0f78c7c2db
Signed by: deepak
GPG Key ID: BEBAEBF28083E022

View File

@ -37,7 +37,7 @@ class SingleDipoleFixedMagnitudeModel(DipoleModel):
self.rng = numpy.random.default_rng()
def __repr__(self) -> str:
return f"FixedMagnitudeModel({self.xmin}, {self.xmax}, {self.ymin}, {self.ymax}, {self.zmin}, {self.zmax}, {self.pfixed})"
return f"SingleDipoleFixedMagnitudeModel({self.xmin}, {self.xmax}, {self.ymin}, {self.ymax}, {self.zmin}, {self.zmax}, {self.pfixed})"
def get_dipoles(
self, max_frequency: float, rng_to_use: numpy.random.Generator = None