Skip to content
Snippets Groups Projects
Commit 059a7b69 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

WIP: add priorities

parent d5320c4d
Branches
Tags
2 merge requests!39Release 0.4.0,!20created draft for generic analysis method
Pipeline #16457 passed
...@@ -42,7 +42,7 @@ logger = logging.getLogger(__name__) ...@@ -42,7 +42,7 @@ logger = logging.getLogger(__name__)
def main(args): def main(args):
# TODO can these checks be replaced by a more declaritive appoach? # TODO (maybe) can these checks be replaced by a more declaritive appoach?
try: try:
dataAnalysisRecord = db.Record(id=args.entityid).retrieve() dataAnalysisRecord = db.Record(id=args.entityid).retrieve()
except db.TransactionError: except db.TransactionError:
...@@ -75,7 +75,7 @@ def main(args): ...@@ -75,7 +75,7 @@ def main(args):
# ####################################################################### # # ####################################################################### #
# Insert the result plot # Insert the result plot
# TODO: how do we find a good file path?? # TODO (must): how do we find a good file path??
fig = db.File(file=filename, path="/uploaded/something/"+filename) fig = db.File(file=filename, path="/uploaded/something/"+filename)
fig.insert() fig.insert()
...@@ -88,18 +88,18 @@ def main(args): ...@@ -88,18 +88,18 @@ def main(args):
"mean_value", "mean_value",
mean, mean,
) )
# TODO this is not really meaningful since an uploaded file will always # TODO (maybe) this is not really meaningful since an uploaded file will always
# be different.... Compare checksums of files? # be different.... Compare checksums of files?
assure_property_is( assure_property_is(
dataAnalysisRecord, dataAnalysisRecord,
"result", "result",
fig.id, fig.id,
) )
# TODO what should be done with the old file? Removed if not referenced? # TODO (must) what should be done with the old file? Removed if not referenced?
# TODO inform about updates (reuse stuff from crawler.py?) # TODO (maybe) inform about updates (reuse stuff from crawler.py?)
# TODO sketch meaningful logging # TODO (must) sketch meaningful logging
# TODO how to send an email? # TODO (must) how to send an email?
def parse_args(): def parse_args():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment