<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?action=history&amp;feed=atom&amp;title=Progress_monitoring</id>
	<title>Progress monitoring - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?action=history&amp;feed=atom&amp;title=Progress_monitoring"/>
	<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Progress_monitoring&amp;action=history"/>
	<updated>2026-06-24T09:02:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Progress_monitoring&amp;diff=250&amp;oldid=prev</id>
		<title>Hattne: Replaced ./lsf.sh with cxi.lsf.</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Progress_monitoring&amp;diff=250&amp;oldid=prev"/>
		<updated>2014-02-11T00:33:25Z</updated>

		<summary type="html">&lt;p&gt;Replaced ./lsf.sh with cxi.lsf.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:33, 11 February 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add to the mod_hitfind section of your pyana config file these lines:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add to the mod_hitfind section of your pyana config file these lines:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# lsf&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.sh &lt;/del&gt;will replace this with its deterimined id, otherwise&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cxi.&lt;/ins&gt;lsf will replace this with its deterimined id, otherwise&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# set it to the ID you wish.  0 is the default.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# set it to the ID you wish.  0 is the default.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;trial_id        = 0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;trial_id        = 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These three parameters turn on and configure database-backed logging of hitfinding results:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These three parameters turn on and configure database-backed logging of hitfinding results:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* trial_id: we find it useful to organize processing in numbered trials.  Whenever we go back and change the parameters of our processing, adjusting the target cell or spotfinder parameters for example, we re-process under a different trial ID.  When you submit your processing job using lsf&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.sh&lt;/del&gt;, you can specify the trial ID on the command line with –t.  What you specify will overwrite what is listed here in the cfg file.  If you use bsub, then what is in the cfg file is what’s used.  Note, it isn’t a good idea to re-use the trial_id when re-prossing the data if database logging is being used, simply because the hits will be logged twice which will clutter future analysis.  Finally, if you want to see which trials you have used for which runs, execute &amp;#039;&amp;#039;&amp;#039;cxi.list_db_metadata&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* trial_id: we find it useful to organize processing in numbered trials.  Whenever we go back and change the parameters of our processing, adjusting the target cell or spotfinder parameters for example, we re-process under a different trial ID.  When you submit your processing job using &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cxi.&lt;/ins&gt;lsf, you can specify the trial ID on the command line with –t.  What you specify will overwrite what is listed here in the cfg file.  If you use bsub, then what is in the cfg file is what’s used.  Note, it isn’t a good idea to re-use the trial_id when re-prossing the data if database logging is being used, simply because the hits will be logged twice which will clutter future analysis.  Finally, if you want to see which trials you have used for which runs, execute &amp;#039;&amp;#039;&amp;#039;cxi.list_db_metadata&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* db_logging: Switch for turning on and off logging&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* db_logging: Switch for turning on and off logging&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* sql_buffer_size: a queue size for regulating how often to add data to the database.  In our experience, 5 has been just fine.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* sql_buffer_size: a queue size for regulating how often to add data to the database.  In our experience, 5 has been just fine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
	<entry>
		<id>http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Progress_monitoring&amp;diff=251&amp;oldid=prev</id>
		<title>Aaron: Created page with &quot;If configured to do so, &#039;&#039;cctbx.xfel&#039;&#039; can use a mysql database during hit finding to log the hit rate and other useful parameters, enabling real-time monitoring via a graphic...&quot;</title>
		<link rel="alternate" type="text/html" href="http://viper.lbl.gov:8080/cctbx.xfel/index.php?title=Progress_monitoring&amp;diff=251&amp;oldid=prev"/>
		<updated>2013-10-01T19:01:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If configured to do so, &amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039; can use a mysql database during hit finding to log the hit rate and other useful parameters, enabling real-time monitoring via a graphic...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If configured to do so, &amp;#039;&amp;#039;cctbx.xfel&amp;#039;&amp;#039; can use a mysql database during hit finding to log the hit rate and other useful parameters, enabling real-time monitoring via a graphical display.  &lt;br /&gt;
&lt;br /&gt;
== Configuring trial monitoring ==&lt;br /&gt;
Add to the mod_hitfind section of your pyana config file these lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# lsf.sh will replace this with its deterimined id, otherwise&lt;br /&gt;
# set it to the ID you wish.  0 is the default.&lt;br /&gt;
trial_id        = 0&lt;br /&gt;
db_logging      = True&lt;br /&gt;
sql_buffer_size = 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These three parameters turn on and configure database-backed logging of hitfinding results:&lt;br /&gt;
* trial_id: we find it useful to organize processing in numbered trials.  Whenever we go back and change the parameters of our processing, adjusting the target cell or spotfinder parameters for example, we re-process under a different trial ID.  When you submit your processing job using lsf.sh, you can specify the trial ID on the command line with –t.  What you specify will overwrite what is listed here in the cfg file.  If you use bsub, then what is in the cfg file is what’s used.  Note, it isn’t a good idea to re-use the trial_id when re-prossing the data if database logging is being used, simply because the hits will be logged twice which will clutter future analysis.  Finally, if you want to see which trials you have used for which runs, execute &amp;#039;&amp;#039;&amp;#039;cxi.list_db_metadata&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* db_logging: Switch for turning on and off logging&lt;br /&gt;
* sql_buffer_size: a queue size for regulating how often to add data to the database.  In our experience, 5 has been just fine.&lt;br /&gt;
&lt;br /&gt;
== Monitoring hit finding in real time ==&lt;br /&gt;
After submitting a job with db logging enabled, use cxi.monitor_trials &amp;lt;trial number&amp;gt; to display the hit rate during processing.  Other command line options and their defaults are listed below, including the ability to display multiple runs at once.  The default is to display the 5 latest runs by timestamp.&lt;br /&gt;
* t_wait = 8000: amount of time in ms between queries to the database&lt;br /&gt;
* hit_cutoff = 16: the number of bragg spots before a frame is considered a hit.  If this is different than what’s in your config file, then the monitor will be using a different cutoff to display which frames are hits.&lt;br /&gt;
* average_window = 1000: how many frames are in the sliding averaging window shown in the hit % graph&lt;br /&gt;
* n_points = 1000: how many total points to display on the graph.  Set it to 0 to display all the data points (can be computationally intensive).&lt;br /&gt;
* display_time = 1800: number of seconds of experiment time to display.  Displays this number of seconds unless that would add up to more than 5 runs.&lt;br /&gt;
* run_num = display only this run&lt;br /&gt;
* run_min = start at this run&lt;br /&gt;
* run_max = end with this run&lt;/div&gt;</summary>
		<author><name>Aaron</name></author>
	</entry>
</feed>