Commit 3b8b82f1 authored by Holger Niemann's avatar Holger Niemann
Browse files

Merge branch 'Holgers' into 'master'

update V3.0.1: extension of the heat flux upload to upload scene model reference also (untested)

See merge request holn/IR_data_access!19
parents c079451e 6a7b27cf
This diff is collapsed.
......@@ -950,7 +950,7 @@ def upload_images(images,time,group,stream,newversion=False,reason="",project="W
# archive.write_signals(images,time,group,project,names, datastream_name,units,metadata,2,True)
tmp=writeH5_images(datastream_name,images,time,swapping=swapping)
# uploadH5(group,datastream_name,tmp,True)
response=uploadH5_Versioning(group,datastream_name,tmp,version,True,project=project)
response=uploadH5_Versioning(group,datastream_name,tmp,version,True,project=project,Test=Test)
return response
except Exception as E:
print("Upload Failed")
......@@ -985,9 +985,12 @@ def uploadH5(group,stream, h5file, delete=False, timeout=None,project="W7X"):
# _sup.debug(result,3)
# return result
def uploadH5_Versioning(group,stream, h5file,version, delete=False, timeout=None,project="W7X"):
def uploadH5_Versioning(group,stream, h5file,version, delete=False, timeout=None,project="W7X",Test=False):
# path=Path, h5file=h5-file
base=archivepath+project+"/"#"http://archive-webapi/Test/raw/W7X/" #"http://sv-coda-wsvc-3/Test/raw/W7X/"#
if Test:
base="http://archive-webapi.ipp-hgw.mpg.de/Test/raw/"+project+"/"#"http://archive-webapi/Test/raw/W7X/" #"http://sv-coda-wsvc-3/Test/raw/W7X/"#
else:
base=archivepath+project+"/"#"http://archive-webapi/Test/raw/W7X/" #"http://sv-coda-wsvc-3/Test/raw/W7X/"#
#http://sv-coda-wsvc-3/Test/raw/W7X/QRT_IRCAM_TEST?dataPath=/data/AEF100_RAW_TEST2&timePath=/data/timestamps&versionNumber=1
try:
headers = {'Content-Type': 'application/x-hdf'}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment