Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
added extra metrics with apf 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dirodriguezm committed Oct 14, 2020
1 parent 375060c commit a992e6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ numpy
Cython
matplotlib
GPy
apf-base==1.0.0
apf-base==1.0.1
-e git+https://github.com/alercebroker/mhps.git#egg=mhps
-e git+https://github.com/alercebroker/db-plugins.git#egg=db-plugins
-e git+https://github.com/alercebroker/late_classifier.git#egg=late-classifier
Expand Down
6 changes: 6 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@

METRICS_CONFIG = {
"CLASS": "apf.metrics.KafkaMetricsProducer",
"EXTRA_METRICS": [
{"key": "candid", "format": lambda x: str(x)},
"oid",
{"key": "detections", "format": lambda x: len(x), "alias": "n_det"},
{"key": "non_detections", "format": lambda x: len(x), "alias": "n_non_det"}
],
"PARAMS": {
"PARAMS": {
"bootstrap.servers": os.environ["METRICS_HOST"],
Expand Down

0 comments on commit a992e6b

Please sign in to comment.