diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-10-19 15:51:09 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-10-19 15:51:09 +0800 |
commit | cd493835f55e37cebec275b26bccf5deaded6ea8 (patch) | |
tree | 3192d64fc4364ebf673a19a44f786bdf3d585de8 /fg21sim | |
parent | 4131f6f961ffb3c689d28791064fab53fc7495ff (diff) | |
download | fg21sim-cd493835f55e37cebec275b26bccf5deaded6ea8.tar.bz2 |
configs/manager.py: Update docstring and comment
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/configs/manager.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py index 3206c29..a023a38 100644 --- a/fg21sim/configs/manager.py +++ b/fg21sim/configs/manager.py @@ -244,13 +244,19 @@ class ConfigManager: @property def frequencies(self): - """Get (calculate if necessary) )the frequencies at which to - carry out the simulations. + """Get or calculate if ``frequency/type = custom`` the frequencies + where to perform the simulations. + + Returns + ------- + frequencies : list[float] + List of frequencies where the simulations are requested. """ if self.getn("frequency/type") == "custom": + # The value is validated to be a float list frequencies = self.getn("frequency/frequencies") else: - # calculate the frequency values + # Calculate the frequency values start = self.getn("frequency/start") stop = self.getn("frequency/stop") step = self.getn("frequency/step") |