<<<<<<< HEAD XX.06.2020: Update to V3.5.0 - add download maximum heat flux and wetted area 16.06.2020: Update to V3.4.1 - updated and improved documentation - include chache function and a request for all ports for heat flux and divertor load 08.02.2020: Update to V3.4.0 - Bugfix: download_images_by_times produzierte doppelte Werte im Zeit und Bildvektor - Bugfix: download divertor load gave print back that request was made, although no request was made (fixed) - Bugfix: correction of version bug from last commit and change of default value for the profile extraction functions to None - Readme added Update to V3.3.3: - added function for peaking factor and strike line width calculation in tools - bugfix: bug fix get_trigger_from_PID which caused an error in get_latest_version if it was used for non IR data Update to V3.3.2: - extended feedback for download_heatflux - changes of wetted area calculation - changes of wetted area calculation - bugfix: get_trigger_PID, get_finger and during import (see issues 6,7) Update to V3.3.1: - bugfix: FOV for AEF50 was not working correctly Update to V3.3.0: - IR_config_constants: added path to Test archive and use this variable in downloadversionIRdata when building an archive path - downloadversionIRdata: consistent use of testmode parameter - downloadversionIRdata: added testmode to all reading routines allowing reading from Test archive - IR_image_tools: no longer sets working directory to script file location - IR_config_constants: sets parameter_file_path as absolute path - downloadversionIRdata: new function get_trigger_from_PID() wraps get_program_from_PID() and allows getting timestamps for lab data - downloadversionIRdata: download_images_by_time_via_png() now uses nanosecond timestamps to call AKF_2.get_time_intervals() - downloadversionIRdata: disable DeprecationWarning in import of archivedb (timezone issue on Windows) - downloadversionIRdata: get_NUC_by_times() uses the reference cold frame in case no cold frame (NUC frame) was found for this time - downloadversionIRdata: unified use of stoptime instead of endtime - downloadversionIRdata: expanded testing sections (profile, coldframe, timestamps and scene model) Update to V3.2.5: - remove of old, not needed function and dependencies, update of download_background function Update to V3.2.4: - smaller bugfixes and setup.py got added Update to V3.2.3: - bugfix: finding right version for meta informations Update to V3.2.2: - bugfix: fix of paths due to movement of data from Test Archive to ArchiveDB; range overflow fix for calibration - fix: timeout, closing of connections - changes: modification of download_heatflux_mapping_reference(): - The points of the vertical target in 'X' and 'Y' get now shifted and rotated to appear on top of the horizontal target in order to avaoid overlap when plotting. - Added new boolean peremter 'get_thickness=False' triggers optional calculation of distance of profile points to adjacent profiles. This is used to derive a thickness of the profile at each point for integration of heat loads. - changes: systematically used named parameter instead of positional - changes: removed unecessary trigger call - changes: made get_calib() flexible for program/t0/t1 input - changes: fixes and improvements with portnr, T_version - changes: testmode=False is now default Update to V3.2.1: - bugfixes: (1) load request, (2) AEF50 data got nuced with 0, fixed 26.03.2019: Update to V3.2.0: - scne model download possible - scene model reference download possible for heat flux data - downsampled temperature image stream possible - extration of temperature profiles possible Update V3.1.2: - bugfix: versioning and smaller bugs Update V3.1.1: - bugfix: path building, versioning of raw data 22.01.2019: Update to V3.1.0: - Integrated load added as download function and new Data in ArchiveDB 27/28/29.11.2018: update to V3 - add file upload_heatflux.py - add plot_heatflux_example.py update downloadversionIRdata: - add functions download_heatflux_by_program,download_heatflux_by_times, download_heatflux_profile, extract_heatflux_profile_from_DL - rename download_raw_images_by_time_via_png into download_images_by_time_via_png update uploadversionIRdata: - add function write_H5_images, a new less ram intense version of write_H5 function for better image upload (specially heatflux) 26.09.2018: update downloadversionIRdata: - include FLIR into the downloadscript, Case1 (V2.8.0) 25.09.2018: update downloadversionIRdata: - improved performance (V2.7.1), implement switch between test and ArchiveDB (V2.7.0) 13.09.2018: update downloadversionIRdata: - bugfixes, verbose level passed now throw, V2.6.1 12.09.2018: update downloadversionIRdata: - ToDo list added - file added to create temperature HDF5 files 21.08.2018: update downloadversionIRdata: - remove dependency on readrestdb V2.6.0 - include version number, now 2.5.3 into the files - bug fixes for downloadversion IRdata - improvement of exception handling, replace some exception with warnings and improve error messages ======= 01.08.2017: changes in downloadversionIRdata: - OP1.2b version now online for upload and download of the IRdata >>>>>>> 868a427421003a9ced34cbbf3c17eadf42312057 03.11.2017: changes in downloadversionIRdata: - reduce blocks to 1 second, now editable over parameter intervalSize - include the reduce block size also in the temperature calculation to reduce memory problems 01.11.2017: bugfixes in downloadversionIRdata: - fixed: stepwise download of data in blocks of 2 seconds (used the wrong indices) - fixed: not find the infratecfilter - fixed: wrong time intervall for TC divertor data Versions: V3.5.0: download of wetted area, peak loads for different targets and V3.4.1: chaching functionality included, request for all cameras included + Bugfixes V3.3.0: code-cleaning, unification of variable names, new functions: get_trigger_from_PID, V3.2.0: download of scene models possible, temperature profiles can be extracted, downsampled temperature images available V3.1.0: add of divertor loads in the upload and the download V3.0.2: change the upload of heat flux from float64 to float32. extract profile accepts now also timewindows. V3.0.1: extension of the heat flux upload (scene model reference can be uploaded) V3.0.0: download and upload of heat flux data now also possible, the script creates a request+memory file for all heatflux request which point to a camera, program comibination which was not uploaded; in this way high requested heatflux data can be evaluated earlier if possible V2.9.7: bug fixes in the download for OP1.2a data, background download was broken V2.9.6: bug fixes for AEFXX, port and portnr was not used in the right way V2.9.5: bug fixes for AEFXX, wrong dictionaries was used, use the correct defintion of the paths for the download. V2.9.4: bug fixes for AEF50 download in OP1.2a (got trouble with the change to real Archive), fixes in the upload script to upload flir data and fix extra frames V2.9.3: bugfixes for FLIR, ArchiveDB is now used as default as download V2.9.2: bugfixes for AEF50 in the download V2.9.1: bugfixes for AEF50 V2.9.0: changed multiprocessing to multithreading, better performance, less archive calls V2.8.0: add FLIR camera into the downloadroutine, adapt the port interface, that it accept strings and numbers, numbers are automatically used for QRT V2.7.1: prove the temperature calculation, less ram usage V2.7.0: implement dependency on upload_config; switch between ArchiveDB and Test archive possible V2.6.1: bugfixes with verbose level V2.6.0: dependency on read_restdb removed V2.5.3: version number included; improved exception handeling V2.0.0: upgrade an changes to download OP1.2b data, changes of the method and what is stored V1.1.0: download of thermocouples implemented V1.0.0: download test of OP1.2a data