コード例 #1
0
ファイル: demo_simman.py プロジェクト: cprotopa/Initiatory
                # the regex, and variables matching the regex. 
s1.get(u'c1.C')

# filter options ##############################################################
# based on identity
s3 = s1.filter_similar('SID0002')
    # returns a new simdex with all simulations that have the same set of 
    # parameters (even if they have different values)

# based on parametervalues
fltr = {'c1.C':800}
s4 = s1.filter(fltr)

# add a paramter to the filter
fltr2 = {'newParameter' : ''}
s4 = s1.filter(fltr2)

# plotting
print s1.vardic
s3.plot('c1_T')
s3.scatterplot('c1_T', 'c2_T')

# saving a specific simdex
s2 = s1.filter(fltr)
s2.save('simdex2')



s = load_simdex('simdex2')
s.plot('c1_T')
コード例 #2
0
s1.exist('c2')  # returns a list with 2 lists by default: parameters matching
# the regex, and variables matching the regex.
s1.get(u'c1.C')

# filter options ##############################################################
# based on identity
s3 = s1.filter_similar('SID0002')
# returns a new simdex with all simulations that have the same set of
# parameters (even if they have different values)

# based on parametervalues
fltr = {'c1.C': 800}
s4 = s1.filter(fltr)

# add a paramter to the filter
fltr2 = {'newParameter': ''}
s4 = s1.filter(fltr2)

# plotting
print s1.vardic
s3.plot('c1_T')
s3.scatterplot('c1_T', 'c2_T')

# saving a specific simdex
s2 = s1.filter(fltr)
s2.save('simdex2')

s = load_simdex('simdex2')
s.plot('c1_T')