<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sddm/utils/plot-fit-results, branch master</title>
<subtitle>Code for the self-destructing dark matter search in SNO</subtitle>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/'/>
<entry>
<title>update code to work with python3</title>
<updated>2020-11-30T22:15:26+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-11-30T22:15:26+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=3716b099fe18ff458012084d344fce5f439d3532'/>
<id>3716b099fe18ff458012084d344fce5f439d3532</id>
<content type='text'>
This commit updates the python code to work with python 3 and with a
newer version of matplotlib.

- zip_longest -&gt; izip_longest
- fix tick marks for log plots
- scipy.misc -&gt; scipy.special
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit updates the python code to work with python 3 and with a
newer version of matplotlib.

- zip_longest -&gt; izip_longest
- fix tick marks for log plots
- scipy.misc -&gt; scipy.special
</pre>
</div>
</content>
</entry>
<entry>
<title>update chi2 to correct for energy bias</title>
<updated>2020-09-06T17:27:45+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-09-06T17:27:45+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=9e26e8d2176af803988b1b11310975c9af1fe06d'/>
<id>9e26e8d2176af803988b1b11310975c9af1fe06d</id>
<content type='text'>
This commit updates the chi2 script to correct for the energy bias of
the reconstruction relative to Monte Carlo.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit updates the chi2 script to correct for the energy bias of
the reconstruction relative to Monte Carlo.
</pre>
</div>
</content>
</entry>
<entry>
<title>add setup_matplotlib function and switch to logarithmic bins</title>
<updated>2020-05-11T16:09:34+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-05-11T16:09:34+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=e82c1e138c104943314150921eba0c2111a30d6c'/>
<id>e82c1e138c104943314150921eba0c2111a30d6c</id>
<content type='text'>
This commit contains the following small updates:

- create a setup_matplotlib() function to set up matplotlib correctly depending
  on if we are saving the plots or just displaying them
- change default font size to 12 when displaying plots
- switch to using logarithmic bins in plot-energy
- fix despine() function when x axis is logarithmic
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit contains the following small updates:

- create a setup_matplotlib() function to set up matplotlib correctly depending
  on if we are saving the plots or just displaying them
- change default font size to 12 when displaying plots
- switch to using logarithmic bins in plot-energy
- fix despine() function when x axis is logarithmic
</pre>
</div>
</content>
</entry>
<entry>
<title>update utils/ folder to make a python package called sddm</title>
<updated>2020-05-11T15:30:39+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-05-11T15:30:39+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=15fc972c89a4366a06755daeedaac52f91762ecd'/>
<id>15fc972c89a4366a06755daeedaac52f91762ecd</id>
<content type='text'>
This commit adds an sddm python package to the utils/ folder. This allows me to
consolidate code used across all the various scripts. This package is now
installed by default to /home/tlatorre/local/lib/python2.7/site-packages so you
should add the following to your .bashrc file:

    export PYTHONPATH=$HOME/local/lib/python2.7/site-packages/:$PYTHONPATH

before using the scripts installed to ~/local/bin.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds an sddm python package to the utils/ folder. This allows me to
consolidate code used across all the various scripts. This package is now
installed by default to /home/tlatorre/local/lib/python2.7/site-packages so you
should add the following to your .bashrc file:

    export PYTHONPATH=$HOME/local/lib/python2.7/site-packages/:$PYTHONPATH

before using the scripts installed to ~/local/bin.
</pre>
</div>
</content>
</entry>
<entry>
<title>update plot-fit-results script to be able to handle files with multi-particle fits</title>
<updated>2020-04-13T20:54:22+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2020-04-13T20:54:22+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=6f61c532e51b8c91519e5e8d38779e358cf1bc76'/>
<id>6f61c532e51b8c91519e5e8d38779e358cf1bc76</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>update plot-fit-results to make nicer plots</title>
<updated>2019-12-04T20:40:26+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2019-12-04T20:40:26+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=b9b3be58a0d830b2e51da8fef1179592426fb6d8'/>
<id>b9b3be58a0d830b2e51da8fef1179592426fb6d8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>small fix to prevent an Exception when there is only one data point</title>
<updated>2019-12-02T21:07:54+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2019-12-02T21:07:54+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=afab50a2a82daeafc96b2adecd4e7bc0a97d0f2b'/>
<id>afab50a2a82daeafc96b2adecd4e7bc0a97d0f2b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>update plot-fit-results to use median and iqr instead of mean and std</title>
<updated>2019-11-22T16:22:19+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2019-11-22T16:22:19+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=19adbadca5220babb99b6f0f8bbd36aaedee0049'/>
<id>19adbadca5220babb99b6f0f8bbd36aaedee0049</id>
<content type='text'>
This commit updates plot-fit-results to use the median when plotting the energy
and position bias and the interquartile range (times 1.35) when plotting the
energy and position resolution. The reason is that single large outliers for
higher energy muons were causing the energy bias and resolution to no longer
represent the central part of the distribution well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit updates plot-fit-results to use the median when plotting the energy
and position bias and the interquartile range (times 1.35) when plotting the
energy and position resolution. The reason is that single large outliers for
higher energy muons were causing the energy bias and resolution to no longer
represent the central part of the distribution well.
</pre>
</div>
</content>
</entry>
<entry>
<title>set ignore_index=True in pd.concat() since we don't care about the index</title>
<updated>2019-07-12T20:21:34+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2019-07-12T20:21:34+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=7913069ca1313fb6d4e7c25289910406508d5f73'/>
<id>7913069ca1313fb6d4e7c25289910406508d5f73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix a couple of bugs in plot-energy</title>
<updated>2019-07-12T15:28:31+00:00</updated>
<author>
<name>tlatorre</name>
<email>tlatorre@uchicago.edu</email>
</author>
<published>2019-07-12T15:28:31+00:00</published>
<link rel='alternate' type='text/html' href='https://www.tlatorre.com/cgit/sddm/commit/?id=3c3720143201915729759478c7e7e36c71ac3bbd'/>
<id>3c3720143201915729759478c7e7e36c71ac3bbd</id>
<content type='text'>
This commit fixes two small bugs in the plotting scripts. First, after the HDF5
commit I wasn't correctly computing the particle ID string which I had been
using before which was needed in order to plot things correctly. Second, I
realized that the dataframe groupby function first() actually selects the first
non-null column from each group! What I really wanted was the first row from
each group, so all instances of .first() were updated to .nth(0).

See https://stackoverflow.com/questions/20067636/pandas-dataframe-get-first-row-of-each-group.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes two small bugs in the plotting scripts. First, after the HDF5
commit I wasn't correctly computing the particle ID string which I had been
using before which was needed in order to plot things correctly. Second, I
realized that the dataframe groupby function first() actually selects the first
non-null column from each group! What I really wanted was the first row from
each group, so all instances of .first() were updated to .nth(0).

See https://stackoverflow.com/questions/20067636/pandas-dataframe-get-first-row-of-each-group.
</pre>
</div>
</content>
</entry>
</feed>
