Skip to content

Commit 071a3e9

Browse files
committed
Update
1 parent 74d126c commit 071a3e9

12 files changed

Lines changed: 69 additions & 33 deletions

File tree

JupyterBook/Ampere2026/SLEEPY.ipynb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
"* [SpinEvolution](https://spinevolution.com/)\n",
7676
"\n",
7777
" SpinEvolution is fast, powerful software for NMR dynamics simulations. It is also behind a significant paywall, where dynamics simulations require a $1650 annual subscription. We think SLEEPY has a wider range of dynamics capabilities, but we weren't interested in paying the annual fee to make sure.....\n",
78+
"\n",
79+
"\n",
80+
"* [Gamma](https://github.com/pygamma-mrs/gamma)\n",
81+
"\n",
82+
" Gamma is a very flexible C++ based package that allows a broad range of dynamics simulations. While not widely used, it is still applied by a few of the expert groups in dynamics. Not for the faint of heart, but if you like coding in C++, go for it.\n",
7883
" \n",
7984
"\n",
8085
"There's a lot else out there: these are three of the most well-known. For getting familiar with dynamic effects, however, we think SLEEPY is a great place to start."

JupyterBook/Ampere2026/SLEEPY_colab.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@
6262
"\n",
6363
" SpinEvolution is fast, powerful software for NMR dynamics simulations. It is also behind a significant paywall, where dynamics simulations require a $1650 annual subscription. We think SLEEPY has a wider range of dynamics capabilities, but we weren't interested in paying the annual fee to make sure.....\n",
6464
" \n",
65+
"* [Gamma](https://github.com/pygamma-mrs/gamma)\n",
6566
"\n",
67+
" Gamma is a very flexible C++ based package that allows a broad range of dynamics simulations. While not widely used, it is still applied by a few of the expert groups in dynamics. Not for the faint of heart, but if you like coding in C++, go for it.\n",
68+
"\n",
69+
" \n",
6670
"There's a lot else out there: these are three of the most well-known. For getting familiar with dynamic effects, however, we think SLEEPY is a great place to start."
6771
]
6872
},
942 Bytes
Binary file not shown.
1.1 KB
Binary file not shown.
-195 Bytes
Binary file not shown.

JupyterBook/_build/html/Ampere2026/SLEEPY.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,9 @@ <h3>How does it compare to other software?<a class="headerlink" href="#how-does-
484484
<li><p><a class="reference external" href="https://spinevolution.com/">SpinEvolution</a></p>
485485
<p>SpinEvolution is fast, powerful software for NMR dynamics simulations. It is also behind a significant paywall, where dynamics simulations require a $1650 annual subscription. We think SLEEPY has a wider range of dynamics capabilities, but we weren’t interested in paying the annual fee to make sure…..</p>
486486
</li>
487+
<li><p><a class="reference external" href="https://github.com/pygamma-mrs/gamma">Gamma</a></p>
488+
<p>Gamma is a very flexible C++ based package that allows a broad range of dynamics simulations. While not widely used, it is still applied by a few of the expert groups in dynamics. Not for the faint of heart, but if you like coding in C++, go for it.</p>
489+
</li>
487490
</ul>
488491
<p>There’s a lot else out there: these are three of the most well-known. For getting familiar with dynamic effects, however, we think SLEEPY is a great place to start.</p>
489492
</section>

JupyterBook/_build/html/Ampere2026/SLEEPY_colab.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ <h3>How does it compare to other software?<a class="headerlink" href="#how-does-
483483
<li><p><a class="reference external" href="https://spinevolution.com/">SpinEvolution</a></p>
484484
<p>SpinEvolution is fast, powerful software for NMR dynamics simulations. It is also behind a significant paywall, where dynamics simulations require a $1650 annual subscription. We think SLEEPY has a wider range of dynamics capabilities, but we weren’t interested in paying the annual fee to make sure…..</p>
485485
</li>
486+
<li><p><a class="reference external" href="https://github.com/pygamma-mrs/gamma">Gamma</a></p>
487+
<p>Gamma is a very flexible C++ based package that allows a broad range of dynamics simulations. While not widely used, it is still applied by a few of the expert groups in dynamics. Not for the faint of heart, but if you like coding in C++, go for it.</p>
488+
</li>
486489
</ul>
487490
<p>There’s a lot else out there: these are three of the most well-known. For getting familiar with dynamic effects, however, we think SLEEPY is a great place to start.</p>
488491
</section>
@@ -563,15 +566,15 @@ <h3>Define the experimental conditions<a class="headerlink" href="#define-the-ex
563566
<div class="cell docutils container">
564567
<div class="cell_input docutils container">
565568
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># Define an experimental system at 500 MHz field, with just a single proton</span>
566-
<span class="n">ex</span><span class="o">=</span> <span class="c1">#Use a 500 MHz magnetic field, include a single 1H, Nucs=[&#39;1H&#39;]</span>
567-
<span class="c1"># Add a chemical shift with ex.set_inter, set to 500 Hz</span>
569+
<span class="n">ex</span><span class="o">=</span> <span class="c1">#Use a 500 MHz magnetic field, v0H=500, include a single 1H, Nucs=[&#39;1H&#39;]</span>
568570
</pre></div>
569571
</div>
570572
</div>
571573
</div>
572574
<div class="cell docutils container">
573575
<div class="cell_input docutils container">
574-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">ex</span><span class="o">.</span><span class="n">set</span> <span class="c1">#Interaction type, spin index (use i for spin-field interaction, i0,i1 for spin-spin coupling)</span>
576+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># Add a chemical shift with ex.set_inter, set to 500 Hz</span>
577+
<span class="n">ex</span><span class="o">.</span><span class="n">set</span> <span class="c1">#Interaction type, spin index (use i for spin-field interaction, i0,i1 for spin-spin coupling)</span>
575578
<span class="c1">#Use Hz= to define in Hz, ppm= to define in ppm</span>
576579
</pre></div>
577580
</div>
@@ -599,15 +602,16 @@ <h3>Define the experimental conditions<a class="headerlink" href="#define-the-ex
599602
<div class="cell docutils container">
600603
<div class="cell_input docutils container">
601604
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">H</span><span class="o">=</span> <span class="c1">#Create the Hamiltonian</span>
602-
<span class="c1">#Plot the Hamiltonian, real part (most SLEEPY objects have some kind of plotting)</span>
605+
<span class="c1">#Plot the Hamiltonian, real part (mode=&#39;re&#39;)</span>
606+
<span class="c1">#Note, most SLEEPY objects have some kind of plotting, usually found in .plot()</span>
603607
</pre></div>
604608
</div>
605609
</div>
606610
</div>
607611
<div class="cell docutils container">
608612
<div class="cell_input docutils container">
609613
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">L</span><span class="o">=</span> <span class="c1">#Create the Liouvillian</span>
610-
<span class="c1">#Plot the Liouvillian, imaginary part</span>
614+
<span class="c1">#Plot the Liouvillian, imaginary part (mode=&#39;im&#39;)</span>
611615
</pre></div>
612616
</div>
613617
</div>
@@ -619,8 +623,7 @@ <h3>Add dynamics<a class="headerlink" href="#add-dynamics" title="Link to this h
619623
<div class="cell docutils container">
620624
<div class="cell_input docutils container">
621625
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">ex1</span><span class="o">=</span><span class="n">ex</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span> <span class="c1">#Copy the experimental system</span>
622-
<span class="n">_</span><span class="o">=</span><span class="n">ex1</span> <span class="c1">#Change the chemical shift to 100 Hz</span>
623-
<span class="c1">#Suppress text output by setting equal to _</span>
626+
<span class="n">ex1</span> <span class="c1">#Change the chemical shift to 100 Hz</span>
624627
</pre></div>
625628
</div>
626629
</div>
@@ -630,6 +633,7 @@ <h3>Add dynamics<a class="headerlink" href="#add-dynamics" title="Link to this h
630633
<div class="cell_input docutils container">
631634
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">L</span><span class="o">=</span> <span class="c1">#Create the Liouvillian</span>
632635
<span class="n">_</span><span class="o">=</span><span class="n">L</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="s1">&#39;Lcoh&#39;</span><span class="p">,</span><span class="n">mode</span><span class="o">=</span><span class="s1">&#39;im&#39;</span><span class="p">)</span> <span class="c1">#Plot the coherent Liouvillian</span>
636+
<span class="c1">#Suppress text output by setting equal to _</span>
633637
</pre></div>
634638
</div>
635639
</div>
@@ -770,11 +774,11 @@ <h3>Define the experimental conditions<a class="headerlink" href="#id1" title="L
770774
<span class="c1"># Calculate size of the one-bond dipole coupling for H–N</span>
771775
<span class="n">delta</span><span class="o">=</span><span class="n">sl</span><span class="o">.</span><span class="n">Tools</span><span class="o">.</span><span class="n">dipole_coupling</span><span class="p">(</span><span class="mf">.102</span><span class="p">,</span><span class="s1">&#39;15N&#39;</span><span class="p">,</span><span class="s1">&#39;1H&#39;</span><span class="p">)</span> <span class="c1">#Distance, nuc1, nuc2</span>
772776

773-
<span class="c1"># Define dipole to use delta calculated above</span>
777+
<span class="c1"># Define dipole to use delta calculated above (delta=delta)</span>
774778
<span class="n">ex0</span><span class="o">.</span>
775-
<span class="c1"># Define &#39;CSA&#39; to have a delta of 113 (ppm), and euler angles of euler_d=[0,23,0]</span>
779+
<span class="c1"># Define &#39;CSA&#39; to have a delta of 113 ppm (delta=113), and euler angles of euler_d=[0,23,0]</span>
776780
<span class="n">ex0</span><span class="o">.</span>
777-
<span class="c1"># Define chemical shift (&#39;CS&#39;) to have a value of -5 ppm</span>
781+
<span class="c1"># Define chemical shift (&#39;CS&#39;) to have a value of -5 ppm (ppm=-5)</span>
778782
<span class="n">ex0</span><span class="o">.</span>
779783
</pre></div>
780784
</div>

JupyterBook/_build/html/_sources/Ampere2026/SLEEPY.ipynb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
"* [SpinEvolution](https://spinevolution.com/)\n",
7676
"\n",
7777
" SpinEvolution is fast, powerful software for NMR dynamics simulations. It is also behind a significant paywall, where dynamics simulations require a $1650 annual subscription. We think SLEEPY has a wider range of dynamics capabilities, but we weren't interested in paying the annual fee to make sure.....\n",
78+
"\n",
79+
"\n",
80+
"* [Gamma](https://github.com/pygamma-mrs/gamma)\n",
81+
"\n",
82+
" Gamma is a very flexible C++ based package that allows a broad range of dynamics simulations. While not widely used, it is still applied by a few of the expert groups in dynamics. Not for the faint of heart, but if you like coding in C++, go for it.\n",
7883
" \n",
7984
"\n",
8085
"There's a lot else out there: these are three of the most well-known. For getting familiar with dynamic effects, however, we think SLEEPY is a great place to start."

JupyterBook/_build/html/_sources/Ampere2026/SLEEPY_colab.ipynb

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@
6262
"\n",
6363
" SpinEvolution is fast, powerful software for NMR dynamics simulations. It is also behind a significant paywall, where dynamics simulations require a $1650 annual subscription. We think SLEEPY has a wider range of dynamics capabilities, but we weren't interested in paying the annual fee to make sure.....\n",
6464
" \n",
65+
"* [Gamma](https://github.com/pygamma-mrs/gamma)\n",
6566
"\n",
67+
" Gamma is a very flexible C++ based package that allows a broad range of dynamics simulations. While not widely used, it is still applied by a few of the expert groups in dynamics. Not for the faint of heart, but if you like coding in C++, go for it.\n",
68+
"\n",
69+
" \n",
6670
"There's a lot else out there: these are three of the most well-known. For getting familiar with dynamic effects, however, we think SLEEPY is a great place to start."
6771
]
6872
},
@@ -259,8 +263,7 @@
259263
"outputs": [],
260264
"source": [
261265
"# Define an experimental system at 500 MHz field, with just a single proton\n",
262-
"ex= #Use a 500 MHz magnetic field, include a single 1H, Nucs=['1H']\n",
263-
"# Add a chemical shift with ex.set_inter, set to 500 Hz"
266+
"ex= #Use a 500 MHz magnetic field, v0H=500, include a single 1H, Nucs=['1H']"
264267
]
265268
},
266269
{
@@ -276,6 +279,7 @@
276279
},
277280
"outputs": [],
278281
"source": [
282+
"# Add a chemical shift with ex.set_inter, set to 500 Hz\n",
279283
"ex.set #Interaction type, spin index (use i for spin-field interaction, i0,i1 for spin-spin coupling)\n",
280284
" #Use Hz= to define in Hz, ppm= to define in ppm"
281285
]
@@ -360,7 +364,8 @@
360364
"outputs": [],
361365
"source": [
362366
"H= #Create the Hamiltonian\n",
363-
" #Plot the Hamiltonian, real part (most SLEEPY objects have some kind of plotting)"
367+
" #Plot the Hamiltonian, real part (mode='re')\n",
368+
"#Note, most SLEEPY objects have some kind of plotting, usually found in .plot()"
364369
]
365370
},
366371
{
@@ -377,7 +382,7 @@
377382
"outputs": [],
378383
"source": [
379384
"L= #Create the Liouvillian\n",
380-
" #Plot the Liouvillian, imaginary part"
385+
" #Plot the Liouvillian, imaginary part (mode='im')"
381386
]
382387
},
383388
{
@@ -391,7 +396,7 @@
391396
},
392397
{
393398
"cell_type": "code",
394-
"execution_count": 9,
399+
"execution_count": null,
395400
"id": "3afd314d",
396401
"metadata": {
397402
"editable": true,
@@ -403,8 +408,7 @@
403408
"outputs": [],
404409
"source": [
405410
"ex1=ex.copy() #Copy the experimental system\n",
406-
"_=ex1 #Change the chemical shift to 100 Hz\n",
407-
"#Suppress text output by setting equal to _"
411+
"ex1 #Change the chemical shift to 100 Hz"
408412
]
409413
},
410414
{
@@ -429,7 +433,8 @@
429433
"outputs": [],
430434
"source": [
431435
"L= #Create the Liouvillian\n",
432-
"_=L.plot('Lcoh',mode='im') #Plot the coherent Liouvillian"
436+
"_=L.plot('Lcoh',mode='im') #Plot the coherent Liouvillian\n",
437+
"#Suppress text output by setting equal to _"
433438
]
434439
},
435440
{
@@ -769,11 +774,11 @@
769774
"# Calculate size of the one-bond dipole coupling for H–N\n",
770775
"delta=sl.Tools.dipole_coupling(.102,'15N','1H') #Distance, nuc1, nuc2\n",
771776
"\n",
772-
"# Define dipole to use delta calculated above\n",
777+
"# Define dipole to use delta calculated above (delta=delta)\n",
773778
"ex0.\n",
774-
"# Define 'CSA' to have a delta of 113 (ppm), and euler angles of euler_d=[0,23,0]\n",
779+
"# Define 'CSA' to have a delta of 113 ppm (delta=113), and euler angles of euler_d=[0,23,0]\n",
775780
"ex0.\n",
776-
"# Define chemical shift ('CS') to have a value of -5 ppm\n",
781+
"# Define chemical shift ('CS') to have a value of -5 ppm (ppm=-5)\n",
777782
"ex0."
778783
]
779784
},

JupyterBook/_build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)