Skip to content
Snippets Groups Projects
Commit 80031cfd authored by I. Nüske's avatar I. Nüske
Browse files

MNT: Move attribute definitions into init

parent 433160cf
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!126Fix pylint errors
......@@ -170,6 +170,7 @@ class Crawler(object):
self.abort_on_exception = abort_on_exception
self.update_cache = UpdateCache()
self.filterKnown = SuppressKnown()
self.run_id = None
advancedtoolslogger = logging.getLogger("caosadvancedtools")
# TODO this seems to be a bad idea. What if the handler was not added
......
......@@ -31,6 +31,10 @@ class ExampleCFood(AbstractFileCFood):
return (r".*/(?P<species>[^/]+)/"
r"(?P<date>\d{4}-\d{2}-\d{2})/README.md")
def __init__(self, crawled_path, *args, **kwargs):
super().__init__(crawled_path, *args, **kwargs)
self.experiment = None
def create_identifiables(self):
self.experiment = db.Record()
self.experiment.add_parent(name="Experiment")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment