From b64b5d49584a0cab5909152c7c4415fc7b02fa44 Mon Sep 17 00:00:00 2001
From: Holger Niemann <holger.niemann@ipp.mpg.de>
Date: Fri, 10 Jul 2020 14:23:21 +0200
Subject: [PATCH] Bugfixes in download_peaking_factor and cosmetic for peakflux

---
 downloadversionIRdata.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/downloadversionIRdata.py b/downloadversionIRdata.py
index b67e7ec..13bab96 100644
--- a/downloadversionIRdata.py
+++ b/downloadversionIRdata.py
@@ -5710,7 +5710,7 @@ def __download_module_based_data__(kind, TMchadict, port, targetmodule=None,
         error: list
             a list of values, the error of each timepoint, values are in W            
     """
-    print(kind)
+    
     if kind in ["load","qpeak"]:
         if kind == "load":
             datcha_name = 'divertor_total_load'
@@ -5986,7 +5986,7 @@ def download_peaking_factor(typ="total", program=None, tstart=None,
         reference divertors: list, optional
             if return_used_divertors if True, it will return a list with the port numbers of the cameras            
     """
-    return __download_derived_data__(kind="qpeak",typ=typ,program=program,tstart=tstart,
+    return __download_derived_data__(kind="PF",typ=typ,program=program,tstart=tstart,
                               tend=tend,version=version,verbose=verbose,
                               request=request,return_used_divertors=return_used_divertors)
     
-- 
GitLab