예제 #1
0
def test():
    # define measurement data file
    vftb_file = os.path.join(RockPy.test_data_path, 'vftb', 'MUCVFTB_test.coe')

    # create a sample
    sample = Sample(name='vftb_test_sample')

    # add measurement
    M = sample.add_measurement(mtype='backfield',
                               mfile=vftb_file,
                               machine='vftb',
                               suffix='test 1 none')

    sg = RockPy.SampleGroup(sample_list=sample)
    study = RockPy.Study(samplegroups=sg)
    # get bcr
    M.calculate_bcr(
    )  # prints the linear interpolation of the value (internal calculation)
    print 'bcr', M.bcr  # returns the calculated value
    print M.s300  # returns the S300 value
    M.calc_all()  # calculates all possible results using standard parameters
    print M.results  # returns the calculated value
    # rudimentary plot
    M.plt_backfield()
    sample.calc_all()
    print sample.results
예제 #2
0
def test():
    vftb_file = join(RockPy.test_data_path, 'MUCVFTB_test.hys')
    # vsm_file = join(RockPy.test_data_path, 'vsm', 'MUCVSM_test.hys')
    vsm_file = join(RockPy.test_data_path, 'vsm', 'LTPY_527,1a_HYS_VSM#XX[mg]___#TEMP_300_K#STD000.000')
    # sample = Sample(name='vftb_test_sample')
    sample2 = Sample(name='vsm_test_sample')

    # M = sample.add_measurement(mtype='hysteresis', mfile=vftb_file, machine='vftb')
    # print M.result_ms()
    # M.plt_hys()

    M = sample2.add_measurement(mtype='hysteresis', mfile=vsm_file, machine='vsm')

    M.calc_all()

    print M.results
    M.plt_hys()
예제 #3
0
def test():
    vftb_file = join(RockPy.test_data_path, 'MUCVFTB_test.hys')
    # vsm_file = join(RockPy.test_data_path, 'vsm', 'MUCVSM_test.hys')
    vsm_file = join(RockPy.test_data_path, 'vsm',
                    'LTPY_527,1a_HYS_VSM#XX[mg]___#TEMP_300_K#STD000.000')
    # sample = Sample(name='vftb_test_sample')
    sample2 = Sample(name='vsm_test_sample')

    # M = sample.add_measurement(mtype='hysteresis', mfile=vftb_file, machine='vftb')
    # print M.result_ms()
    # M.plt_hys()

    M = sample2.add_measurement(mtype='hysteresis',
                                mfile=vsm_file,
                                machine='vsm')

    M.calc_all()

    print M.results
    M.plt_hys()
예제 #4
0
def test():
    # define measurement data file
    vftb_file = os.path.join(RockPy.test_data_path, 'vftb', 'MUCVFTB_test.coe')

    # create a sample
    sample = Sample(name='vftb_test_sample')

    # add measurement
    M = sample.add_measurement(mtype='backfield', mfile=vftb_file, machine='vftb', suffix='test 1 none')


    sg = RockPy.SampleGroup(sample_list=sample)
    study = RockPy.Study(samplegroups=sg)
    # get bcr
    M.calculate_bcr()  # prints the linear interpolation of the value (internal calculation)
    print 'bcr', M.bcr  # returns the calculated value
    print M.s300  # returns the S300 value
    M.calc_all()  # calculates all possible results using standard parameters
    print M.results  # returns the calculated value
    # rudimentary plot
    M.plt_backfield()
    sample.calc_all()
    print sample.results
예제 #5
0
__author__ = 'wack'

'''
Tutorial to demonstrate functions and plots of directional (x,y,z) data
'''

import RockPy
from RockPy.Structure.sample import Sample
from RockPy.VisualizeV3 import Figure
from os.path import join

af_file = join(RockPy.test_data_path, 'MUCSUSH_af_test.af')

s = Sample("WURM")
afd = s.add_measurement(machine='sushibar', mtype='afdemag', mfile=af_file)


# do plotting stuff
fig = Figure()
h1 = fig.add_visual(visual='stereo', name='mystereo', plt_input=s)
#h1.remove_feature(features=['stereodir_lines'])

fig.show()
예제 #6
0
__author__ = 'wack'
'''
Tutorial to demonstrate functions and plots of directional (x,y,z) data
'''

import RockPy
from RockPy.Structure.sample import Sample
from RockPy.VisualizeV3 import Figure
from os.path import join

af_file = join(RockPy.test_data_path, 'MUCSUSH_af_test.af')

s = Sample("WURM")
afd = s.add_measurement(machine='sushibar', mtype='afdemag', mfile=af_file)

# do plotting stuff
fig = Figure()
h1 = fig.add_visual(visual='stereo', name='mystereo', plt_input=s)
#h1.remove_feature(features=['stereodir_lines'])

fig.show()