h1. SPARE Calibrations {{>toc}} h2. Python scrip to build archives

import sys
import os
import shutil
import path
from glob import glob
from lfrcompliance.test_engine.testcontext import *
from lfrcompliance.test_engine.result_loader import *
OUTPUT_FOLDER="/run/media/jeandet/key64/OwnCloud/TESTS_LFR_SPARE_CALIBRATIONS/scripts/tests/inputs/"

files=glob.glob(OUTPUT_FOLDER+"/TF*.output")

os.chdir("/home/jeandet/Documents/temp")
for file in files:
    res=ResultLoader(file)
    if len(res.PacketsRecords):
        print(res.PacketsRecords)
        archive=os.path.basename(file).split('_')[0]
        print(os.path.basename(file).split('_')[0])
        os.mkdir(archive)
        shutil.copy(res.PacketsRecords[0],archive+"/")
        shutil.copy(file,archive+"/")
        print(os.system("tar cv  {} | 7z a -si -m0=LZMA2 -mx=9 -mmt=on -aoa -mfb=64 {}.tar.7z".format(archive,archive)))
        shutil.rmtree(archive)
h2. Transfer Function h3. 1) Transfer Functions @F0 For the whole test we will use the following parameters: * LFR mode= Normal Mode * ASM period = 4s * Snapshots period = 22s * Input signal amplitude 1.4Vp h4. a) Low Frequencies and FFT frequencies 7 frequencies: from 12Hz to 84Hz with ∆f = 12Hz 128 frequencies: from 96Hz to 12288Hz with ∆f = 96Hz {{collapse(View measurements...) table(){width: 90%;text-align: center;}. |_.Channels |_.Parameters |_.Curves |_.data | | B1 and B2|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 0 | | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1628/TF1aB1B2.tar.7z| |B2 and B3|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1630/TF1aB2B3.tar.7z| |B3 and BIAS1|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1632/TF1aB3BIAS1.tar.7z| |BIAS1 and BIAS2|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1633/TF1aBIAS1BIAS2.tar.7z| |BIAS2 and BIAS3|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1635/TF1aBIAS2BIAS3.tar.7z| |BIAS1 and BIAS4|BIAS Work = 1 R0=R1=R2 = 0 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1634/TF1aBIAS1BIAS4.tar.7z| |BIAS4 and BIAS5|BIAS Work = 1 R0=R1=R2 = 0 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1637/TF1aBIAS4BIAS5.tar.7z| |B1, B2, B3, BIAS1, BIAS2 (φ = 90°), BIAS3 (φ = 90°)|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 1| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1629/TF1aB1B2B3BIA1BIA290BIA390.tar.7z| |B1, B2, B3, VHF1, VHF2, VHF3|BIAS Work = 0 R0=R1=R2 = 1 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1701/TF1aB1B2B3V1V2V3.tar.7z| }} h4. b) Frequencies > F0/2 24 frequencies: from 13056Hz to 30720Hz with ∆f = 768Hz {{collapse(View measurements...) table(){width: 90%;text-align: center;}. |_.Channels |_.Parameters |_.Curves |_.data | |B1, B2, B3, BIAS1, BIAS2 and BIAS3| BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 0 | | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1636/TF1bB1B2B3BIAS1BIAS2BIAS3.tar.7z| |B1, B2, B3, BIAS1, BIAS4, BIAS5| BIAS Work = 1 R0=R1=R2 = 0 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1639/TF1bB1B2B3BIAS1BIAS4BIAS5.tar.7z| |B1, B2, B3, BIAS1, BIAS2 (φ = 90°) and BIAS3 (φ = 90°)| BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 1| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1640/TF1bB1B2B3BIAS1BIAS290BIAS390.tar.7z| |B1, B2, B3, VHF1, VHF2 and VHF3|BIAS Work = 0 R0=R1=R2 = 1 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1641/TF1bB1B2B3V1V2V3.tar.7z| |B1, B2, B3, VHF1, VHF2 (φ = 90°) and VHF3 (φ = 90°)|BIAS Work = 0 R0=R1=R2 = 1 SP0=SP1 = 1| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1638/TF1bB1B2B3V1V290V390.tar.7z| }} h3. 2) Transfer Functions @F1 h4. a) Low Frequencies * LFR mode= SBM1 * ASM period = 32s * Snapshots period = 32s * Input signal amplitude 3Vp * Step duration = 420s 10 frequencies: from 0.01Hz to 0.1Hz with ∆f = 0.01Hz {{collapse(View measurements...) table(){width: 90%;text-align: center;}. |_.Channels |_.Parameters |_.Curves |_.data | |B1, B2, B3, BIAS1, BIAS2 and BIAS3|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 0| | "Result files":https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/1642/TF2aB1B2B3BIAS1BIAS2BIAS3.tar.7z| |B1, B2, B3, BIAS1, BIAS4 and BIAS5|BIAS Work = 1 R0=R1=R2 = 0 SP0=SP1 = 0| | "Result files":MISSING| |B1, B2, B3, BIAS1, BIAS2 (φ = 90°) and BIAS3 (φ = 90°)|BIAS Work = 1 R0=R1=R2 = 1 SP0=SP1 = 1| | "Result files":MISSING| }} ---- ----