Exemplo n.º 1
0
#-------------------------------------------------------------------------------
# Purpose: Example demonstrating how to setup the add noise pluging and
# add noise to simulated data
#
# Authors: Totte Karlsson ([email protected]), J Kyle Medley
#-------------------------------------------------------------------------------
from rrplugins import Plugin

modelPlugin = Plugin("tel_test_model")        
noisePlugin = Plugin("tel_add_noise")

#Generate internal test data
modelPlugin.execute()
test_data = modelPlugin.TestData
    
test_data.plot()
# Assign the dataseries to the plugin inputdata
noisePlugin.InputData = test_data

# Set parameter for the 'size' of the noise
noisePlugin.Sigma = 8.e-6

# Add the noise
noisePlugin.execute()

# Get the data to plot
noisePlugin.InputData.plot()            

#noisePlugin.viewManual()
print('Plugin version: {}'.format(noisePlugin.getVersion()))
Exemplo n.º 2
0
#-------------------------------------------------------------------------------
# Purpose: Example demonstrating how to setup and use the TestModel plugin
# This example also shows how to plot data and how to view a plugins
# embedded manual
#
# Authors: Totte Karlsson ([email protected]), J Kyle Medley
#-------------------------------------------------------------------------------
from rrplugins import Plugin

modelPlugin = Plugin("tel_test_model")

#Test model plugin depends on the add_noise plugin
noisePlugin = Plugin("tel_add_noise")

#Generate internal test data
modelPlugin.execute()
test_data = modelPlugin.TestData
test_data_with_noise = modelPlugin.TestDataWithNoise

test_data.plot()
test_data_with_noise.plot()

#modelPlugin.viewManual()
print('Plugin version: {}'.format(modelPlugin.getVersion()))
Exemplo n.º 3
0
#-------------------------------------------------------------------------------
# Purpose: Example demonstrating how to setup and use the TestModel plugin
# This example also shows how to plot data and how to view a plugins 
# embedded manual 
#
# Authors: Totte Karlsson ([email protected]), J Kyle Medley
#-------------------------------------------------------------------------------
from rrplugins import Plugin

modelPlugin = Plugin("tel_test_model")            

#Test model plugin depends on the add_noise plugin
noisePlugin = Plugin("tel_add_noise")

#Generate internal test data
modelPlugin.execute()
test_data = modelPlugin.TestData
test_data_with_noise = modelPlugin.TestDataWithNoise
    
test_data.plot()
test_data_with_noise.plot()
    
#modelPlugin.viewManual()   
print('Plugin version: {}'.format(modelPlugin.getVersion()))