Skip to content

Commit

Permalink
Merge branch 'master' into #77b
Browse files Browse the repository at this point in the history
  • Loading branch information
msimet committed Jun 19, 2018
2 parents 3630cc0 + 4b9938e commit b8a99d4
Show file tree
Hide file tree
Showing 2 changed files with 685 additions and 39 deletions.
9 changes: 4 additions & 5 deletions examples/example_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def main():
# run the test
results = sys_test(data, data2=data2, config=stile_args)

fig = sys_test.plot(results)
fig.savefig(sys_test.short_name+'.png')
#fig = sys_test.plot(results)
#fig.savefig(sys_test.short_name+'.png')

stile.WriteASCIITable('realshear.dat',results)
print "Done with unbinned systematics test"

# do with binning
data = dh.getData(data_ids[0],'galaxy lens','single','field','table')
# turns a list of binning schemes into a pseudo-nested list of single bins
Expand All @@ -38,7 +38,6 @@ def main():
for bin_list in expanded_bin_list:
bins_name = '-'.join([bl.short_name for bl in bin_list])
data2 = dh.getData(data_ids[1],'galaxy','single','field','table',bin_list=bin_list)

results = sys_test(data, data2=data2, config=stile_args)
stile.WriteASCIITable('realshear-'+bins_name+'.dat',results)
fig = sys_test.plot(results)
Expand All @@ -47,4 +46,4 @@ def main():

if __name__=='__main__':
main()

Loading

0 comments on commit b8a99d4

Please sign in to comment.