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:
  • arg1 (float) – The first argument.
  • arg2 (int) – The second argument.
  • kwarg1 (str) – A keyword argument.
Variables:

name (str) – A description of what names gives acces to.

do_something()[source]

A description of what this method does.

do_something_else(param)[source]

A description of what this method does.

If the class only has one or two arguments, you can describe them inline. param is the parameter that we use to do something else.

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