<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.nmr-relax.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sed_replace_to_systemtest</id>
	<title>Sed replace to systemtest - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nmr-relax.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sed_replace_to_systemtest"/>
	<link rel="alternate" type="text/html" href="http://wiki.nmr-relax.com/wiki/index.php?title=Sed_replace_to_systemtest&amp;action=history"/>
	<updated>2026-06-10T03:57:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.4</generator>
	<entry>
		<id>http://wiki.nmr-relax.com/wiki/index.php?title=Sed_replace_to_systemtest&amp;diff=7814&amp;oldid=prev</id>
		<title>Bugman: added Category:Relax using HotCat</title>
		<link rel="alternate" type="text/html" href="http://wiki.nmr-relax.com/wiki/index.php?title=Sed_replace_to_systemtest&amp;diff=7814&amp;oldid=prev"/>
		<updated>2020-10-21T21:43:48Z</updated>

		<summary type="html">&lt;p&gt;added &lt;a href=&quot;/Category:Relax&quot; title=&quot;Category:Relax&quot;&gt;Category:Relax&lt;/a&gt; using &lt;a href=&quot;/Help:Gadget-HotCat&quot; title=&quot;Help:Gadget-HotCat&quot;&gt;HotCat&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 21:43, 21 October 2020&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-l70&quot; &gt;Line 70:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 70:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;             self.assertEqual(res_file[i], lines[i])&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;             self.assertEqual(res_file[i], lines[i])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;[[Category:Relax]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bugman</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.nmr-relax.com/wiki/index.php?title=Sed_replace_to_systemtest&amp;diff=5198&amp;oldid=prev</id>
		<title>Bugman: Forced creation of a TOC - this will improve the formatting on the main page &#039;Did you know...&#039; section.</title>
		<link rel="alternate" type="text/html" href="http://wiki.nmr-relax.com/wiki/index.php?title=Sed_replace_to_systemtest&amp;diff=5198&amp;oldid=prev"/>
		<updated>2015-10-19T17:39:31Z</updated>

		<summary type="html">&lt;p&gt;Forced creation of a TOC - this will improve the formatting on the main page &amp;#039;Did you know...&amp;#039; section.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:39, 19 October 2015&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;__TOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Script to take any text file, and convert to be out in a systemtest ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Script to take any text file, and convert to be out in a systemtest ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;source lang=&amp;quot;Bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;source lang=&amp;quot;Bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bugman</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.nmr-relax.com/wiki/index.php?title=Sed_replace_to_systemtest&amp;diff=2466&amp;oldid=prev</id>
		<title>Troels Emtekær Linnet: Created page with &quot;== Script to take any text file, and convert to be out in a systemtest == &lt;source lang=&quot;Bash&quot;&gt; #!/bin/tcsh -f  # To replace start end ending of line for relax. set s=&#039;$&#039; set t...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.nmr-relax.com/wiki/index.php?title=Sed_replace_to_systemtest&amp;diff=2466&amp;oldid=prev"/>
		<updated>2014-05-08T17:35:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Script to take any text file, and convert to be out in a systemtest == &amp;lt;source lang=&amp;quot;Bash&amp;quot;&amp;gt; #!/bin/tcsh -f  # To replace start end ending of line for relax. set s=&amp;#039;$&amp;#039; set t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Script to take any text file, and convert to be out in a systemtest ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/tcsh -f&lt;br /&gt;
&lt;br /&gt;
# To replace start end ending of line for relax.&lt;br /&gt;
set s=&amp;#039;$&amp;#039;&lt;br /&gt;
set t=&amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
sed -e &amp;quot;s/^/            &amp;#039;/g&amp;quot; -e &amp;quot;s/$s/&amp;#039;+$t\\n$t\,/g&amp;quot; $1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Input ===&lt;br /&gt;
Example&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Text&amp;quot;&amp;gt;&lt;br /&gt;
file = CR72_point_1_N&lt;br /&gt;
points = 2&lt;br /&gt;
format = ascii&lt;br /&gt;
interleaving = field&lt;br /&gt;
field = locations, field0&lt;br /&gt;
structure = 3-vector, scalar&lt;br /&gt;
type = float, float&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Output ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Text&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;#039;file = CR72_point_1_N&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;points = 2&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;format = ascii&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;interleaving = field&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;field = locations, field0&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;structure = 3-vector, scalar&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;type = float, float&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;end&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== To be used in systemtest ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Text&amp;quot;&amp;gt;&lt;br /&gt;
        # Set filepaths.&lt;br /&gt;
        map_general = ds.tmpdir+sep+file_name_map+&amp;quot;.general&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        # Test the files exists.&lt;br /&gt;
        self.assert_(access(map_general, F_OK))&lt;br /&gt;
&lt;br /&gt;
        print(&amp;quot;\nChecking the dx map .general file.&amp;quot;)&lt;br /&gt;
        res_file = [&lt;br /&gt;
            &amp;#039;file = CR72_map_1_N&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;grid = 5 x 5 x 5&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;format = ascii&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;interleaving = field&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;majority = row&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;field = data&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;structure = scalar&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;type = float&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;dependency = positions&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;positions = regular, regular, regular, 0, 1, 0, 1, 0, 1&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
            &amp;#039;end&amp;#039;+&amp;quot;\n&amp;quot;,&lt;br /&gt;
        ]&lt;br /&gt;
        file = open(map_general, &amp;#039;r&amp;#039;)&lt;br /&gt;
        lines = file.readlines()&lt;br /&gt;
        file.close()&lt;br /&gt;
        for i in range(len(res_file)):&lt;br /&gt;
            # Skip time point&lt;br /&gt;
            #if i == 2:&lt;br /&gt;
            #    continue&lt;br /&gt;
            self.assertEqual(res_file[i], lines[i])&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Troels Emtekær Linnet</name></author>
		
	</entry>
</feed>