class documentation

class COCOBBOBDataArchive(COCODataArchive):

Constructor: COCOBBOBDataArchive(local_path)

View In Hierarchy

list of archived data for the 'bbob' test suite.

To see the list of all data from 2009:

>>> import cocopp
>>> cocopp.archives.bbob.find("2009/")  # doctest:+ELLIPSIS,+SKIP,
['2009/ALPS...

To use the above list in main:

>>> cocopp.main(cocopp.archives.bbob.get_all("2009/")  # doctest:+SKIP

get_all downloads the data from the online archive if necessary. While the data are specific to the COCOBBOBDataArchive class, all functionality is inherited from the parent class COCODataArchive:

Inherited from COCODataArchive:

Static Method is_archive return True if folder contains a COCO archive definition file
Method __init__ Argument is a local path to the archive.
Method check_hash raise Exception when hashes disagree or file is missing.
Method consistency_check_data basic quick consistency check of downloaded data.
Method consistency_check_read check/compare against definition file on disk
Method contains return True if (the exact) name or path is in the archive
Method full_path return full local path of name or any path, idempotent
Method get return the full data pathname of substr in the archived data.
Method get_all Return a list (StrList) of absolute pathnames,
Method get_extended return a list of valid paths.
Method get_first get the first archived data matching all of substrs.
Method get_found get full entries of the last find
Method get_one deprecated, for backwards compatibility only, use get instead
Method read_definition_file return definition triple list
Method update update definition file, either from remote location or from local data.
Instance Variable local_data_path Undocumented
Instance Variable remote_data_path Undocumented
Property downloaded return list of data set names of locally available data.
Method _download create full local path and download single dataset
Method _hash compute hash of name or path
Method _known_hash return known hash or None
Method _name return supposed name of full_path or name without any checks
Method _name_with_check return name of full_path, idempotent.
Method _url_ return value of _url_ entry in definition_list file or None.
Instance Variable _all Undocumented
Instance Variable _all_dict Undocumented
Instance Variable _checked_consistency Undocumented
Instance Variable _names_found Undocumented
Instance Variable _print Undocumented
Instance Variable _redownload_if_changed Undocumented

Inherited from StrList (via COCODataArchive):

Method __call__ alias to find
Method find return entries that match all substrs.
Method find_indices same as find but returns indices instead of names
Method print print the result of find(*substrs) with indices.
Property as_string return space separated string concatenation surrounded by spaces.
Property found StrList of elements found during the last call to find.