From 5c0baa5e6cbc771a36c0337d64d52c344146fb14 Mon Sep 17 00:00:00 2001 From: jupfi Date: Sat, 2 Mar 2024 20:58:07 +0100 Subject: [PATCH] Fixed typo. --- src/nqr_blochsimulator/classes/simulation.py | 18 +++++++++--------- tests/simulation.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/nqr_blochsimulator/classes/simulation.py b/src/nqr_blochsimulator/classes/simulation.py index b86cf9e..d13073f 100644 --- a/src/nqr_blochsimulator/classes/simulation.py +++ b/src/nqr_blochsimulator/classes/simulation.py @@ -55,8 +55,8 @@ class Simulation: The diameter of the coil in meters. number_turns : float The number of turns of the coil. - q_factor_transmitt : float - The Q-factor of the transmitt path of the probe coil. + q_factor_transmit : float + The Q-factor of the transmit path of the probe coil. q_factor_receive : float The Q-factor of the receive path of the probe coil. power_amplifier_power : float @@ -85,7 +85,7 @@ class Simulation: self.length_coil = length_coil self.diameter_coil = diameter_coil self.number_turns = number_turns - self.q_factor_transmitt = q_factor_transmitt + self.q_factor_transmit = q_factor_transmit self.q_factor_receive = q_factor_receive self.power_amplifier_power = power_amplifier_power self.pulse = pulse @@ -422,13 +422,13 @@ class Simulation: self._number_turns = number_turns @property - def q_factor_transmitt(self) -> float: - """Q-factor of the transmitt path of the probe coil.""" - return self._q_factor_transmitt + def q_factor_transmtt(self) -> float: + """Q-factor of the transmit path of the probe coil.""" + return self._q_factor_transmit - @q_factor_transmitt.setter - def q_factor_transmitt(self, q_factor_transmitt): - self._q_factor_transmitt = q_factor_transmitt + @q_factor_transmit.setter + def q_factor_transmit(self, q_factor_transmit): + self._q_factor_transmit = q_factor_transmit @property def q_factor_receive(self) -> float: diff --git a/tests/simulation.py b/tests/simulation.py index eae4e8d..499482f 100644 --- a/tests/simulation.py +++ b/tests/simulation.py @@ -48,7 +48,7 @@ class TestSimulation(unittest.TestCase): length_coil=6e-3, diameter_coil=3e-3, number_turns=9, - q_factor_transmitt=100, + q_factor_transmit=100, q_factor_receive=100, power_amplifier_power=110, pulse=self.pulse,