Skip to content

Commit a80d802

Browse files
htdocs update (master)
1 parent ee87ad9 commit a80d802

27 files changed

+343
-346
lines changed

_static/searchtools.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,11 @@ const Search = {
513513
// perform the search on the required terms
514514
searchTerms.forEach((word) => {
515515
const files = [];
516+
// find documents, if any, containing the query word in their text/title term indices
517+
// use Object.hasOwnProperty to avoid mismatching against prototype properties
516518
const arr = [
517-
{ files: terms[word], score: Scorer.term },
518-
{ files: titleTerms[word], score: Scorer.title },
519+
{ files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term },
520+
{ files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title },
519521
];
520522
// add support for partial matches
521523
if (word.length > 2) {
@@ -547,8 +549,9 @@ const Search = {
547549

548550
// set score for the word in each file
549551
recordFiles.forEach((file) => {
550-
if (!scoreMap.has(file)) scoreMap.set(file, {});
551-
scoreMap.get(file)[word] = record.score;
552+
if (!scoreMap.has(file)) scoreMap.set(file, new Map());
553+
const fileScores = scoreMap.get(file);
554+
fileScores.set(word, record.score);
552555
});
553556
});
554557

@@ -587,7 +590,7 @@ const Search = {
587590
break;
588591

589592
// select one (max) score for the file.
590-
const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w]));
593+
const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w)));
591594
// add result to the result list
592595
results.push([
593596
docNames[file],

documentation/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<script src="../_static/documentation_options.js?v=5929fcd5"></script>
1616
<script src="../_static/doctools.js?v=9bcbadda"></script>
1717
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
18-
<script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
1918
<link rel="icon" href="../_static/favicon.ico"/>
2019
<link rel="author" title="About these documents" href="../about.html" />
2120
<link rel="index" title="Index" href="../genindex.html" />

documentation/library_reference/algorithms/dials.algorithms.background.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<span id="dials-algorithms-background"></span><h1>dials.algorithms.background<a class="headerlink" href="#module-dials.algorithms.background" title="Link to this heading"></a></h1>
5050
<dl class="py class">
5151
<dt class="sig sig-object py" id="dials.algorithms.background.RadialAverage">
52-
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">dials.algorithms.background.</span></span><span class="sig-name descname"><span class="pre">RadialAverage</span></span><a class="headerlink" href="#dials.algorithms.background.RadialAverage" title="Link to this definition"></a></dt>
52+
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">dials.algorithms.background.</span></span><span class="sig-name descname"><span class="pre">RadialAverage</span></span><a class="headerlink" href="#dials.algorithms.background.RadialAverage" title="Link to this definition"></a></dt>
5353
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">instance</span></code></p>
5454
<dl class="py method">
5555
<dt class="sig sig-object py" id="dials.algorithms.background.RadialAverage.__init__">

documentation/library_reference/algorithms/dials.algorithms.indexing.html

Lines changed: 32 additions & 32 deletions
Large diffs are not rendered by default.

documentation/library_reference/algorithms/dials.algorithms.integration.html

Lines changed: 33 additions & 33 deletions
Large diffs are not rendered by default.

documentation/library_reference/algorithms/dials.algorithms.refinement.html

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

documentation/library_reference/algorithms/dials.algorithms.scaling.html

Lines changed: 29 additions & 29 deletions
Large diffs are not rendered by default.

documentation/library_reference/algorithms/dials.algorithms.spot_finding.html

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

documentation/library_reference/algorithms/dials.algorithms.spot_prediction.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<span id="dials-algorithms-spot-prediction"></span><h1>dials.algorithms.spot_prediction<a class="headerlink" href="#module-dials.algorithms.spot_prediction.reflection_predictor" title="Link to this heading"></a></h1>
5050
<dl class="py class">
5151
<dt class="sig sig-object py" id="dials.algorithms.spot_prediction.reflection_predictor.ReflectionPredictor">
52-
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">dials.algorithms.spot_prediction.reflection_predictor.</span></span><span class="sig-name descname"><span class="pre">ReflectionPredictor</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">experiment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dmin</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dmax</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">margin</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">force_static</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">padding</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/dials/algorithms/spot_prediction/reflection_predictor.html#ReflectionPredictor"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#dials.algorithms.spot_prediction.reflection_predictor.ReflectionPredictor" title="Link to this definition"></a></dt>
52+
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">dials.algorithms.spot_prediction.reflection_predictor.</span></span><span class="sig-name descname"><span class="pre">ReflectionPredictor</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">experiment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dmin</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dmax</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">margin</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">force_static</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">padding</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/dials/algorithms/spot_prediction/reflection_predictor.html#ReflectionPredictor"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#dials.algorithms.spot_prediction.reflection_predictor.ReflectionPredictor" title="Link to this definition"></a></dt>
5353
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.13)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
5454
<p>A reflection predictor that takes a number of experiments and does the proper
5555
prediction for each type of experiment.</p>

0 commit comments

Comments
 (0)