11# config.py - package defaults
22# RMM, 4 Nov 2012
33#
4- # TODO: add ability to read/write configuration files (ala Matplotlib )
4+ # TODO: add ability to read/write configuration files (ala matplotlib )
55
66"""Functions to access default parameter values.
77
@@ -133,7 +133,7 @@ def set_defaults(module, **keywords):
133133 defaults [module + '.' + key ] = val
134134
135135
136- # TODO: allow individual modules and individaul parameters to be reset
136+ # TODO: allow individual modules and individual parameters to be reset
137137def reset_defaults ():
138138 """Reset configuration values to their default (initial) values.
139139
@@ -207,7 +207,7 @@ def _get_param(module, param, argval=None, defval=None, pop=False, last=False):
207207 module : str
208208 Name of the module whose parameters are being requested.
209209 param : str
210- Name of the parameter value to be determeind .
210+ Name of the parameter value to be determined .
211211 argval : object or dict
212212 Value of the parameter as passed to the function. This can either be
213213 an object or a dictionary (i.e. the keyword list from the function
@@ -219,11 +219,11 @@ def _get_param(module, param, argval=None, defval=None, pop=False, last=False):
219219 None.
220220 pop : bool, optional
221221 If True and if argval is a dict, then pop the remove the parameter
222- entry from the argval dict after retreiving it. This allows the use
222+ entry from the argval dict after retrieving it. This allows the use
223223 of a keyword argument list to be passed through to other functions
224224 internal to the function being called.
225225 last : bool, optional
226- If True, check to make sure dictionary is empy after processing.
226+ If True, check to make sure dictionary is empty after processing.
227227
228228 """
229229
@@ -270,7 +270,7 @@ def use_matlab_defaults():
270270def use_fbs_defaults ():
271271 """Use Feedback Systems (FBS) compatible settings.
272272
273- The following conventions fomr `Feedback Systems <http://fbsbook.org>`_
273+ The following conventions from `Feedback Systems <http://fbsbook.org>`_
274274 are used:
275275
276276 * Bode plots plot gain in powers of ten, phase in degrees,
@@ -352,7 +352,7 @@ def use_legacy_defaults(version):
352352 # switched to 'array' as default for state space objects
353353 warnings .warn ("NumPy matrix class no longer supported" )
354354
355- # switched to 0 (=continuous) as default timestep
355+ # switched to 0 (=continuous) as default timebase
356356 set_defaults ('control' , default_dt = None )
357357
358358 # changed iosys naming conventions
@@ -388,7 +388,7 @@ def _process_legacy_keyword(kwargs, oldkey, newkey, newval, warn_oldkey=True):
388388 Parameters
389389 ----------
390390 kwargs : dict
391- Dictionary of keword arguments (from function call).
391+ Dictionary of keyword arguments (from function call).
392392 oldkey : str
393393 Old (legacy) parameter name.
394394 newkey : str
0 commit comments