images (class) ∞
-
class
images
(log, dbConn, settings=False)[source] ∞ Bases:
marshallEngine.feeders.images.images
cacher for the useradded image stamps
Key Arguments
log
– loggersettings
– the settings dictionarydbConn
– the marshall database connection.
Usage
To setup your logger, settings and database connections, please use the
fundamentals
package (see tutorial here).To initiate a images object, use the following:
from marshallEngine.feeders.useradded import images cacher = images( log=log, settings=settings, dbConn=dbConn ).cache(limit=1000)
Methods
cache
([limit])cache the image for the requested survey
-
cache
(limit=1000)[source] ∞ cache the image for the requested survey
Key Arguments
limit
– limit the number of transients in the list so not to piss-off survey owners by downloading everything in one go.
Usage
from marshallEngine.feeders.panstarrs import images cacher = images( log=log, settings=settings, dbConn=dbConn ).cache(limit=1000)