Repository 'muspinsim_plot'
hg clone https://toolshed.g2.bx.psu.edu/repos/muon-spectroscopy-computational-project/muspinsim_plot

Changeset 0:89ae4a5724a5 (2022-08-25)
Next changeset 1:193ed5c2d443 (2022-09-15)
Commit message:
planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/muspinsim_plot commit d130cf2c46d933fa9d0214ddbd5ddf860f322dc4
added:
generate_plot.py
muspinsim_plot.xml
test-data/experiment.dat
test-data/fitting.dat
test-data/fitting_example.pdf
test-data/high_T.dat
test-data/low_T.dat
test-data/temp_example.png
b
diff -r 000000000000 -r 89ae4a5724a5 generate_plot.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/generate_plot.py Thu Aug 25 16:17:15 2022 +0000
[
@@ -0,0 +1,46 @@
+import json
+import sys
+
+import matplotlib.pyplot as plt
+
+import numpy as np
+
+
+def main():
+    input_json_path = sys.argv[1]
+
+    plot_params = json.load(open(input_json_path, "r"))
+
+    for series in plot_params["mu_out_series"]:
+        mu_data = np.loadtxt(series['mu_data'], usecols=(0, 1))
+        x, y = mu_data.T
+        {
+            'line': lambda x, y, label, c, args:
+                plt.plot(x, y,
+                         label=label,
+                         c=c,
+                         ls=args['linestyle'],
+                         lw=args['linewidth']
+                         ),
+            'points': lambda x, y, label, c, args:
+                plt.scatter(x, y,
+                            label=label,
+                            c=c,
+                            s=args['pointscale'],
+                            marker=args['pointstyle'],
+                            )
+        }.get(series['series_type']['type'])(
+            x, y, series['mu_label'], series['colour'], series['series_type']
+        )
+
+    plt.xlabel(plot_params['xlab'])
+    plt.ylabel(plot_params['ylab'])
+    plt.title(plot_params['title'])
+    plt.legend(loc="upper right")
+
+    outfile = "outfile.{}".format(plot_params['out_file_type'])
+    plt.savefig(outfile, format=plot_params['out_file_type'])
+
+
+if __name__ == '__main__':
+    main()
b
diff -r 000000000000 -r 89ae4a5724a5 muspinsim_plot.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/muspinsim_plot.xml Thu Aug 25 16:17:15 2022 +0000
[
@@ -0,0 +1,162 @@
+<tool id="muspinsim_plot" name="MuSpinSim Plot" version="@TOOL_VERSION@+galaxy@WRAPPER_VERSION@" python_template_version="3.5" profile="22.01">
+    <macros>
+        <!-- version of underlying tool (PEP 440) -->
+        <token name="@TOOL_VERSION@">3.5.1</token>
+        <!-- version of this tool wrapper (integer) -->
+        <token name="@WRAPPER_VERSION@">0</token>
+        <!-- citation should be updated with every underlying tool version -->
+        <!-- typical fields to update are version, month, year, and doi -->
+        <token name="@TOOL_CITATION@">
+            @article{Hunter:2007,
+                author = {Hunter, J. D.},
+                title = {Matplotlib: A 2D graphics environment},
+                journal = {Computing in Science &amp; Engineering},
+                volume = {9},
+                number = {3},
+                pages = {90--95},
+                abstract = {Matplotlib is a 2D graphics package used for Python for
+                      application development, interactive scripting, and publication-quality
+                      image generation across user interfaces and operating systems.},
+                      publisher = {IEEE COMPUTER SOC},
+                doi = {10.1109/MCSE.2007.55},
+                year = {2007}
+            }
+        </token>
+    </macros>
+    <creator>
+        <person givenName="Anish" familyName="Mudaraddi" identifier="https://orcid.org/0000-0002-2135-2705"/>
+        <person givenName="Eli" familyName="Chadwick" url="https://github.com/elichad" identifier="https://orcid.org/0000-0002-0035-6475"/>
+        <organization url="https://muon-spectroscopy-computational-project.github.io/index.html" name="The Muon Spectroscopy Computational Project"/>
+    </creator>
+    <requirements>
+        <requirement type="package" version="@TOOL_VERSION@">matplotlib</requirement>
+    </requirements>
+    <command detect_errors="exit_code"><![CDATA[
+       python ${__tool_directory__}/generate_plot.py inputs.json
+    ]]></command>
+    <configfiles>
+        <inputs name="inputs" data_style="paths" filename="inputs.json"/>
+    </configfiles>
+    <inputs>
+        <param type="text" name="title" label="Plot Title" value=""/>
+        <param type="text" name="xlab" label="Label for x axis" value=""/>
+        <param type="text" name="ylab" label="Label for y axis" value=""/>
+        <param name="out_file_type" type="select" label="Output File Type">
+            <option value="pdf">PDF</option>
+            <option value="png">PNG</option>
+        </param>
+        <repeat name="mu_out_series" title="Muspinsim File Series">
+            <param type="data" name="mu_data" format="txt" label="Muspinsim Experiment Data (.dat)"/>
+            <param type="text" name="mu_label" optional="true" label="Muspinsim Experiment Label" value="" help="Label to use for this series in the plot legend."/>
+            <param type="select" name="colour" label="Line/Point Color">
+                <option value="k">Black</option>
+                <option value="r">Red</option>
+                <option value="g">Green</option>
+                <option value="b">Blue</option>
+            </param>
+            <conditional name="series_type">
+                <param type="select" name="type" label="Series Type">
+                    <option value="line">Line</option>
+                    <option value="points">Points</option>
+                </param>
+                <when value="line">
+                    <param type="select" name="linestyle" label="Line type">
+                        <option value="solid">Solid</option>
+                        <option value="dashed">Dashed</option>
+                        <option value="dotted">Dotted</option>
+                    </param>
+                    <param type="float" name="linewidth" label="Line width" value="1.0"/>
+                </when>
+                <when value="points">
+                    <param type="select" name="pointstyle" label="Point Type">
+                        <option value="s">Square</option>
+                        <option value="o">Circle</option>
+                    </param>
+                    <param type="float" name="pointscale" label="Point Scale" value="1.0"/>
+                </when>
+            </conditional>
+        </repeat>
+    </inputs>
+    <outputs>
+        <data format="pdf" name="out_file_pdf" from_work_dir="outfile.pdf">
+            <filter>(out_file_type == 'pdf')</filter>
+        </data>
+        <data format="png" name="out_file_png" from_work_dir="outfile.png">
+            <filter>(out_file_type == 'png')</filter>
+        </data>
+    </outputs>
+    <tests>
+        <test>
+            <param name="title" value="Temperature Example"/>
+            <param name="xlab" value="Time"/>
+            <param name="ylab" value="Asymmetry"/>
+            <param name="out_file_type" value="png"/>
+            <param name="mu_data" value="high_T.dat" ftype="txt"/>
+            <param name="mu_label" value="High T limit"/>
+            <param name="type" value="points"/>
+            <param name="pointstyle" value="s"/>
+            <param name="colour" value="r"/>
+            <param name="pointscale" value="2.0"/>
+            <param name="mu_data" value="low_T.dat" ftype="txt"/>
+            <param name="mu_label" value="T=1 K"/>
+            <param name="type" value="line"/>
+            <param name="linestyle" value="solid"/>
+            <param name="colour" value="k"/>
+            <param name="linewidth" value="1.0"/>
+            <output name="out_file_png" ftype="png">
+                <assert_contents>
+                    <has_size value="52486" delta="20"/>
+                </assert_contents>
+            </output>
+        </test>
+        <test>
+            <param name="title" value="Fitting Example"/>
+            <param name="xlab" value="Time"/>
+            <param name="ylab" value="Asymmetry"/>
+            <param name="out_file_type" value="pdf"/>
+            <param name="mu_data" value="experiment.dat" ftype="txt"/>
+            <param name="mu_label" value="Data"/>
+            <param name="type" value="points"/>
+            <param name="pointstyle" value="o"/>
+            <param name="pointscale" value="3.0"/>
+            <param name="colour" value="b"/>
+            <param name="mu_data" value="fitting.dat" ftype="txt"/>
+            <param name="mu_label" value="Fitting"/>
+            <param name="type" value="line"/>
+            <param name="linestyle" value="solid"/>
+            <param name="colour" value="b"/>
+            <param name="linewidth" value="1.0"/>
+            <output name="out_file_pdf" ftype="pdf">
+                <assert_contents>
+                    <has_size value="14785" delta="20"/>
+                </assert_contents>
+            </output>
+        </test>
+    </tests>
+    <help><![CDATA[
+        This tool allows you to plot values generated from muspinsim using Matplotlib.
+
+
+        You can plot them as points or as lines.
+
+
+        You can overlay multiple plots on top of each other by providing more than one data file.
+    ]]></help>
+    <citations>
+        <citation type="bibtex">
+            @TOOL_CITATION@
+        </citation>
+        <citation type="bibtex">
+            @software{muspinsim,
+                author = {Sturniolo, Simone and Liborio, Leandro and Owen, Josh and Mudaraddi, Anish and {Muon Spectroscopy Computational Project}},
+                license = {MIT},
+                title = {{muspinsim}},
+                url = {https://github.com/muon-spectroscopy-computational-project/muspinsim},
+                version = {v1.1.0},
+                month = {5},
+                year = {2022},
+                doi = {10.5281/zenodo.6563074}
+            }
+        </citation>
+    </citations>
+</tool>
b
diff -r 000000000000 -r 89ae4a5724a5 test-data/experiment.dat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/experiment.dat Thu Aug 25 16:17:15 2022 +0000
b
@@ -0,0 +1,100 @@
+0.000000000000000000e+00 5.005778399056657335e-01
+1.010101010101010187e-02 4.913142788391854365e-01
+2.020202020202020374e-02 4.625960774510225471e-01
+3.030303030303030387e-02 4.529727926470791810e-01
+4.040404040404040747e-02 4.201084135897126814e-01
+5.050505050505051108e-02 4.102951709644535039e-01
+6.060606060606060774e-02 3.943894674205472572e-01
+7.070707070707071829e-02 3.614924122022374342e-01
+8.080808080808081495e-02 3.335847485026482429e-01
+9.090909090909091161e-02 3.242904460614065565e-01
+1.010101010101010222e-01 2.947929241310389692e-01
+1.111111111111111188e-01 2.682338522764465272e-01
+1.212121212121212155e-01 2.499741447755643442e-01
+1.313131313131313260e-01 2.246842301024072619e-01
+1.414141414141414366e-01 2.054104137278633946e-01
+1.515151515151515194e-01 1.768606299542749838e-01
+1.616161616161616299e-01 1.571509466787300857e-01
+1.717171717171717404e-01 1.394992240477620771e-01
+1.818181818181818232e-01 1.208113647730562346e-01
+1.919191919191919338e-01 1.017481842913812301e-01
+2.020202020202020443e-01 7.761142858360846331e-02
+2.121212121212121271e-01 6.410013091446019329e-02
+2.222222222222222376e-01 3.975386175726899896e-02
+2.323232323232323482e-01 3.086974922326143900e-02
+2.424242424242424310e-01 9.161408771163311385e-03
+2.525252525252525415e-01 1.811618271503247918e-04
+2.626262626262626521e-01 -1.089231689057572859e-02
+2.727272727272727626e-01 -3.611410137367911805e-02
+2.828282828282828731e-01 -3.557403264203266163e-02
+2.929292929292929282e-01 -5.588252839143523915e-02
+3.030303030303030387e-01 -6.945501206777640602e-02
+3.131313131313131493e-01 -7.692369898000279982e-02
+3.232323232323232598e-01 -7.946056687665294105e-02
+3.333333333333333703e-01 -9.984630003175595792e-02
+3.434343434343434809e-01 -1.020561962196687433e-01
+3.535353535353535914e-01 -1.069392030325375526e-01
+3.636363636363636465e-01 -1.065046222388759123e-01
+3.737373737373737570e-01 -1.060773110739133829e-01
+3.838383838383838675e-01 -1.092459029307878832e-01
+3.939393939393939781e-01 -1.187956683377280886e-01
+4.040404040404040886e-01 -1.183132275072764639e-01
+4.141414141414141992e-01 -1.185330168454333671e-01
+4.242424242424242542e-01 -1.153280705718302129e-01
+4.343434343434343647e-01 -1.157561208782836026e-01
+4.444444444444444753e-01 -1.162230945056748066e-01
+4.545454545454545858e-01 -1.315728791918377716e-01
+4.646464646464646964e-01 -1.255221411056274550e-01
+4.747474747474748069e-01 -1.248741562875286121e-01
+4.848484848484848619e-01 -1.143533874693516555e-01
+4.949494949494949725e-01 -1.227202033240224754e-01
+5.050505050505050830e-01 -1.037750048493010224e-01
+5.151515151515152491e-01 -1.111183392954656207e-01
+5.252525252525253041e-01 -1.034044696616238934e-01
+5.353535353535353591e-01 -1.038026012968156359e-01
+5.454545454545455252e-01 -9.333574543107070465e-02
+5.555555555555555802e-01 -8.119043575888182374e-02
+5.656565656565657463e-01 -8.780715526363727652e-02
+5.757575757575758013e-01 -8.678757402752533545e-02
+5.858585858585858563e-01 -6.561193781199284314e-02
+5.959595959595960224e-01 -7.819537284931875332e-02
+6.060606060606060774e-01 -5.943809785495194481e-02
+6.161616161616162435e-01 -5.661945047010875920e-02
+6.262626262626262985e-01 -5.050281252925081094e-02
+6.363636363636364646e-01 -5.175403740852566048e-02
+6.464646464646465196e-01 -4.872824696376772818e-02
+6.565656565656565746e-01 -3.819216445914729030e-02
+6.666666666666667407e-01 -3.687545675512928639e-02
+6.767676767676767957e-01 -3.686197477560970714e-02
+6.868686868686869618e-01 -3.003067438142277903e-02
+6.969696969696970168e-01 -1.658939118843251806e-02
+7.070707070707071829e-01 -2.419886325838571661e-02
+7.171717171717172379e-01 -1.749710923657482944e-02
+7.272727272727272929e-01 -4.515936967325259732e-03
+7.373737373737374590e-01 -7.209833178823250172e-03
+7.474747474747475140e-01 -5.996664146736436010e-03
+7.575757575757576801e-01 4.146914696571531167e-03
+7.676767676767677351e-01 1.085995026796996235e-02
+7.777777777777777901e-01 1.122574572656667886e-02
+7.878787878787879562e-01 4.797691564737849995e-03
+7.979797979797980112e-01 1.160846007642780779e-02
+8.080808080808081773e-01 2.492767767864879913e-02
+8.181818181818182323e-01 1.437525093680377952e-02
+8.282828282828283983e-01 1.743612669587774056e-02
+8.383838383838384534e-01 1.966626934151189873e-02
+8.484848484848485084e-01 1.296194227363287738e-02
+8.585858585858586745e-01 3.349420140461304568e-02
+8.686868686868687295e-01 2.032633571368781811e-02
+8.787878787878788955e-01 3.197523032500756285e-02
+8.888888888888889506e-01 2.197314183479991481e-02
+8.989898989898991166e-01 3.365403812295356123e-02
+9.090909090909091717e-01 2.979919581225816752e-02
+9.191919191919192267e-01 2.304239947081147127e-02
+9.292929292929293927e-01 2.497743178699073086e-02
+9.393939393939394478e-01 2.961947122261034820e-02
+9.494949494949496138e-01 1.826282252184947136e-02
+9.595959595959596689e-01 2.396972947884037919e-02
+9.696969696969697239e-01 2.651899324456775606e-02
+9.797979797979798899e-01 2.162884710493336027e-02
+9.898989898989899450e-01 3.167384830249942579e-02
+1.000000000000000000e+00 2.097011271926497306e-02
b
diff -r 000000000000 -r 89ae4a5724a5 test-data/fitting.dat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/fitting.dat Thu Aug 25 16:17:15 2022 +0000
b
@@ -0,0 +1,104 @@
+# MUSPINSIM v.1.0.3
+# Output file written on Fri Apr  1 14:57:50 2022
+# Parameters used:
+#
+0.000000000000000000e+00 5.000000000000000000e-01
+1.010101010101010187e-02 4.839188562974035546e-01
+2.020202020202020374e-02 4.664633082870883185e-01
+3.030303030303030387e-02 4.477992370076759321e-01
+4.040404040404040747e-02 4.280884746475391855e-01
+5.050505050505051108e-02 4.074882658312278805e-01
+6.060606060606060774e-02 3.861507830642957884e-01
+7.070707070707071829e-02 3.642226954481366796e-01
+8.080808080808081495e-02 3.418447895726685060e-01
+9.090909090909091161e-02 3.191516413083217985e-01
+1.010101010101010222e-01 2.962713370496566911e-01
+1.111111111111111188e-01 2.733252428108397525e-01
+1.212121212121212155e-01 2.504278194378757871e-01
+1.313131313131313260e-01 2.276864820835683423e-01
+1.414141414141414366e-01 2.052015019882667823e-01
+1.515151515151515194e-01 1.830659485220967053e-01
+1.616161616161616299e-01 1.613656693720554314e-01
+1.717171717171717404e-01 1.401793066995395964e-01
+1.818181818181818232e-01 1.195783470499733880e-01
+1.919191919191919338e-01 9.962720276560653454e-02
+2.020202020202020443e-01 8.038332263460844229e-02
+2.121212121212121271e-01 6.189732950362884095e-02
+2.222222222222222376e-01 4.421318258634338721e-02
+2.323232323232323482e-01 2.736836221646109929e-02
+2.424242424242424310e-01 1.139407481951706241e-02
+2.525252525252525415e-01 -3.684524087184768305e-03
+2.626262626262626521e-01 -1.784809101361103933e-02
+2.727272727272727626e-01 -3.108284183089394734e-02
+2.828282828282828731e-01 -4.338028735764459798e-02
+2.929292929292929282e-01 -5.473695917159653729e-02
+3.030303030303030387e-01 -6.515412754918019356e-02
+3.131313131313131493e-01 -7.463751336033246087e-02
+3.232323232323232598e-01 -8.319699566623535436e-02
+3.333333333333333703e-01 -9.084631668437408158e-02
+3.434343434343434809e-01 -9.760278569894847989e-02
+3.535353535353535914e-01 -1.034869834058480820e-01
+3.636363636363636465e-01 -1.085224680906887867e-01
+3.737373737373737570e-01 -1.127354849463580166e-01
+3.838383838383838675e-01 -1.161546797436467660e-01
+3.939393939393939781e-01 -1.188108179753617905e-01
+4.040404040404040886e-01 -1.207365105012661172e-01
+4.141414141414141992e-01 -1.219659466287478511e-01
+4.242424242424242542e-01 -1.225346354726586373e-01
+4.343434343434343647e-01 -1.224791563476870931e-01
+4.444444444444444753e-01 -1.218369188582878598e-01
+4.545454545454545858e-01 -1.206459332648921745e-01
+4.646464646464646964e-01 -1.189445916211826354e-01
+4.747474747474748069e-01 -1.167714600958782850e-01
+4.848484848484848619e-01 -1.141650828139931795e-01
+4.949494949494949725e-01 -1.111637974770993686e-01
+5.050505050505050830e-01 -1.078055629499370810e-01
+5.151515151515152491e-01 -1.041277989319151775e-01
+5.252525252525253041e-01 -1.001672377667715969e-01
+5.353535353535353591e-01 -9.595978838201550676e-02
+5.454545454545455252e-01 -9.154041229183514095e-02
+5.555555555555555802e-01 -8.694301154298421375e-02
+5.656565656565657463e-01 -8.220032843279161117e-02
+5.757575757575758013e-01 -7.734385678189471813e-02
+5.858585858585858563e-01 -7.240376450156404964e-02
+5.959595959595960224e-01 -6.740882715655599489e-02
+6.060606060606060774e-01 -6.238637218925319194e-02
+6.161616161616162435e-01 -5.736223343937883051e-02
+6.262626262626262985e-01 -5.236071556573514141e-02
+6.363636363636364646e-01 -4.740456795212919655e-02
+6.464646464646465196e-01 -4.251496765882348261e-02
+6.565656565656565746e-01 -3.771151096337228836e-02
+6.666666666666667407e-01 -3.301221302047028378e-02
+6.767676767676767957e-01 -2.843351515931392959e-02
+6.868686868686869618e-01 -2.399029932883371685e-02
+6.969696969696970168e-01 -1.969590919585953101e-02
+7.070707070707071829e-01 -1.556217739867778345e-02
+7.171717171717172379e-01 -1.159945845839659151e-02
+7.272727272727272929e-01 -7.816666852882871858e-03
+7.373737373737374590e-01 -4.221319762637970423e-03
+7.474747474747475140e-01 -8.195840046643504406e-04
+7.575757575757576801e-01 2.383673321001708936e-03
+7.676767676767677351e-01 5.384830937016459387e-03
+7.777777777777777901e-01 8.181456699620734754e-03
+7.878787878787879562e-01 1.077224855411689636e-02
+7.979797979797980112e-01 1.315697355954898069e-02
+8.080808080808081773e-01 1.533640539123914612e-02
+8.181818181818182323e-01 1.731226071284763454e-02
+8.282828282828283983e-01 1.908713479176446168e-02
+8.383838383838384534e-01 2.066443671304065213e-02
+8.484848484848485084e-01 2.204832452786457606e-02
+8.585858585858586745e-01 2.324364065290935102e-02
+8.686868686868687295e-01 2.425584781684484575e-02
+8.787878787878788955e-01 2.509096583004076855e-02
+8.888888888888889506e-01 2.575550943309527080e-02
+8.989898989898991166e-01 2.625642745941495979e-02
+9.090909090909091717e-01 2.660104352674323366e-02
+9.191919191919192267e-01 2.679699845238049660e-02
+9.292929292929293927e-01 2.685219456694716220e-02
+9.393939393939394478e-01 2.677474208198871858e-02
+9.494949494949496138e-01 2.657290764758631768e-02
+9.595959595959596689e-01 2.625506521748296324e-02
+9.696969696969697239e-01 2.582964932112596923e-02
+9.797979797979798899e-01 2.530511082451557259e-02
+9.898989898989899450e-01 2.468987524488667346e-02
+1.000000000000000000e+00 2.399230366807731177e-02
b
diff -r 000000000000 -r 89ae4a5724a5 test-data/fitting_example.pdf
b
Binary file test-data/fitting_example.pdf has changed
b
diff -r 000000000000 -r 89ae4a5724a5 test-data/high_T.dat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/high_T.dat Thu Aug 25 16:17:15 2022 +0000
b
b'@@ -0,0 +1,204 @@\n+# MUSPINSIM v.1.0.3\n+# Output file written on Fri Apr  1 15:08:23 2022\n+# Parameters used:\n+# \n+0.000000000000000000e+00 5.000000000000000000e-01\n+5.025125628140704025e-04 4.548524693297328336e-01\n+1.005025125628140805e-03 3.276059962899626754e-01\n+1.507537688442211208e-03 1.413532974885093607e-01\n+2.010050251256281610e-03 -7.012892919953786497e-02\n+2.512562814070352230e-03 -2.685372365807210393e-01\n+3.015075376884422415e-03 -4.180151586530714836e-01\n+3.517587939698492601e-03 -4.916672722768279935e-01\n+4.020100502512563220e-03 -4.764240631303121587e-01\n+4.522613065326633840e-03 -3.753730198257079209e-01\n+5.025125628140704459e-03 -2.071380005853223905e-01\n+5.527638190954774211e-03 -2.430871430766215480e-03\n+6.030150753768844830e-03 2.015832825524755956e-01\n+6.532663316582915450e-03 3.680685254804669793e-01\n+7.035175879396985202e-03 4.672040376039552356e-01\n+7.537688442211055821e-03 4.815538403458245464e-01\n+8.040201005025126441e-03 4.091482613100387300e-01\n+8.542713567839196193e-03 2.637298174699946873e-01\n+9.045226130653267679e-03 7.213860675815035595e-02\n+9.547738693467337431e-03 -1.306642695149698163e-01\n+1.005025125628140892e-02 -3.080085344380294465e-01\n+1.055276381909547867e-02 -4.281801648443375186e-01\n+1.105527638190954842e-02 -4.701226252809459494e-01\n+1.155778894472361991e-02 -4.271435716169332819e-01\n+1.206030150753768966e-02 -3.079713335521952478e-01\n+1.256281407035175941e-02 -1.349967024951781447e-01\n+1.306532663316583090e-02 5.994810039257951473e-02\n+1.356783919597990065e-02 2.414751047346597734e-01\n+1.407035175879397040e-02 3.770978010877490405e-01\n+1.457286432160804189e-02 4.430756889761133799e-01\n+1.507537688442211164e-02 4.285891259334860814e-01\n+1.557788944723618313e-02 3.375067727319158162e-01\n+1.608040201005025288e-02 1.874582697066057846e-01\n+1.658291457286432263e-02 6.421571523474459142e-03\n+1.708542713567839239e-02 -1.725143974382218892e-01\n+1.758793969849246561e-02 -3.172277775685264367e-01\n+1.809045226130653536e-02 -4.023606738118454818e-01\n+1.859296482412060511e-02 -4.137832638350815717e-01\n+1.909547738693467486e-02 -3.509354051447342582e-01\n+1.959798994974874461e-02 -2.266583860288352015e-01\n+2.010050251256281784e-02 -6.459576019611987241e-02\n+2.060301507537688759e-02 1.053145533530164546e-01\n+2.110552763819095734e-02 2.523957638711766815e-01\n+2.160804020100502709e-02 3.507999806142475530e-01\n+2.211055276381909684e-02 3.840724827555753174e-01\n+2.261306532663316660e-02 3.479024975819591248e-01\n+2.311557788944723982e-02 2.506007696149184505e-01\n+2.361809045226130957e-02 1.112712783601328970e-01\n+2.412060301507537932e-02 -4.393216566830654424e-02\n+2.462311557788944907e-02 -1.867321573800229673e-01\n+2.512562814070351883e-02 -2.919059653432388157e-01\n+2.562814070351759205e-02 -3.417628940166823059e-01\n+2.613065326633166180e-02 -3.291218585660131701e-01\n+2.663316582914573155e-02 -2.582876368351646468e-01\n+2.713567839195980130e-02 -1.439061578889390680e-01\n+2.763819095477387106e-02 -7.972622511571214599e-03\n+2.814070351758794081e-02 1.244020667574414624e-01\n+2.864321608040201403e-02 2.296510329223524494e-01\n+2.914572864321608378e-02 2.899689332404929987e-01\n+2.964824120603015353e-02 2.963285041300017797e-01\n+3.015075376884422328e-02 2.497842509010630985e-01\n+3.065326633165829304e-02 1.608852697658749720e-01\n+3.115577889447236626e-02 4.737506988925532792e-02\n+3.165829145728643601e-02 -6.933305006661899528e-02\n+3.216080402010050576e-02 -1.682076656517884627e-01\n+3.266331658291457551e-02 -2.324092208500170842e-01\n+3.316582914572864527e-02 -2.521645408904237828e-01\n+3.366834170854271502e-02 -2.262139402725827364e-01\n+3.417085427135678477e-02 -1.616253117979199461e-01\n+3.467336683417085452e-02 -7.208320957128538931e-02\n+3.517587939698493121e-02 2.495841488349759274e-02\n+3.567839195979900097e-02 1.116753900317162818e-01\n+3.618090452261307072e-02 1.731629250676868514e-01\n+3.668341708542714047e-02 2.000057310720851078e-01\n+3.718592964824121022e-02 1.896839135390429587e-01\n+3.768844221105527997e-'..b'658607e-02 6.347377206405235839e-02\n+6.180904522613066276e-02 1.302376421674228957e-01\n+6.231155778894473252e-02 1.777287270455245594e-01\n+6.281407035175880227e-02 1.951542741049450691e-01\n+6.331658291457287202e-02 1.768148920230087351e-01\n+6.381909547738694177e-02 1.235977542459716638e-01\n+6.432160804020101152e-02 4.325111938040765436e-02\n+6.482412060301508128e-02 -5.068776376192626887e-02\n+6.532663316582915103e-02 -1.411755090553940550e-01\n+6.582914572864322078e-02 -2.107708458891604519e-01\n+6.633165829145729053e-02 -2.449985387618227595e-01\n+6.683417085427136028e-02 -2.353198064957194857e-01\n+6.733668341708543004e-02 -1.811059770177198824e-01\n+6.783919597989949979e-02 -9.017954011348530696e-02\n+6.834170854271356954e-02 2.225242459671394890e-02\n+6.884422110552763929e-02 1.361409899607548546e-01\n+6.934673366834170904e-02 2.301892401128996513e-01\n+6.984924623115579267e-02 2.858496244240414930e-01\n+7.035175879396986243e-02 2.909719368661195515e-01\n+7.085427135678393218e-02 2.423860458148995034e-01\n+7.135678391959800193e-02 1.468807094625041443e-01\n+7.185929648241207168e-02 2.032779063549158827e-02\n+7.236180904522614143e-02 -1.149520475140755338e-01\n+7.286432160804021119e-02 -2.341456070921206778e-01\n+7.336683417085428094e-02 -3.145205644044935522e-01\n+7.386934673366835069e-02 -3.397691649449845475e-01\n+7.437185929648242044e-02 -3.032908093968177399e-01\n+7.487437185929649019e-02 -2.097569670752049142e-01\n+7.537688442211055995e-02 -7.460733176011935530e-02\n+7.587939698492462970e-02 7.849234915475722385e-02\n+7.638190954773869945e-02 2.218134710828332246e-01\n+7.688442211055276920e-02 3.286128730133611731e-01\n+7.738693467336683895e-02 3.781424427997103765e-01\n+7.788944723618090871e-02 3.596782343063738008e-01\n+7.839195979899497846e-02 2.747869506738540579e-01\n+7.889447236180904821e-02 1.373590814399697768e-01\n+7.939698492462311796e-02 -2.865410052872488511e-02\n+7.989949748743718771e-02 -1.934329531665233692e-01\n+8.040201005025127134e-02 -3.266740790855787724e-01\n+8.090452261306534110e-02 -4.031897053028388189e-01\n+8.140703517587941085e-02 -4.076825193038747797e-01\n+8.190954773869348060e-02 -3.377885042887722733e-01\n+8.241206030150755035e-02 -2.047850234200215280e-01\n+8.291457286432162010e-02 -3.178509837039474040e-02\n+8.341708542713568986e-02 1.502957770739300203e-01\n+8.391959798994975961e-02 3.082933931618698220e-01\n+8.442211055276382936e-02 4.128661759858053282e-01\n+8.492462311557789911e-02 4.439671663763212761e-01\n+8.542713567839196886e-02 3.946921284211223346e-01\n+8.592964824120603862e-02 2.727642724331449386e-01\n+8.643216080402010837e-02 9.934332084033507815e-02\n+8.693467336683417812e-02 -9.466149063795656349e-02\n+8.743718592964824787e-02 -2.741292502614064985e-01\n+8.793969849246231762e-02 -4.061186184654671516e-01\n+8.844221105527638738e-02 -4.659434557396006649e-01\n+8.894472361809045713e-02 -4.418070870248382298e-01\n+8.944723618090452688e-02 -3.371222436321156257e-01\n+8.994974874371859663e-02 -1.700614627125307809e-01\n+9.045226130653266639e-02 2.961038168832489520e-02\n+9.095477386934673614e-02 2.258669260562105596e-01\n+9.145728643216081977e-02 3.829547520763129653e-01\n+9.195979899497488952e-02 4.719400350307773606e-01\n+9.246231155778895927e-02 4.760627664039074336e-01\n+9.296482412060302902e-02 3.939033566252438945e-01\n+9.346733668341709877e-02 2.397616168514637158e-01\n+9.396984924623116853e-02 4.115729210020925566e-02\n+9.447236180904523828e-02 -1.661089979581054088e-01\n+9.497487437185930803e-02 -3.444432909981581803e-01\n+9.547738693467337778e-02 -4.613125302448755072e-01\n+9.597989949748744753e-02 -4.952094996705523333e-01\n+9.648241206030151729e-02 -4.396294378621908860e-01\n+9.698492462311558704e-02 -3.043197741150853730e-01\n+9.748743718592965679e-02 -1.135626284234362293e-01\n+9.798994974874372654e-02 9.820581498687230848e-02\n+9.849246231155779630e-02 2.926446037515830767e-01\n+9.899497487437186605e-02 4.344860087996524900e-01\n+9.949748743718593580e-02 4.979657214762875372e-01\n+1.000000000000000056e-01 4.715269204165091210e-01\n'
b
diff -r 000000000000 -r 89ae4a5724a5 test-data/low_T.dat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/low_T.dat Thu Aug 25 16:17:15 2022 +0000
b
b'@@ -0,0 +1,1004 @@\n+# MUSPINSIM v.1.0.3\n+# Output file written on Fri Apr  1 15:08:29 2022\n+# Parameters used:\n+# \n+0.000000000000000000e+00 5.000000000000000000e-01\n+1.001001001001001047e-04 4.981033135329970274e-01\n+2.002002002002002093e-04 4.924277044580595009e-01\n+3.003003003003003411e-04 4.830163953152626366e-01\n+4.004004004004004186e-04 4.699410204948861192e-01\n+5.005005005005004962e-04 4.533010769114754757e-01\n+6.006006006006006821e-04 4.332231931920127455e-01\n+7.007007007007007597e-04 4.098601849845365797e-01\n+8.008008008008008372e-04 3.833898746108277966e-01\n+9.009009009009009148e-04 3.540137024310235359e-01\n+1.001001001001000992e-03 3.219551819737365150e-01\n+1.101101101101101178e-03 2.874582203870960639e-01\n+1.201201201201201364e-03 2.507852822354347810e-01\n+1.301301301301301333e-03 2.122153773667754262e-01\n+1.401401401401401519e-03 1.720419004949797492e-01\n+1.501501501501501488e-03 1.305703806449169391e-01\n+1.601601601601601674e-03 8.811617362706007650e-02\n+1.701701701701701860e-03 4.500208438560602403e-02\n+1.801801801801801830e-03 1.555900590454642463e-03\n+1.901901901901902016e-03 -4.189213780194039893e-02\n+2.002002002002001985e-03 -8.501187288878778170e-02\n+2.102102102102102171e-03 -1.274757259209254590e-01\n+2.202202202202202357e-03 -1.689611641010432819e-01\n+2.302302302302302543e-03 -2.091531576169390338e-01\n+2.402402402402402729e-03 -2.477466087969406316e-01\n+2.502502502502502481e-03 -2.844486958982454516e-01\n+2.602602602602602667e-03 -3.189810865937854345e-01\n+2.702702702702702853e-03 -3.510820248661400966e-01\n+2.802802802802803039e-03 -3.805083163671193480e-01\n+2.902902902902903225e-03 -4.070372042584569638e-01\n+3.003003003003002977e-03 -4.304680851090599836e-01\n+3.103103103103103163e-03 -4.506240201477559326e-01\n+3.203203203203203349e-03 -4.673530450527574320e-01\n+3.303303303303303535e-03 -4.805293098801032281e-01\n+3.403403403403403721e-03 -4.900540539452986621e-01\n+3.503503503503503473e-03 -4.958563758457454895e-01\n+3.603603603603603659e-03 -4.978937573776260894e-01\n+3.703703703703703845e-03 -4.961523458257910413e-01\n+3.803803803803804031e-03 -4.906470336524648701e-01\n+3.903903903903904217e-03 -4.814213544878166995e-01\n+4.004004004004003969e-03 -4.685471683699375389e-01\n+4.104104104104104589e-03 -4.521241003810821391e-01\n+4.204204204204204341e-03 -4.322787390006480601e-01\n+4.304304304304304093e-03 -4.091636400278667041e-01\n+4.404404404404404713e-03 -3.829561686767558037e-01\n+4.504504504504504465e-03 -3.538571660256732976e-01\n+4.604604604604605085e-03 -3.220894097978447834e-01\n+4.704704704704704837e-03 -2.878958767664486218e-01\n+4.804804804804805457e-03 -2.515378573392548223e-01\n+4.904904904904905209e-03 -2.132929665508963846e-01\n+5.005005005005004962e-03 -1.734530497065385202e-01\n+5.105105105105105581e-03 -1.323219574939691057e-01\n+5.205205205205205334e-03 -9.021319670955721404e-02\n+5.305305305305305953e-03 -4.744750844453948790e-02\n+5.405405405405405705e-03 -4.350426117780095692e-03\n+5.505505505505505458e-03 3.875017884645424321e-02\n+5.605605605605606077e-03 8.152658609795385147e-02\n+5.705705705705705830e-03 1.236537481491427337e-01\n+5.805805805805806449e-03 1.648117959341708905e-01\n+5.905905905905906202e-03 2.046884719205544212e-01\n+6.006006006006005954e-03 2.429814767171232792e-01\n+6.106106106106106574e-03 2.794007513711342372e-01\n+6.206206206206206326e-03 3.136707005744142074e-01\n+6.306306306306306945e-03 3.455323150765171047e-01\n+6.406406406406406698e-03 3.747451377603555622e-01\n+6.506506506506506450e-03 4.010890564879073805e-01\n+6.606606606606607070e-03 4.243659481277356482e-01\n+6.706706706706706822e-03 4.444011889721213304e-01\n+6.806806806806807442e-03 4.610450008363675689e-01\n+6.906906906906907194e-03 4.741735819539187324e-01\n+7.007007007007006946e-03 4.836900058229663957e-01\n+7.107107107107107566e-03 4.895249162993399183e-01\n+7.207207207207207318e-03 4.916370457924035819e-01\n+7.307307307307307938e-03 4.900135394269671263e-01\n+7.407407407407407690e-03 4.846700418167967372e-01\n+7.507507507507507442e-'..b'229947e-02 4.886837712392622657e-01\n+9.239239239239240009e-02 4.907242422325411857e-01\n+9.249249249249250071e-02 4.890357804671618958e-01\n+9.259259259259260133e-02 4.836278586442517846e-01\n+9.269269269269270195e-02 4.745383050391456803e-01\n+9.279279279279280257e-02 4.618330333707842961e-01\n+9.289289289289290319e-02 4.456055894324576494e-01\n+9.299299299299300381e-02 4.259764816319193681e-01\n+9.309309309309309055e-02 4.030922700376707302e-01\n+9.319319319319319117e-02 3.771244363747491835e-01\n+9.329329329329329179e-02 3.482680844700559719e-01\n+9.339339339339339241e-02 3.167404931138906865e-01\n+9.349349349349349303e-02 2.827794995037244408e-01\n+9.359359359359359365e-02 2.466416911523271749e-01\n+9.369369369369369427e-02 2.086004295180562129e-01\n+9.379379379379379489e-02 1.689437612544234801e-01\n+9.389389389389389551e-02 1.279722511487457193e-01\n+9.399399399399399613e-02 8.599672468101736411e-02\n+9.409409409409409675e-02 4.333589987322606502e-02\n+9.419419419419419737e-02 3.139296692761459062e-04\n+9.429429429429429799e-02 -4.274208665911989613e-02\n+9.439439439439439861e-02 -8.550458030509391905e-02\n+9.449449449449449923e-02 -1.276479826302368559e-01\n+9.459459459459459985e-02 -1.688512086824260905e-01\n+9.469469469469470047e-02 -2.088001388138145120e-01\n+9.479479479479480108e-02 -2.471900417962481222e-01\n+9.489489489489490170e-02 -2.837278920848133601e-01\n+9.499499499499500232e-02 -3.181345815775046271e-01\n+9.509509509509510294e-02 -3.501470499764258171e-01\n+9.519519519519520356e-02 -3.795203271011926005e-01\n+9.529529529529530418e-02 -4.060294369412209559e-01\n+9.539539539539540480e-02 -4.294711157029761917e-01\n+9.549549549549550542e-02 -4.496653427454996299e-01\n+9.559559559559560604e-02 -4.664567139494025239e-01\n+9.569569569569570666e-02 -4.797156628228886888e-01\n+9.579579579579579340e-02 -4.893394893271435508e-01\n+9.589589589589589402e-02 -4.952531518319162607e-01\n+9.599599599599599464e-02 -4.974098218394381044e-01\n+9.609609609609609526e-02 -4.957912377160234030e-01\n+9.619619619619619588e-02 -4.904078763413027842e-01\n+9.629629629629629650e-02 -4.812989153886074734e-01\n+9.639639639639639712e-02 -4.685319471818990555e-01\n+9.649649649649649774e-02 -4.522024455308135127e-01\n+9.659659659659659836e-02 -4.324330283404262398e-01\n+9.669669669669669898e-02 -4.093725485532753172e-01\n+9.679679679679679960e-02 -3.831949997777446271e-01\n+9.689689689689690022e-02 -3.540982039883359689e-01\n+9.699699699699700084e-02 -3.223022840792643673e-01\n+9.709709709709710146e-02 -2.880479689544285793e-01\n+9.719719719719720208e-02 -2.515947756910754673e-01\n+9.729729729729730270e-02 -2.132190679881044437e-01\n+9.739739739739740332e-02 -1.732119641413418787e-01\n+9.749749749749750394e-02 -1.318770969924698000e-01\n+9.759759759759760456e-02 -8.952827537091120891e-02\n+9.769769769769770518e-02 -4.648710037388401051e-02\n+9.779779779779780580e-02 -3.080546307129724409e-03\n+9.789789789789790642e-02 4.036151641155204250e-02\n+9.799799799799800704e-02 8.350885697024525156e-02\n+9.809809809809810766e-02 1.260334311486766556e-01\n+9.819819819819820828e-02 1.676118816243432896e-01\n+9.829829829829830889e-02 2.079279743867352426e-01\n+9.839839839839840951e-02 2.466749924005316452e-01\n+9.849849849849849626e-02 2.835580932479642158e-01\n+9.859859859859859688e-02 3.182965898935754545e-01\n+9.869869869869869750e-02 3.506260966097755061e-01\n+9.879879879879879812e-02 3.803005190158139648e-01\n+9.889889889889889873e-02 4.070939103806564541e-01\n+9.899899899899899935e-02 4.308022099329777976e-01\n+9.909909909909909997e-02 4.512448327744731369e-01\n+9.919919919919920059e-02 4.682660576809446473e-01\n+9.929929929929930121e-02 4.817361911135157326e-01\n+9.939939939939940183e-02 4.915525325837207804e-01\n+9.949949949949950245e-02 4.976401681029145596e-01\n+9.959959959959960307e-02 4.999525746926628544e-01\n+9.969969969969970369e-02 4.984719897766979324e-01\n+9.979979979979980431e-02 4.932095254143715746e-01\n+9.989989989989990493e-02 4.842050563834074950e-01\n+1.000000000000000056e-01 4.715269204166210870e-01\n'
b
diff -r 000000000000 -r 89ae4a5724a5 test-data/temp_example.png
b
Binary file test-data/temp_example.png has changed