Skip to content

Commit caadfc8

Browse files
Merge pull request #53 from dragonyanglong/master
publish pdfgui2
2 parents f522ab6 + f110459 commit caadfc8

38 files changed

+1499
-1332
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 19a9680bc4f5d20726dfe9102b5bec7a
3+
config: 5657174eec71df88fdb2768b79ff577e
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

NSFnugget.html

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11

22
<!DOCTYPE html>
33

4-
<html>
4+
<html lang="en">
55
<head>
66
<meta charset="utf-8" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
8+
89
<title>Enabling new science in nanoscale structure characterization of complex materials &#8212; DiffPy documentation</title>
910
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
1011
<link rel="stylesheet" type="text/css" href="_static/bootstrap-sphinx.css" />
1112
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
1213
<script src="_static/jquery.js"></script>
1314
<script src="_static/underscore.js"></script>
15+
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
1416
<script src="_static/doctools.js"></script>
17+
<script src="_static/sphinx_highlight.js"></script>
1518
<link rel="shortcut icon" href="_static/diffpy_logo_header.ico"/>
1619
<link rel="search" title="Search" href="search.html" />
1720
<link rel="next" title="Acknowledgements" href="acknowledgements.html" />
@@ -92,8 +95,8 @@
9295
<div class="row">
9396
<div class="body col-md-12 content" role="main">
9497

95-
<div class="section" id="enabling-new-science-in-nanoscale-structure-characterization-of-complex-materials">
96-
<h1>Enabling new science in nanoscale structure characterization of complex materials<a class="headerlink" href="#enabling-new-science-in-nanoscale-structure-characterization-of-complex-materials" title="Permalink to this headline"></a></h1>
98+
<section id="enabling-new-science-in-nanoscale-structure-characterization-of-complex-materials">
99+
<h1>Enabling new science in nanoscale structure characterization of complex materials<a class="headerlink" href="#enabling-new-science-in-nanoscale-structure-characterization-of-complex-materials" title="Permalink to this heading"></a></h1>
97100
<p><em>C. L. Farrow, P. Juhás, J. W. Liu, D. Bryndin, E. S. Božin, J. Bloch,
98101
and S. J. L. Billinge (Michigan State University)</em></p>
99102
<p>To understand and control the properties of materials it is necessary to have
@@ -105,10 +108,12 @@ <h1>Enabling new science in nanoscale structure characterization of complex mate
105108
sub-group of the DANSE project recently released a new software tool that
106109
will have a large impact in nanostructure characterization using x-ray and
107110
neutron diffraction.</p>
108-
<div class="figure align-center" id="id3">
111+
<figure class="align-center" id="id3">
109112
<a class="reference internal image-reference" href="_images/PDFgui_screenshot_707.png"><img alt="_images/PDFgui_screenshot_707.png" src="_images/PDFgui_screenshot_707.png" style="width: 399.5px; height: 294.5px;" /></a>
110-
<p class="caption"><span class="caption-text">Screen-shot of PDFgui during a refinement of multiple data-sets</span><a class="headerlink" href="#id3" title="Permalink to this image"></a></p>
111-
</div>
113+
<figcaption>
114+
<p><span class="caption-text">Screen-shot of PDFgui during a refinement of multiple data-sets</span><a class="headerlink" href="#id3" title="Permalink to this image"></a></p>
115+
</figcaption>
116+
</figure>
112117
<p>The diffraction data are Fourier transformed to obtain the atomic pair distribution
113118
function (PDF) and analyzed by quantitatively fitting nanostructure models to the
114119
data. PDFgui allows rapid setup of individual and multiple
@@ -117,20 +122,21 @@ <h1>Enabling new science in nanoscale structure characterization of complex mate
117122
refinements similar to those shown, allowing researchers to make scientific
118123
discoveries during data collection, at the beam-time, and not a-posteriori after
119124
the beamtime is over. PDFgui has numerous extensions
120-
that are described in more detail in <a class="footnote-reference brackets" href="#id2" id="id1">1</a>. The beta version of PDFgui
125+
that are described in more detail in <a class="footnote-reference brackets" href="#id2" id="id1" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a>. The beta version of PDFgui
121126
is now in public release, available for Windows, Linux and Mac OSX platforms,
122127
and in the first month has been downloaded 220 times. More information can be
123128
found at <a class="reference external" href="https://www.diffpy.org">https://www.diffpy.org</a>.</p>
124-
<dl class="footnote brackets">
125-
<dt class="label" id="id2"><span class="brackets"><a class="fn-backref" href="#id1">1</a></span></dt>
126-
<dd><p>C. L. Farrow, P. Juhás, J. W. Liu, D. Bryndin, E. S. Božin, J. Bloch,
129+
<aside class="footnote-list brackets">
130+
<aside class="footnote brackets" id="id2" role="note">
131+
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id1">1</a><span class="fn-bracket">]</span></span>
132+
<p>C. L. Farrow, P. Juhás, J. W. Liu, D. Bryndin, E. S. Božin, J. Bloch,
127133
Th. Proffen and S. J. L. Billinge, <a class="reference external" href="https://doi.org/10.1088/0953-8984/19/33/335219">PDFfit2 and PDFgui: computer
128134
programs for studying nanostructure in crystals</a>,
129135
<em>J. Phys.: Condens. Mat.</em> <strong>19</strong>, 335219 (2007)
130136
<a class="reference external" href="doc/pdfgui/Farrow-jpcm-2007.pdf"><img alt="downloadFarrowJpcm07" src="_images/pdficon_small.png" /></a></p>
131-
</dd>
132-
</dl>
133-
</div>
137+
</aside>
138+
</aside>
139+
</section>
134140

135141

136142
</div>
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/*
2+
* _sphinx_javascript_frameworks_compat.js
3+
* ~~~~~~~~~~
4+
*
5+
* Compatability shim for jQuery and underscores.js.
6+
*
7+
* WILL BE REMOVED IN Sphinx 6.0
8+
* xref RemovedInSphinx60Warning
9+
*
10+
*/
11+
12+
/**
13+
* select a different prefix for underscore
14+
*/
15+
$u = _.noConflict();
16+
17+
18+
/**
19+
* small helper function to urldecode strings
20+
*
21+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
22+
*/
23+
jQuery.urldecode = function(x) {
24+
if (!x) {
25+
return x
26+
}
27+
return decodeURIComponent(x.replace(/\+/g, ' '));
28+
};
29+
30+
/**
31+
* small helper function to urlencode strings
32+
*/
33+
jQuery.urlencode = encodeURIComponent;
34+
35+
/**
36+
* This function returns the parsed url parameters of the
37+
* current request. Multiple values per key are supported,
38+
* it will always return arrays of strings for the value parts.
39+
*/
40+
jQuery.getQueryParameters = function(s) {
41+
if (typeof s === 'undefined')
42+
s = document.location.search;
43+
var parts = s.substr(s.indexOf('?') + 1).split('&');
44+
var result = {};
45+
for (var i = 0; i < parts.length; i++) {
46+
var tmp = parts[i].split('=', 2);
47+
var key = jQuery.urldecode(tmp[0]);
48+
var value = jQuery.urldecode(tmp[1]);
49+
if (key in result)
50+
result[key].push(value);
51+
else
52+
result[key] = [value];
53+
}
54+
return result;
55+
};
56+
57+
/**
58+
* highlight a given string on a jquery object by wrapping it in
59+
* span elements with the given class name.
60+
*/
61+
jQuery.fn.highlightText = function(text, className) {
62+
function highlight(node, addItems) {
63+
if (node.nodeType === 3) {
64+
var val = node.nodeValue;
65+
var pos = val.toLowerCase().indexOf(text);
66+
if (pos >= 0 &&
67+
!jQuery(node.parentNode).hasClass(className) &&
68+
!jQuery(node.parentNode).hasClass("nohighlight")) {
69+
var span;
70+
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
71+
if (isInSVG) {
72+
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
73+
} else {
74+
span = document.createElement("span");
75+
span.className = className;
76+
}
77+
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
78+
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
79+
document.createTextNode(val.substr(pos + text.length)),
80+
node.nextSibling));
81+
node.nodeValue = val.substr(0, pos);
82+
if (isInSVG) {
83+
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
84+
var bbox = node.parentElement.getBBox();
85+
rect.x.baseVal.value = bbox.x;
86+
rect.y.baseVal.value = bbox.y;
87+
rect.width.baseVal.value = bbox.width;
88+
rect.height.baseVal.value = bbox.height;
89+
rect.setAttribute('class', className);
90+
addItems.push({
91+
"parent": node.parentNode,
92+
"target": rect});
93+
}
94+
}
95+
}
96+
else if (!jQuery(node).is("button, select, textarea")) {
97+
jQuery.each(node.childNodes, function() {
98+
highlight(this, addItems);
99+
});
100+
}
101+
}
102+
var addItems = [];
103+
var result = this.each(function() {
104+
highlight(this, addItems);
105+
});
106+
for (var i = 0; i < addItems.length; ++i) {
107+
jQuery(addItems[i].parent).before(addItems[i].target);
108+
}
109+
return result;
110+
};
111+
112+
/*
113+
* backward compatibility for jQuery.browser
114+
* This will be supported until firefox bug is fixed.
115+
*/
116+
if (!jQuery.browser) {
117+
jQuery.uaMatch = function(ua) {
118+
ua = ua.toLowerCase();
119+
120+
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
121+
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
122+
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
123+
/(msie) ([\w.]+)/.exec(ua) ||
124+
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
125+
[];
126+
127+
return {
128+
browser: match[ 1 ] || "",
129+
version: match[ 2 ] || "0"
130+
};
131+
};
132+
jQuery.browser = {};
133+
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
134+
}

_static/basic.css

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ table.modindextable td {
222222
/* -- general body styles --------------------------------------------------- */
223223

224224
div.body {
225-
min-width: 450px;
225+
min-width: 360px;
226226
max-width: 800px;
227227
}
228228

@@ -237,16 +237,6 @@ a.headerlink {
237237
visibility: hidden;
238238
}
239239

240-
a.brackets:before,
241-
span.brackets > a:before{
242-
content: "[";
243-
}
244-
245-
a.brackets:after,
246-
span.brackets > a:after {
247-
content: "]";
248-
}
249-
250240
h1:hover > a.headerlink,
251241
h2:hover > a.headerlink,
252242
h3:hover > a.headerlink,
@@ -334,13 +324,15 @@ aside.sidebar {
334324
p.sidebar-title {
335325
font-weight: bold;
336326
}
337-
327+
nav.contents,
328+
aside.topic,
338329
div.admonition, div.topic, blockquote {
339330
clear: left;
340331
}
341332

342333
/* -- topics ---------------------------------------------------------------- */
343-
334+
nav.contents,
335+
aside.topic,
344336
div.topic {
345337
border: 1px solid #ccc;
346338
padding: 7px;
@@ -379,13 +371,17 @@ div.body p.centered {
379371

380372
div.sidebar > :last-child,
381373
aside.sidebar > :last-child,
374+
nav.contents > :last-child,
375+
aside.topic > :last-child,
382376
div.topic > :last-child,
383377
div.admonition > :last-child {
384378
margin-bottom: 0;
385379
}
386380

387381
div.sidebar::after,
388382
aside.sidebar::after,
383+
nav.contents::after,
384+
aside.topic::after,
389385
div.topic::after,
390386
div.admonition::after,
391387
blockquote::after {
@@ -428,10 +424,6 @@ table.docutils td, table.docutils th {
428424
border-bottom: 1px solid #aaa;
429425
}
430426

431-
table.footnote td, table.footnote th {
432-
border: 0 !important;
433-
}
434-
435427
th {
436428
text-align: left;
437429
padding-right: 5px;
@@ -614,20 +606,26 @@ ol.simple p,
614606
ul.simple p {
615607
margin-bottom: 0;
616608
}
617-
618-
dl.footnote > dt,
619-
dl.citation > dt {
609+
aside.footnote > span,
610+
div.citation > span {
620611
float: left;
621-
margin-right: 0.5em;
622612
}
623-
624-
dl.footnote > dd,
625-
dl.citation > dd {
613+
aside.footnote > span:last-of-type,
614+
div.citation > span:last-of-type {
615+
padding-right: 0.5em;
616+
}
617+
aside.footnote > p {
618+
margin-left: 2em;
619+
}
620+
div.citation > p {
621+
margin-left: 4em;
622+
}
623+
aside.footnote > p:last-of-type,
624+
div.citation > p:last-of-type {
626625
margin-bottom: 0em;
627626
}
628-
629-
dl.footnote > dd:after,
630-
dl.citation > dd:after {
627+
aside.footnote > p:last-of-type:after,
628+
div.citation > p:last-of-type:after {
631629
content: "";
632630
clear: both;
633631
}
@@ -644,10 +642,6 @@ dl.field-list > dt {
644642
padding-right: 5px;
645643
}
646644

647-
dl.field-list > dt:after {
648-
content: ":";
649-
}
650-
651645
dl.field-list > dd {
652646
padding-left: 0.5em;
653647
margin-top: 0em;

0 commit comments

Comments
 (0)