Skip to content

Commit

Permalink
Added pftel decorators for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Oct 30, 2023
1 parent 73be10b commit 4abddb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dicom_repack.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from chris_plugin import chris_plugin, PathMapper
import pydicom as dicom
import os
__version__ = '1.1.0'
from pflog import pflog
__version__ = '1.1.2'

DISPLAY_TITLE = r"""
_ _ _ _
Expand Down Expand Up @@ -44,6 +45,10 @@
min_cpu_limit='4000m', # millicores, e.g. "1000m" = 1 CPU core
min_gpu_limit=0 # set min_gpu_limit=1 to enable GPU
)
@pflog.tel_logTime(
event = 'dicom_repack',
log = 'Repack slices of dicoms into one'
)
def main(options: Namespace, inputdir: Path, outputdir: Path):
"""
*ChRIS* plugins usually have two positional arguments: an **input directory** containing
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
chris_plugin==0.2.1
numpy
pydicom
pflog==1.2.26
pftel-client~=1.0.6

0 comments on commit 4abddb2

Please sign in to comment.