Skip to content

Commit

Permalink
use single quote to access property inside f string
Browse files Browse the repository at this point in the history
  • Loading branch information
RobBuchananCompPhys committed Feb 4, 2025
1 parent 4aa5918 commit b0a62b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MDANSE/Src/MDANSE/Mathematics/Signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ def __str__(self):
"""
string_representation = [
f"Trajectory filter of type {self.__class__.__name__} implemented with the following parameters:\n\n",
f" # sample_freq\n Reciprocal of the molecular dynamics time step, in picohertz\n {self.__dict__["_sample_freq"]}\n\n",
f" # freq_response (analog)\n N coefficients of analog filter transfer function, numerator and denominator (multiples of {Filter.S}^(N-n))\n {tuple(self.__dict__["_coeffs"].numerator), tuple(self.__dict__["_coeffs"].denominator)}\n\n",
f" # freq_response (digital)\n M coefficients of digital filter transfer function, numerator and denominator (multiples of {Filter.Z}^(-m))\n {tuple(self.__dict__["_coeffs"].numerator), tuple(self.__dict__["_coeffs"].denominator)}\n\n",
f" # sample_freq\n Reciprocal of the molecular dynamics time step, in picohertz\n {self.__dict__['_sample_freq']}\n\n",
f" # freq_response (analog)\n N coefficients of analog filter transfer function, numerator and denominator (multiples of {Filter.S}^(N-n))\n {tuple(self.__dict__['_coeffs'].numerator), tuple(self.__dict__['_coeffs'].denominator)}\n\n",
f" # freq_response (digital)\n M coefficients of digital filter transfer function, numerator and denominator (multiples of {Filter.Z}^(-m))\n {tuple(self.__dict__['_coeffs'].numerator), tuple(self.__dict__['_coeffs'].denominator)}\n\n",
]

self.attributes_to_string(string_representation)
Expand Down

0 comments on commit b0a62b9

Please sign in to comment.