'Server' is the MDSPlus server name, 'User' is the user name. Password-free access should be set up for this user..
 'Virtual name file' points to a file which translated virrtual signal names to MDSPlus entries. An example 
 is included. It should be in the working directory or the path should be added to the entry.
 'Cache data' can be set to True, in this case loaded MDSplus data will be stored locally in directory 
 'Cache directory'. When the same signal read next time it will be loaded automatically from this cache.
"""

import matplotlib.pyplot as plt
import os

import flap
import flap_mdsplus
import flap_w7x_mdsplus

flap_mdsplus.register()
flap_w7x_mdsplus.register()


def test_mdsplus(): 
    plt.close('all')
    print("**** Reading an explicit MDS signal.")
    flap.delete_data_object('*')
    try:
        # Explicit MDSPlus reference
       d=flap.get_data('W7X_MDSPlus',
                        name='\QMC::TOP.HARDWARE:ACQ132_168:CHANNELS:INPUT_03',
                        exp_id='20181018.003',
                        object_name='TEST_MDS'
                        )    
    except Exception as e:
示例#2
0
@author: mlampert
"""

import os
import copy

import flap
import flap_nstx
#from flap_nstx.analysis.nstx_gpi_tools import calculate_nstx_gpi_norm_coeff
#from flap_nstx.analysis.nstx_gpi_tools import calculate_nstx_gpi_reference

import flap_mdsplus

flap_nstx.register()
flap_mdsplus.register('NSTX_MDSPlus')

thisdir = os.path.dirname(os.path.realpath(__file__))
fn = os.path.join(thisdir, "flap_nstx.cfg")
flap.config.read(file_name=fn)

import matplotlib.style as pltstyle
import matplotlib.pyplot as plt
import numpy as np

publication = False

if publication:

    plt.rcParams['lines.linewidth'] = 4
    plt.rcParams['axes.linewidth'] = 4