sdss_install Reference¶
Main¶
-
class
sdss_install.main.
MyClass
(arg1, arg2, kwarg1='a')[source]¶ Bases:
object
A description of the class.
The top docstring in a class describes the class in general, and the parameters to be passed to the class
__init__
.Parameters: Variables: name (str) – A description of what names gives acces to.
-
sdss_install.main.
math
(arg1, arg2, arith_operator='+')[source]¶ Performs an arithmetic operation.
This function accepts to numbers and performs an arithmetic operation with them. The arithmetic operation can be passed as a string. By default, the addition operator is assumed.
Parameters: - arg1,arg2 (float) – The numbers that we will sub/subtract/multiply/divide.
- arith_operator ({'+', '-', '*', '/'}) – A string indicating the arithmetic operation to perform.
Returns: result (float) – The result of the arithmetic operation.
Example
>>> math(2, 2, arith_operator='*') >>> 4