ifs (class) ∞
-
class
ifs
(log, settings=False, pathToDataFile=False, version=False, catalogueName='', coordinateList=[], radiusArcsec=False)[source] ∞ Bases:
sherlock.imports._base_importer._base_importer
Importer for the Multi Unit Spectroscopic Explorer (MUSE) IFS galaxy catalogue stream
Key Arguments
log
– loggersettings
– the settings dictionary
Usage
To import the IFS catalogue stream into the sherlock-catalogues database, run the following:
from sherlock.imports import IFS
stream = IFS( log=log, settings=settings ) stream.ingest()
- abstract this module out into its own stand alone script - check sublime snippet exists
Methods
add_data_to_database_table
(dictList[, …])Import data in the list of dictionaries in the requested database table
ingest
()Import the IFS catalogue into the sherlock-catalogues database
-
add_data_to_database_table
(dictList, createStatement=False)[source] ∞ Import data in the list of dictionaries in the requested database table
Also adds HTMIDs and updates the sherlock-catalogue database helper table with the time-stamp of when the imported catlogue was last updated
Key Arguments
dictList
- a list of dictionaries containing all the rows in the catalogue to be importedcreateStatement
- the table’s mysql create statement (used to generate table if it does not yet exist in database). Default False
Usage
self.add_data_to_database_table( dictList=dictList, createStatement=createStatement )
- Write a checklist for creating a new sherlock database importer