Skip to content

Organizations

Each camera trap campaign belongs to an organization. This could also be a specific location. The Organization of the chinko data is the Chinko National Park

Table Set Up

Column Name Content Type Unique Nullable Custom Constraints Linked Table
ID ID for entry Integer True False
Name name of organization or monitoring location String(100) True False

Functions

Test code for each function of the Organizations table is shown in Functions_Organizations.ipynb

In order to use the class functions, an instance of the class needs to be created

import T_Tables as tableClasses

#create class instance
Organizations = tableClasses.T_Organizations()

add

This function adds an organization to the database.

Organizations.add(name: str)

Parameters

  • name: name of organization

Returns

This function returns nothing.

delete

This function deletes a organization from the database. Note, that a organization cannot be deleted, if it has been referenced in Sessions.

Organizations.delete(name: str)

Parameters

  • name: name of organization

Returns

This function returns nothing.

get

This function gets all information for one organization.

Organizations.get(name: str)

Parameters

  • name: name of organization

Returns

This function returns a pd.dataframe with one row.

getAll

This function gets all information for a all organizations.

Organizations.getAll()

Parameters

This Function has no parameters.

Returns

This function returns a pd.dataframe with one row for each documented organization.