diff --git a/.buildinfo b/.buildinfo index 9c7e58f5..f2ebd0a8 100644 --- a/.buildinfo +++ b/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 27c7f503f98a773a1024679d78694c25 +config: 2b084f06778b34a90407f4a793f89995 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/.doctrees/cli.doctree b/.doctrees/cli.doctree index 0173f24a..9242bc01 100644 Binary files a/.doctrees/cli.doctree and b/.doctrees/cli.doctree differ diff --git a/.doctrees/cutting.doctree b/.doctrees/cutting.doctree index 7b406d63..4b9341d6 100644 Binary files a/.doctrees/cutting.doctree and b/.doctrees/cutting.doctree differ diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle index dee765a4..c1787e20 100644 Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ diff --git a/.doctrees/index.doctree b/.doctrees/index.doctree index d7b246df..7089fef1 100644 Binary files a/.doctrees/index.doctree and b/.doctrees/index.doctree differ diff --git a/.doctrees/math_ref.doctree b/.doctrees/math_ref.doctree index 842dfecd..f0145d1a 100644 Binary files a/.doctrees/math_ref.doctree and b/.doctrees/math_ref.doctree differ diff --git a/.doctrees/quickstart.doctree b/.doctrees/quickstart.doctree index d1c8ae8f..29c70dde 100644 Binary files a/.doctrees/quickstart.doctree and b/.doctrees/quickstart.doctree differ diff --git a/.doctrees/slicing.doctree b/.doctrees/slicing.doctree index d952b1ae..9baa6b81 100644 Binary files a/.doctrees/slicing.doctree and b/.doctrees/slicing.doctree differ diff --git a/_static/basic.css b/_static/basic.css index 30fee9d0..f316efcb 100644 --- a/_static/basic.css +++ b/_static/basic.css @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- basic theme. * - * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/_static/doctools.js b/_static/doctools.js index d06a71d7..4d67807d 100644 --- a/_static/doctools.js +++ b/_static/doctools.js @@ -4,7 +4,7 @@ * * Base JavaScript utilities for all Sphinx HTML documentation. * - * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/_static/language_data.js b/_static/language_data.js index 250f5665..367b8ed8 100644 --- a/_static/language_data.js +++ b/_static/language_data.js @@ -5,7 +5,7 @@ * This script contains the language-specific data used by searchtools.js, * namely the list of stopwords, stemmer, scorer and splitter. * - * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ @@ -13,7 +13,7 @@ var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; -/* Non-minified version is copied as a separate JS file, is available */ +/* Non-minified version is copied as a separate JS file, if available */ /** * Porter Stemmer diff --git a/_static/searchtools.js b/_static/searchtools.js index 7918c3fa..92da3f8b 100644 --- a/_static/searchtools.js +++ b/_static/searchtools.js @@ -4,7 +4,7 @@ * * Sphinx JavaScript utilities for the full-text search. * - * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ @@ -99,7 +99,7 @@ const _displayItem = (item, searchTerms, highlightTerms) => { .then((data) => { if (data) listItem.appendChild( - Search.makeSearchSummary(data, searchTerms) + Search.makeSearchSummary(data, searchTerms, anchor) ); // highlight search terms in the summary if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js @@ -116,8 +116,8 @@ const _finishSearch = (resultCount) => { ); else Search.status.innerText = _( - `Search finished, found ${resultCount} page(s) matching the search query.` - ); + "Search finished, found ${resultCount} page(s) matching the search query." + ).replace('${resultCount}', resultCount); }; const _displayNextItem = ( results, @@ -137,6 +137,22 @@ const _displayNextItem = ( // search finished, update title and status message else _finishSearch(resultCount); }; +// Helper function used by query() to order search results. +// Each input is an array of [docname, title, anchor, descr, score, filename]. +// Order the results by score (in opposite order of appearance, since the +// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically. +const _orderResultsByScoreThenName = (a, b) => { + const leftScore = a[4]; + const rightScore = b[4]; + if (leftScore === rightScore) { + // same score: sort alphabetically + const leftTitle = a[1].toLowerCase(); + const rightTitle = b[1].toLowerCase(); + if (leftTitle === rightTitle) return 0; + return leftTitle > rightTitle ? -1 : 1; // inverted is intentional + } + return leftScore > rightScore ? 1 : -1; +}; /** * Default splitQuery function. Can be overridden in ``sphinx.search`` with a @@ -160,13 +176,26 @@ const Search = { _queued_query: null, _pulse_status: -1, - htmlToText: (htmlString) => { + htmlToText: (htmlString, anchor) => { const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html'); - htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() }); + for (const removalQuery of [".headerlinks", "script", "style"]) { + htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() }); + } + if (anchor) { + const anchorContent = htmlElement.querySelector(`[role="main"] ${anchor}`); + if (anchorContent) return anchorContent.textContent; + + console.warn( + `Anchored content block not found. Sphinx search tries to obtain it via DOM query '[role=main] ${anchor}'. Check your theme or template.` + ); + } + + // if anchor not specified or not found, fall back to main content const docContent = htmlElement.querySelector('[role="main"]'); - if (docContent !== undefined) return docContent.textContent; + if (docContent) return docContent.textContent; + console.warn( - "Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template." + "Content block not found. Sphinx search tries to obtain it via DOM query '[role=main]'. Check your theme or template." ); return ""; }, @@ -239,16 +268,7 @@ const Search = { else Search.deferQuery(query); }, - /** - * execute search (requires search index to be loaded) - */ - query: (query) => { - const filenames = Search._index.filenames; - const docNames = Search._index.docnames; - const titles = Search._index.titles; - const allTitles = Search._index.alltitles; - const indexEntries = Search._index.indexentries; - + _parseQuery: (query) => { // stem the search terms and add them to the correct list const stemmer = new Stemmer(); const searchTerms = new Set(); @@ -284,16 +304,32 @@ const Search = { // console.info("required: ", [...searchTerms]); // console.info("excluded: ", [...excludedTerms]); - // array of [docname, title, anchor, descr, score, filename] - let results = []; + return [query, searchTerms, excludedTerms, highlightTerms, objectTerms]; + }, + + /** + * execute search (requires search index to be loaded) + */ + _performSearch: (query, searchTerms, excludedTerms, highlightTerms, objectTerms) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + const allTitles = Search._index.alltitles; + const indexEntries = Search._index.indexentries; + + // Collect multiple result groups to be sorted separately and then ordered. + // Each is an array of [docname, title, anchor, descr, score, filename]. + const normalResults = []; + const nonMainIndexResults = []; + _removeChildren(document.getElementById("search-progress")); - const queryLower = query.toLowerCase(); + const queryLower = query.toLowerCase().trim(); for (const [title, foundTitles] of Object.entries(allTitles)) { - if (title.toLowerCase().includes(queryLower) && (queryLower.length >= title.length/2)) { + if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) { for (const [file, id] of foundTitles) { let score = Math.round(100 * queryLower.length / title.length) - results.push([ + normalResults.push([ docNames[file], titles[file] !== title ? `${titles[file]} > ${title}` : title, id !== null ? "#" + id : "", @@ -308,46 +344,47 @@ const Search = { // search for explicit entries in index directives for (const [entry, foundEntries] of Object.entries(indexEntries)) { if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) { - for (const [file, id] of foundEntries) { - let score = Math.round(100 * queryLower.length / entry.length) - results.push([ + for (const [file, id, isMain] of foundEntries) { + const score = Math.round(100 * queryLower.length / entry.length); + const result = [ docNames[file], titles[file], id ? "#" + id : "", null, score, filenames[file], - ]); + ]; + if (isMain) { + normalResults.push(result); + } else { + nonMainIndexResults.push(result); + } } } } // lookup as object objectTerms.forEach((term) => - results.push(...Search.performObjectSearch(term, objectTerms)) + normalResults.push(...Search.performObjectSearch(term, objectTerms)) ); // lookup as search terms in fulltext - results.push(...Search.performTermsSearch(searchTerms, excludedTerms)); + normalResults.push(...Search.performTermsSearch(searchTerms, excludedTerms)); // let the scorer override scores with a custom scoring function - if (Scorer.score) results.forEach((item) => (item[4] = Scorer.score(item))); - - // now sort the results by score (in opposite order of appearance, since the - // display function below uses pop() to retrieve items) and then - // alphabetically - results.sort((a, b) => { - const leftScore = a[4]; - const rightScore = b[4]; - if (leftScore === rightScore) { - // same score: sort alphabetically - const leftTitle = a[1].toLowerCase(); - const rightTitle = b[1].toLowerCase(); - if (leftTitle === rightTitle) return 0; - return leftTitle > rightTitle ? -1 : 1; // inverted is intentional - } - return leftScore > rightScore ? 1 : -1; - }); + if (Scorer.score) { + normalResults.forEach((item) => (item[4] = Scorer.score(item))); + nonMainIndexResults.forEach((item) => (item[4] = Scorer.score(item))); + } + + // Sort each group of results by score and then alphabetically by name. + normalResults.sort(_orderResultsByScoreThenName); + nonMainIndexResults.sort(_orderResultsByScoreThenName); + + // Combine the result groups in (reverse) order. + // Non-main index entries are typically arbitrary cross-references, + // so display them after other results. + let results = [...nonMainIndexResults, ...normalResults]; // remove duplicate search results // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept @@ -361,7 +398,12 @@ const Search = { return acc; }, []); - results = results.reverse(); + return results.reverse(); + }, + + query: (query) => { + const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query); + const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms); // for debugging //Search.lastresults = results.slice(); // a copy @@ -466,14 +508,18 @@ const Search = { // add support for partial matches if (word.length > 2) { const escapedWord = _escapeRegExp(word); - Object.keys(terms).forEach((term) => { - if (term.match(escapedWord) && !terms[word]) - arr.push({ files: terms[term], score: Scorer.partialTerm }); - }); - Object.keys(titleTerms).forEach((term) => { - if (term.match(escapedWord) && !titleTerms[word]) - arr.push({ files: titleTerms[word], score: Scorer.partialTitle }); - }); + if (!terms.hasOwnProperty(word)) { + Object.keys(terms).forEach((term) => { + if (term.match(escapedWord)) + arr.push({ files: terms[term], score: Scorer.partialTerm }); + }); + } + if (!titleTerms.hasOwnProperty(word)) { + Object.keys(titleTerms).forEach((term) => { + if (term.match(escapedWord)) + arr.push({ files: titleTerms[term], score: Scorer.partialTitle }); + }); + } } // no match but word was a required one @@ -496,9 +542,8 @@ const Search = { // create the mapping files.forEach((file) => { - if (fileMap.has(file) && fileMap.get(file).indexOf(word) === -1) - fileMap.get(file).push(word); - else fileMap.set(file, [word]); + if (!fileMap.has(file)) fileMap.set(file, [word]); + else if (fileMap.get(file).indexOf(word) === -1) fileMap.get(file).push(word); }); }); @@ -549,8 +594,8 @@ const Search = { * search summary for a given text. keywords is a list * of stemmed words. */ - makeSearchSummary: (htmlText, keywords) => { - const text = Search.htmlToText(htmlText); + makeSearchSummary: (htmlText, keywords, anchor) => { + const text = Search.htmlToText(htmlText, anchor); if (text === "") return null; const textLower = text.toLowerCase(); diff --git a/_static/sphinxdoc.css b/_static/sphinxdoc.css index 1e9ffe0a..b03830b4 100644 --- a/_static/sphinxdoc.css +++ b/_static/sphinxdoc.css @@ -5,7 +5,7 @@ * Sphinx stylesheet -- sphinxdoc theme. Originally created by * Armin Ronacher for Werkzeug. * - * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/cli.html b/cli.html index 381091df..0b7f8571 100644 --- a/cli.html +++ b/cli.html @@ -7,9 +7,9 @@ 4. Command Line Interface — MSlice 2.9 documentation - + - + @@ -242,7 +242,7 @@

This Page

rel="nofollow">Show Source - + @@ -274,7 +274,7 @@

Navigation

\ No newline at end of file diff --git a/cutting.html b/cutting.html index c17f4079..aeed115c 100644 --- a/cutting.html +++ b/cutting.html @@ -7,9 +7,9 @@ 2. Taking Cuts — MSlice 2.9 documentation - + - + @@ -73,14 +73,16 @@

2. Taking CutsKeep. To make a Kept figure Current again (for example to use Plot Over), click Make Current. See Keep / Make Current for more details.

-_images/cut_options.png +_images/cut_options.png +

You can edit the axes limits, scale and titles by double-clicking on the relevant axis in the plot window. Clicking on each plot line will also allow you to change its colour and symbol. These functionalities are also accessible from the options button (the cog symbol) in the plot figure toolbar.

2.2. Overplotting powder lines

-_images/powder_lines.png +_images/powder_lines.png +

To help with a “first look” data analysis, MSlice can overplot on the cuts the positions of powder reflections from common sample environment materials (Aluminium, Copper, Niobium and Tantalum). These functionalities may be accessed from the Information menu option as shown above.

@@ -90,7 +92,8 @@

2.2. Overplotting powder lines

2.3. Converting intensity information in displayed data in cuts

-_images/intensity_chi_cut.png +_images/intensity_chi_cut.png +

In addition to displaying the cut data as S(Q, \omega), the cut figure window can also display the data with intensity information converted.

The different options available are:

@@ -188,7 +191,7 @@

This Page

rel="nofollow">Show Source - + @@ -220,7 +223,7 @@

Navigation

\ No newline at end of file diff --git a/genindex.html b/genindex.html index f22e1b7e..40b863e8 100644 --- a/genindex.html +++ b/genindex.html @@ -6,9 +6,9 @@ Index — MSlice 2.9 documentation - + - + @@ -43,7 +43,7 @@

Index

@@ -69,7 +69,7 @@

Navigation

\ No newline at end of file diff --git a/index.html b/index.html index 3ca4d296..ad41ce15 100644 --- a/index.html +++ b/index.html @@ -7,9 +7,9 @@ MSlice for Mantid — MSlice 2.9 documentation - + - + @@ -114,7 +114,7 @@

This Page

rel="nofollow">Show Source - + @@ -143,7 +143,7 @@

Navigation

\ No newline at end of file diff --git a/math_ref.html b/math_ref.html index cb887bbe..90960fb5 100644 --- a/math_ref.html +++ b/math_ref.html @@ -7,9 +7,9 @@ 5. Mathematical Reference — MSlice 2.9 documentation - + - + @@ -230,7 +230,7 @@

This Page

rel="nofollow">Show Source - + @@ -259,7 +259,7 @@

Navigation

\ No newline at end of file diff --git a/quickstart.html b/quickstart.html index 191b2c67..ae5133e3 100644 --- a/quickstart.html +++ b/quickstart.html @@ -7,9 +7,9 @@ 1. Quick Start — MSlice 2.9 documentation - + - + @@ -61,7 +61,8 @@

1.1. Starting MSlice

1.2. Loading Data

-_images/load_tab.png +_images/load_tab.png +

The GUI is divided into three main tabs, a Data Loading tab which shows the filesystem and allows the user to load reduced data files, a Workspace Manager which handles the loaded data, and a Plots tab which provides an easy way to interact with all currently open plots. To reach a particular data folder you can either @@ -97,21 +98,24 @@

1.2. Loading Data

1.4. Plotting a Slice

-_images/data_tab.png +_images/data_tab.png +

Once the Slice tab is enabled (either directly for loaded non-PSD data, or after calculating projections for PSD data) you can click Display to show a 2D slice of the data. The default values of the limits of the data and step sizes are taken from the input data file. You can change these values and replot. Note that there is a minimum step size which is 1/100 of the default step size which is to ensure that the program does not run out of memory for very small step sizes (which have large number of points). For step sizes smaller than the data step size, some pixels will contain no data and will appear empty (white) in the 2D slice. For more details see Slicing from the GUI.

-_images/slice_intensity.png +_images/slice_intensity.png +

Once the slice is displayed (in a separate window), double clicking on the plot or colorbar axes will allow you to change the plot limits, and whether to use a linear or logarithmic axis. Double clicking on the plot or axes titles will allow you to edit them. Both changing the limits and titles can be done using the options menu accessible from the toolbar.

1.5. Interactive Cuts

-_images/interactive_cuts.png +_images/interactive_cuts.png +

From the slice window, you can also select an Interactive Cut which will allow you to select a region of data to integrate into a 1D and dynamically change this region and the corresponding cut. Clicking Interactive Cut will change the cursor to a cross-hair. You should then select a rectangular region in the 2D slice, after which a separate @@ -128,14 +132,16 @@

1.4. Plotting a Slice

1.6. Plotting a Cut

-_images/cut_q.png +_images/cut_q.png +

Instead of an interactive cut, you can use the main GUI to specify more specific limits and step sizes for cuts. This will also allow you to overplot multiple cuts from the same dataset with different integration ranges, or from different datasets. To overplot multiple ranges, you can also use the width parameter. This splits in specified integration ranges into chunks of the widths specified. For example, if from is 0 and to is 10 and width is 3, Mslice will plot 4 cuts which integrate over [0,3], [3,6], [6,9] and [9,10] respectively.

-_images/multi_cut.png +_images/multi_cut.png +

To overplot multiple datasets, you can select multiple workspaces in the left pane (using Shift or Ctrl) and then give common limits, step sizes and integration range, and click Plot. For more details see Cutting from the GUI.

@@ -161,7 +167,8 @@

1.8. Manipulating WorkspacesAdd. A new workspace named after the first selected workspace with _sum appended will be created.

-
_images/subtract_dialog.png +_images/subtract_dialog.png +

To subtract a background dataset from sample dataset(s), first select one or more sample workspace(s). Then click Subtract. A dialog will appear asking you to select the background dataset to subtract and optionally allow you to specify a self-shielding factor. This self-shielding factor is applied to the background dataset first before it @@ -171,7 +178,8 @@

1.8. Manipulating Workspaces1.00. Clicking Ok will produce two subtracted workspaces, MAR28237_Ei10.00meV_subtracted and MAR28236_Ei10.00meV_subtracted. The subtracted dataset can be sliced or cut as usual.

-
_images/subtract_slice.png +_images/subtract_slice.png +

1.9. Energy transfer units

@@ -232,7 +240,7 @@

This Page

rel="nofollow">Show Source - + @@ -264,7 +272,7 @@

Navigation

\ No newline at end of file diff --git a/search.html b/search.html index f2f3256b..5b34e7ad 100644 --- a/search.html +++ b/search.html @@ -6,17 +6,18 @@ Search — MSlice 2.9 documentation - + - + - - + + + \ No newline at end of file diff --git a/searchindex.js b/searchindex.js index 91c36d5c..ae3f1163 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["cli", "cutting", "index", "math_ref", "quickstart", "slicing"], "filenames": ["cli.rst", "cutting.rst", "index.rst", "math_ref.rst", "quickstart.rst", "slicing.rst"], "titles": ["4. Command Line Interface", "2. Taking Cuts", "MSlice for Mantid", "5. Mathematical Reference", "1. Quick Start", "3. Taking Slices"], "terms": {"each": [0, 1, 3, 4], "window": [0, 1, 4, 5], "ha": [0, 3, 4], "an": [0, 1, 3, 4, 5], "option": [0, 1, 4, 5], "file": [0, 1, 2, 3, 4], "menu": [0, 1, 4, 5], "would": [0, 3], "reproduc": 0, "thi": [0, 1, 2, 3, 4, 5], "includ": [0, 1, 2, 3, 4], "full": [0, 3, 4], "histori": 0, "which": [0, 1, 3, 4, 5], "provid": [0, 1, 4, 5], "data": [0, 2, 3], "addition": 0, "ani": [0, 2, 4, 5], "graphic": 0, "chang": [0, 1, 4, 5], "abov": [0, 1, 3, 4, 5], "default": [0, 1, 3, 4, 5], "e": [0, 1, 3, 5], "g": [0, 1, 3, 5], "ax": [0, 1, 4, 5], "titl": [0, 1, 4, 5], "limit": [0, 1, 3, 4, 5], "have": [0, 1, 3, 4, 5], "been": [0, 3, 4], "addit": [0, 1, 4, 5], "inform": [0, 2], "recoil": [0, 2], "bragg": 0, "ad": 0, "The": [0, 1, 3, 4, 5], "can": [0, 1, 3, 4, 5], "either": [0, 1, 4, 5], "written": 0, "copi": [0, 4], "clipboard": 0, "mai": [0, 1, 3, 4, 5], "run": [0, 3, 4], "from": [0, 2, 3, 4], "mantidworkbench": [0, 4], "altern": [0, 4], "when": [0, 1, 4], "also": [0, 1, 3, 4, 5], "ipython": [0, 4], "consol": [0, 4], "gui": [0, 2, 4], "import": 0, "direct": [0, 1, 3], "reload": 0, "importlib": 0, "python": 0, "3": [0, 1, 4], "function": [0, 1, 5], "For": [0, 1, 3, 4, 5], "first": [0, 1, 3, 4, 5], "time": [0, 1], "i": [0, 1, 2, 3, 4, 5], "do": [0, 1, 3, 4], "script_nam": 0, "name": [0, 4], "py": [0, 4], "path": [0, 4], "subsequ": [0, 1, 4], "you": [0, 1, 4, 5], "want": [0, 3, 4], "re": 0, "whilst": [0, 1, 3, 4], "render": 0, "all": [0, 3, 4, 5], "its": [0, 1, 4], "own": 0, "type": [0, 1, 3, 4, 5], "figur": [0, 1, 3, 5], "order": [0, 1, 3, 4], "accommod": 0, "featur": 0, "keep": [0, 1, 2], "make": [0, 1, 2, 3, 5], "current": [0, 1, 2], "interact": [0, 1, 2, 5], "support": [0, 3, 4], "multipl": [0, 1, 4], "per": [0, 3], "subplot": 0, "work": 0, "jupyt": 0, "notebook": 0, "howev": [0, 1, 3, 4], "abl": [0, 1], "To": [0, 1, 4, 5], "1d": [0, 4, 5], "cli": 0, "mc": 0, "pyplot": 0, "plt": 0, "w": [0, 3], "nxspe": [0, 4], "cut_w": 0, "q": [0, 1, 3, 5], "delta": 0, "1": [0, 1, 3, 4, 5], "fig": 0, "add_subplot": 0, "111": 0, "project": [0, 1, 4, 5], "errorbar": [0, 3], "fmt": 0, "ok": [0, 4], "set_ylim": 0, "0": [0, 1, 3, 4], "show": [0, 4], "same": [0, 1, 3, 4, 5], "plain": 0, "onli": [0, 1, 3, 4, 5], "differ": [0, 1, 3, 4, 5], "must": [0, 1, 5], "packag": [0, 1, 4, 5], "instead": [0, 3, 4], "call": [0, 3, 4], "end": 0, "In": [0, 1, 3, 4, 5], "both": [0, 2, 4], "case": [0, 1, 3, 4, 5], "standard": [0, 3], "object": 0, "orient": 0, "set_titl": 0, "set_xlabel": 0, "set_xlim": 0, "etc": 0, "ar": [0, 1, 3, 4, 5], "accept": 0, "note": [0, 1, 2, 4, 5], "specifi": [0, 1, 3, 4, 5], "keyword": 0, "argument": 0, "becaus": [0, 3], "let": 0, "recognis": 0, "final": [0, 1, 4], "pleas": [0, 1, 2, 4, 5], "overrid": 0, "doe": [0, 1, 3, 4], "syntax": 0, "pcolormesh": 0, "2d": [0, 4, 5], "No": 0, "other": [0, 3, 4, 5], "awar": 0, "even": 0, "slice_w": 0, "10": [0, 1, 3, 4], "01": 0, "5": 0, "55": 0, "mesh": 0, "cmap": 0, "coolwarm": 0, "set_clim": 0, "cb": 0, "colorbar": [0, 4], "style": 0, "defin": [0, 5], "wrap": 0, "tool": [0, 2], "overplot": [0, 2, 4], "peak": [0, 3], "These": [0, 1, 4, 5], "shorter": 0, "flexibl": 0, "wsq": 0, "plotcut": 0, "ws2d": 0, "plotslic": 0, "similar": [0, 1], "wai": [0, 4], "normal": 0, "mantid": [0, 1, 3, 4, 5], "nx": [0, 1, 4, 5], "creat": [0, 1, 4], "psd": [0, 1, 2, 5], "one": [0, 3, 4], "map": [0, 4], "convert": [0, 2, 4], "pixelworkspac": 0, "calcul": [0, 1, 3, 4, 5], "step": [0, 1, 3, 4, 5], "befor": [0, 4, 5], "thei": 0, "produc": [0, 1, 3, 4, 5], "directli": [0, 4, 5], "non": [0, 1, 2, 5], "mode": [0, 1, 2, 3, 5], "ring": [0, 4], "histogramworkspac": 0, "": [0, 1, 4, 5], "oper": [0, 3, 4], "perform": [0, 3, 5], "done": [0, 1, 3, 4], "bin": [0, 1, 3, 4, 5], "so": [0, 3, 4], "match": 0, "size": [0, 1, 4, 5], "scalar": 0, "allow": [0, 1, 3, 4, 5], "base": 0, "mdeventworkspac": 0, "mani": 0, "fine": [0, 3], "grain": 0, "intern": 0, "appli": [0, 4], "thu": [0, 3, 5], "recommend": [0, 1], "prior": 0, "convers": [0, 1, 3], "makeproject": 0, "ws1": 0, "ws2": 0, "background": [0, 4], "8": [0, 3], "energi": [0, 1, 2, 3, 5], "transfer": [0, 1, 2, 3, 5], "along": [0, 1, 3, 4], "integr": [0, 1, 3, 4], "over": [0, 1, 3, 4], "leq": [0, 3], "rebin": [0, 1, 3, 4, 5], "between": [0, 1, 3], "mathrm": [0, 3, 5], "aa": [0, 3], "mev": [0, 3, 4], "m": 0, "put": 0, "someth": [0, 3], "width": [0, 1, 3, 4], "box": [0, 1, 4], "qq": 0, "np": 0, "linspac": 0, "2": [0, 5], "4": [0, 1, 4, 5], "f": [0, 3], "plotov": 0, "true": 0, "dataset": [0, 1, 4], "temperatur": [0, 5], "low": [0, 3], "rang": [0, 1, 3, 4], "103154": 0, "103158": 0, "wss": 0, "rr": 0, "append": [0, 4], "seq_": 0, "06d_powder": 0, "page": [1, 2, 3, 5], "more": [1, 3, 4, 5], "detail": [1, 4], "explan": [1, 5], "mslice": [1, 3, 5], "tab": [1, 4, 5], "disabl": [1, 4, 5], "enabl": [1, 4, 5], "click": [1, 4, 5], "cuttabl": 1, "workspac": [1, 2, 5], "load": [1, 2, 5], "see": [1, 3, 4, 5], "md": [1, 4, 5], "event": [1, 4, 5], "plot": [1, 2, 3, 5], "singl": [1, 3, 4], "fill": 1, "valu": [1, 3, 4, 5], "axi": [1, 3, 4], "label": [1, 4], "select": [1, 4, 5], "One": [1, 3], "two": [1, 2, 4], "alreadi": 1, "implicitli": 1, "us": [1, 2, 3, 4, 5], "If": [1, 3, 4, 5], "leav": [1, 3, 4], "input": [1, 3, 4, 5], "empti": [1, 4], "determin": 1, "simultan": [1, 5], "minimum": [1, 4], "maximum": [1, 5], "last": [1, 4], "being": [1, 5], "remaind": 1, "exampl": [1, 2, 3, 4], "6": [1, 3, 4], "9": [1, 4], "respect": [1, 3, 4], "left": [1, 3, 4], "panel": [1, 4], "There": 1, "method": [1, 3], "comput": [1, 3, 4, 5], "drop": [1, 4], "down": [1, 4], "describ": [1, 3], "section": [1, 3, 5], "below": [1, 3, 4], "mathemat": [1, 2], "refer": [1, 2], "norm": [1, 5], "check": [1, 5], "caus": 1, "result": [1, 4], "normalis": [1, 3, 5], "uniti": [1, 3, 5], "button": [1, 4, 5], "without": [1, 3, 4], "clear": 1, "made": [1, 4], "about": 1, "whether": [1, 4], "sens": 1, "possibl": 1, "vice": 1, "versa": 1, "manag": [1, 4, 5], "system": 1, "introduc": [1, 4], "origin": [1, 3, 4, 5], "matlab": [1, 4, 5], "slice": [1, 2], "send": [1, 4], "whatev": 1, "wa": 1, "previous": [1, 3], "wish": 1, "fresh": 1, "particular": [1, 4, 5], "kept": 1, "again": [1, 4], "edit": [1, 4], "scale": [1, 3], "doubl": [1, 4, 5], "relev": [1, 3], "colour": 1, "symbol": 1, "access": [1, 4, 5], "cog": [1, 5], "toolbar": [1, 4], "help": [1, 5], "look": [1, 3, 5], "analysi": [1, 5], "posit": [1, 3, 4, 5], "reflect": [1, 5], "common": [1, 4, 5], "sampl": [1, 4, 5], "environ": [1, 4, 5], "materi": [1, 5], "aluminium": [1, 5], "copper": [1, 5], "niobium": [1, 5], "tantalum": [1, 5], "shown": [1, 5], "arbitrari": [1, 5], "crystallograph": [1, 5], "format": [1, 5], "cif": [1, 5], "we": [1, 3, 5], "pycifrw": [1, 5], "read": [1, 3, 5], "some": [1, 4, 5], "gener": [1, 2, 3, 4, 5], "fullprof": [1, 5], "gsa": [1, 5], "readabl": [1, 5], "vesta": [1, 5], "openbabel": [1, 5], "resav": [1, 5], "them": [1, 3, 4, 5], "omega": [1, 5], "avail": [1, 4, 5], "dynam": [1, 4, 5], "suscept": [1, 5], "chi": [1, 5], "magnet": [1, 3, 5], "cross": [1, 3, 4, 5], "d2sigma": 1, "symmetris": [1, 5], "neutron": [1, 2, 3, 4, 5], "weight": [1, 3, 5], "densiti": [1, 3, 5], "state": [1, 3, 5], "gdo": 1, "informaton": 1, "regard": 1, "relat": [1, 5], "found": 1, "through": 1, "parent": 1, "individu": [1, 4], "toggl": 1, "off": [1, 4], "histo": [1, 4], "correspond": [1, 4], "nexu": [1, 5], "mat": [1, 5], "ascii": [1, 5], "txt": [1, 4, 5], "xye": [1, 4, 5], "further": 1, "manipul": [1, 2], "although": 1, "simpl": 1, "three": [1, 4], "column": [1, 5], "x": [1, 4, 5], "y": [1, 4, 5], "vector": 1, "coordin": [1, 3, 5], "signal": [1, 3, 5], "uncertainti": [1, 3, 5], "imag": [1, 3, 4, 5], "png": [1, 5], "pdf": [1, 5], "icon": [1, 5], "floppi": [1, 5], "disk": [1, 5], "interfac": [1, 2, 4], "workbench": 1, "sum": [1, 3, 4], "averag": [1, 3], "short": [1, 4], "depend": [1, 3, 4, 5], "factor": [1, 3, 4, 5], "coverag": 1, "That": 1, "region": [1, 2, 4], "due": 1, "kinemat": [1, 3], "constraint": 1, "equival": [1, 3, 5], "except": [1, 3], "constant": [1, 3], "proport": 1, "overlap": [1, 3], "give": [1, 4], "markedli": [1, 3], "suitabl": [1, 3], "interest": 1, "set": [1, 4], "entri": 1, "session": 1, "revert": 1, "restart": [1, 4], "visual": 2, "cut": [2, 5], "inelast": [2, 3], "scatter": [2, 3, 4, 5], "version": [2, 4], "process": [2, 3, 4], "matplotlib": 2, "It": [2, 3], "commandlin": 2, "script": [2, 4], "forum": 2, "report": 2, "bug": 2, "suggest": 2, "improv": 2, "program": [2, 3, 4], "quick": 2, "start": [2, 3], "unit": [2, 5], "take": [2, 3], "powder": [2, 4], "line": [2, 3, 4], "intens": [2, 3], "displai": [2, 3, 4], "save": [2, 3, 4], "algorithm": [2, 4, 5], "command": [2, 4], "specif": [2, 4], "algebra": 2, "A": [2, 4, 5], "valid": 2, "search": 2, "behind": 3, "handl": [3, 4], "reduc": [3, 4], "histogram": 3, "detector": [3, 4], "sensit": [3, 4], "element": 3, "terminologi": 3, "horac": 3, "pixel": [3, 4, 5], "sinc": 3, "laboratori": 3, "often": 3, "reciproc": 3, "space": 3, "transform": 3, "need": [3, 4], "mean": [3, 5], "output": 3, "grid": 3, "align": 3, "like": [3, 5], "where": [3, 5], "squar": 3, "red": 3, "repres": 3, "target": 3, "slant": 3, "green": 3, "parallelogram": 3, "As": 3, "discuss": 3, "distinct": 3, "coarser": 3, "dimension": [3, 4], "_or_": 3, "turn": [3, 4], "centr": [3, 5], "point": [3, 4, 5], "treat": 3, "whose": 3, "lie": 3, "within": [3, 4], "illustr": 3, "darker": 3, "shade": 3, "top": 3, "dot": 3, "mark": 3, "j": 3, "th": 3, "y_": 3, "ij": 3, "frac": [3, 5], "n_": 3, "kl": 3, "sum_": 3, "k": 3, "l": 3, "number": [3, 4, 5], "boundari": 3, "express": 3, "numeventsnorm": 3, "convent": [3, 4], "adopt": 3, "error": 3, "consid": 3, "deviat": 3, "quadratur": 3, "user": [3, 4, 5], "necessarili": 3, "too": 3, "lead": 3, "behaviour": [3, 4], "just": [3, 5], "divid": [3, 4], "int": 3, "100": [3, 4], "integratemdhistoworkspac": 3, "those": 3, "index": 3, "c_i": 3, "given": [3, 5], "w_i": 3, "mathcal": 3, "d": [3, 5], "w_": 3, "simpli": 3, "now": 3, "equiv": 3, "equal": 3, "cover": 3, "beyond": 3, "veri": [3, 4], "heavili": 3, "than": [3, 4, 5], "fraction": [3, 4, 5], "area": 3, "f_": 3, "right": 3, "e_": 3, "sqrt": 3, "2_": 3, "hand": [3, 4], "side": [3, 5], "blue": 3, "triangular": 3, "orang": 3, "quadrilater": 3, "larg": [3, 4, 5], "previou": [3, 4], "yield": 3, "indic": 3, "desir": [3, 4, 5], "n_i": 3, "zero": 3, "contain": [3, 4], "otherwis": 3, "less": [3, 5], "denomin": 3, "recov": 3, "usual": [3, 4, 5], "distribut": [3, 4], "assum": 3, "factoris": 3, "out": [3, 4], "bottom": 3, "techniqu": 3, "At": 3, "increas": [3, 4], "decreas": [3, 4], "until": 3, "around": 3, "20": 3, "50": 3, "half": 3, "advantag": 3, "rel": 3, "easi": [3, 4], "measur": 3, "absolut": 3, "isi": [3, 4], "muon": 3, "sourc": 3, "milibarn": [3, 5], "steradian": 3, "formula": 3, "mb": 3, "sr": 3, "u": 3, "differenti": 3, "wherea": [3, 5], "unchang": 3, "\u00e5": 3, "rather": [3, 4, 5], "unfortun": 3, "cannot": [3, 4], "automat": [3, 4], "correct": [3, 5], "seen": 3, "amplifi": 3, "effect": 3, "across": 3, "extrapol": 3, "manifest": 3, "lack": 3, "larger": 3, "associ": 3, "assumpt": 3, "expect": 3, "approxim": 3, "vari": 3, "applic": 3, "chose": [3, 4], "high": 3, "inaccess": 3, "elast": 3, "finit": 3, "crystal": [3, 4], "field": 3, "excit": 3, "obtain": [3, 5], "should": [3, 4], "chosen": 3, "els": 3, "easiest": 4, "stabl": 4, "quit": 4, "rapid": 4, "ongo": 4, "develop": 4, "github": 4, "get": 4, "download": 4, "zip": 4, "extract": 4, "folder": 4, "your": [4, 5], "subfold": 4, "__init__": 4, "externalinterfac": 4, "new": 4, "conda": 4, "via": [4, 5], "anaconda": 4, "org": 4, "channel": 4, "instal": 4, "releas": 4, "c": 4, "latest": 4, "nightli": 4, "recent": 4, "up": [4, 5], "dai": 4, "test": 4, "successfulli": 4, "after": 4, "activ": 4, "font": 4, "ctrl": 4, "editor": 4, "main": 4, "filesystem": 4, "open": 4, "reach": 4, "navig": 4, "tree": 4, "mous": 4, "keyboard": 4, "arrow": 4, "kei": [4, 5], "enter": 4, "backspac": 4, "go": 4, "level": 4, "few": 4, "letter": 4, "jump": 4, "locat": 4, "press": 4, "hold": 4, "shift": 4, "separ": 4, "togeth": 4, "merg": 4, "later": 4, "log": [4, 5], "datafil": [4, 5], "combin": 4, "onc": [4, 5], "switch": [4, 5], "spectromet": 4, "preserv": 4, "autoreduc": 4, "sn": 4, "one2on": 4, "extra": 4, "requir": 4, "multi": 4, "fast": 4, "futur": 4, "momentum": [4, 5], "angl": [4, 5], "anoth": [4, 5], "On": 4, "instrument": 4, "sofqwnormalisedpolygon": [4, 5], "taken": [4, 5], "replot": 4, "ensur": 4, "memori": 4, "small": 4, "smaller": [4, 5], "appear": 4, "white": 4, "linear": 4, "logarithm": 4, "cursor": 4, "hair": 4, "rectangular": 4, "long": 4, "rectangl": 4, "tall": 4, "vertic": 4, "swap": 4, "drag": 4, "updat": 4, "redraw": 4, "outsid": 4, "finish": 4, "remov": 4, "move": 4, "paramet": [4, 5], "split": 4, "chunk": 4, "pane": 4, "waterfal": 4, "modifi": 4, "offset": 4, "control": 4, "everi": 4, "write": 4, "overwrit": 4, "basic": 4, "present": 4, "plan": 4, "subtract": 4, "intend": 4, "primarili": 4, "hyspec": 4, "sever": 4, "add": 4, "_sum": 4, "Then": 4, "dialog": [4, 5], "ask": 4, "self": 4, "shield": 4, "mar28237_ei11": 4, "16mev": 4, "mar28236_ei11": 4, "mar28230_ei11": 4, "00": 4, "mar28237_ei10": 4, "00mev_subtract": 4, "mar28236_ei10": 4, "By": 4, "loss": [4, 5], "cm": 4, "wavenumb": 4, "denot": 4, "choos": 4, "en": 4, "combobox": [4, 5], "item": 4, "old": 4, "ve": 4, "sai": 4, "everyth": 4, "don": 4, "t": 4, "depth": 5, "v": 5, "focu": 5, "reason": 5, "intemedi": 5, "reorganis": 5, "volum": 5, "form": 5, "quickli": 5, "effici": 5, "binmd": 5, "rebin2d": 5, "divis": 5, "strictli": 5, "accur": 5, "checkbox": 5, "text": 5, "bring": 5, "properti": 5, "light": 5, "nuclei": 5, "hydrogen": 5, "h": 5, "deuterium": 5, "helium": 5, "he": 5, "implement": 5, "z": 5, "bose": 5, "dropdown": 5, "seri": 5, "view": 5, "pi": 5, "n": 5, "pm": 5, "_": 5, "mag": 5, "g_n": 5, "r_e": 5, "sigma": 5, "de": 5, "k_i": 5, "k_f": 5, "gain": 5, "neg": 5, "multipli": 5, "exp": 5, "k_bt": 5, "boson": 5, "popul": 5, "creation": 5, "sign": 5, "anihil": 5, "code": 5, "classic": 5, "electron": 5, "radiu": 5, "291": 5, "total": 5, "moment": 5, "mu_b": 5, "four": 5, "spectrum": 5, "versu": 5}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"command": 0, "line": [0, 1, 5], "interfac": 0, "gener": 0, "script": 0, "plot": [0, 4], "us": 0, "matplotlib": 0, "mslice": [0, 2, 4], "specif": 0, "algebra": 0, "manipul": [0, 4], "workspac": [0, 4], "exampl": 0, "load": [0, 4], "cut": [0, 1, 3, 4], "slice": [0, 3, 4, 5], "seri": 0, "take": [1, 5], "from": [1, 5], "gui": [1, 5], "overplot": [1, 5], "powder": [1, 5], "convert": [1, 5], "intens": [1, 5], "inform": [1, 5], "displai": [1, 5], "data": [1, 4, 5], "save": [1, 5], "algorithm": [1, 3], "mantid": 2, "mathemat": 3, "refer": 3, "psd": [3, 4], "non": [3, 4], "A": 3, "note": 3, "unit": [3, 4], "region": 3, "valid": 3, "two": 3, "quick": 4, "start": 4, "mode": 4, "interact": 4, "keep": 4, "make": 4, "current": 4, "energi": 4, "transfer": 4, "recoil": 5, "file": 5}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1, "sphinx": 60}, "alltitles": {"Command Line Interface": [[0, "command-line-interface"]], "Generating scripts": [[0, "generating-scripts"]], "Plotting using Matplotlib interface": [[0, "plotting-using-matplotlib-interface"]], "Plotting using MSlice specific commands": [[0, "plotting-using-mslice-specific-commands"]], "Algebraic Manipulation of Workspaces": [[0, "algebraic-manipulation-of-workspaces"]], "Examples": [[0, "examples"]], "Loading and Cutting / Slicing": [[0, "loading-and-cutting-slicing"]], "Plotting a series of cuts": [[0, "plotting-a-series-of-cuts"]], "Taking Cuts": [[1, "taking-cuts"]], "Cutting from the GUI": [[1, "cutting-from-the-gui"]], "Overplotting powder lines": [[1, "overplotting-powder-lines"]], "Converting intensity information in displayed data in cuts": [[1, "converting-intensity-information-in-displayed-data-in-cuts"]], "Saving cuts": [[1, "saving-cuts"]], "Cutting Algorithms": [[1, "cutting-algorithms"]], "MSlice for Mantid": [[2, "mslice-for-mantid"]], "Mathematical Reference": [[3, "mathematical-reference"]], "PSD Slice": [[3, "psd-slice"]], "PSD Cut": [[3, "psd-cut"]], "Non-PSD Slice": [[3, "non-psd-slice"]], "Non-PSD Cuts": [[3, "non-psd-cuts"]], "A note on units": [[3, "a-note-on-units"]], "A note on the regions of validity of the two algorithms": [[3, "a-note-on-the-regions-of-validity-of-the-two-algorithms"]], "Quick Start": [[4, "quick-start"]], "Starting MSlice": [[4, "starting-mslice"]], "Loading Data": [[4, "loading-data"]], "PSD and non-PSD modes": [[4, "psd-and-non-psd-modes"]], "Plotting a Slice": [[4, "plotting-a-slice"]], "Interactive Cuts": [[4, "interactive-cuts"]], "Plotting a Cut": [[4, "plotting-a-cut"]], "Keep / Make Current": [[4, "keep-make-current"]], "Manipulating Workspaces": [[4, "manipulating-workspaces"]], "Energy transfer units": [[4, "energy-transfer-units"]], "Taking Slices": [[5, "taking-slices"]], "Slicing from the GUI": [[5, "slicing-from-the-gui"]], "Overplotting recoil and powder lines": [[5, "overplotting-recoil-and-powder-lines"]], "Converting intensity information in displayed data in slices": [[5, "converting-intensity-information-in-displayed-data-in-slices"]], "Saving slices to file": [[5, "saving-slices-to-file"]]}, "indexentries": {}}) \ No newline at end of file +Search.setIndex({"alltitles": {"A note on the regions of validity of the two algorithms": [[3, "a-note-on-the-regions-of-validity-of-the-two-algorithms"]], "A note on units": [[3, "a-note-on-units"]], "Algebraic Manipulation of Workspaces": [[0, "algebraic-manipulation-of-workspaces"]], "Command Line Interface": [[0, "command-line-interface"]], "Converting intensity information in displayed data in cuts": [[1, "converting-intensity-information-in-displayed-data-in-cuts"]], "Converting intensity information in displayed data in slices": [[5, "converting-intensity-information-in-displayed-data-in-slices"]], "Cutting Algorithms": [[1, "cutting-algorithms"]], "Cutting from the GUI": [[1, "cutting-from-the-gui"]], "Energy transfer units": [[4, "energy-transfer-units"]], "Examples": [[0, "examples"]], "Generating scripts": [[0, "generating-scripts"]], "Interactive Cuts": [[4, "interactive-cuts"]], "Keep / Make Current": [[4, "keep-make-current"]], "Loading Data": [[4, "loading-data"]], "Loading and Cutting / Slicing": [[0, "loading-and-cutting-slicing"]], "MSlice for Mantid": [[2, "mslice-for-mantid"]], "Manipulating Workspaces": [[4, "manipulating-workspaces"]], "Mathematical Reference": [[3, "mathematical-reference"]], "Non-PSD Cuts": [[3, "non-psd-cuts"]], "Non-PSD Slice": [[3, "non-psd-slice"]], "Overplotting powder lines": [[1, "overplotting-powder-lines"]], "Overplotting recoil and powder lines": [[5, "overplotting-recoil-and-powder-lines"]], "PSD Cut": [[3, "psd-cut"]], "PSD Slice": [[3, "psd-slice"]], "PSD and non-PSD modes": [[4, "psd-and-non-psd-modes"]], "Plotting a Cut": [[4, "plotting-a-cut"]], "Plotting a Slice": [[4, "plotting-a-slice"]], "Plotting a series of cuts": [[0, "plotting-a-series-of-cuts"]], "Plotting using MSlice specific commands": [[0, "plotting-using-mslice-specific-commands"]], "Plotting using Matplotlib interface": [[0, "plotting-using-matplotlib-interface"]], "Quick Start": [[4, "quick-start"]], "Saving cuts": [[1, "saving-cuts"]], "Saving slices to file": [[5, "saving-slices-to-file"]], "Slicing from the GUI": [[5, "slicing-from-the-gui"]], "Starting MSlice": [[4, "starting-mslice"]], "Taking Cuts": [[1, "taking-cuts"]], "Taking Slices": [[5, "taking-slices"]]}, "docnames": ["cli", "cutting", "index", "math_ref", "quickstart", "slicing"], "envversion": {"sphinx": 61, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1}, "filenames": ["cli.rst", "cutting.rst", "index.rst", "math_ref.rst", "quickstart.rst", "slicing.rst"], "indexentries": {}, "objects": {}, "objnames": {}, "objtypes": {}, "terms": {"": [0, 1, 4, 5], "0": [0, 1, 3, 4], "00": 4, "00mev_subtract": 4, "01": 0, "06d_powder": 0, "1": [0, 1, 3, 4, 5], "10": [0, 1, 3, 4], "100": [3, 4], "103154": 0, "103158": 0, "111": 0, "16mev": 4, "1d": [0, 4, 5], "2": [0, 5], "20": 3, "291": 5, "2_": 3, "2d": [0, 4, 5], "3": [0, 1, 4], "4": [0, 1, 4, 5], "5": 0, "50": 3, "55": 0, "6": [1, 3, 4], "8": [0, 3], "9": [1, 4], "A": [2, 4, 5], "As": 3, "At": 3, "By": 4, "For": [0, 1, 3, 4, 5], "If": [1, 3, 4, 5], "In": [0, 1, 3, 4, 5], "It": [2, 3], "No": 0, "On": 4, "One": [1, 3], "That": 1, "The": [0, 1, 3, 4, 5], "Then": 4, "There": 1, "These": [0, 1, 4, 5], "To": [0, 1, 4, 5], "_": 5, "__init__": 4, "_or_": 3, "_sum": 4, "aa": [0, 3], "abl": [0, 1], "about": 1, "abov": [0, 1, 3, 4, 5], "absolut": 3, "accept": 0, "access": [1, 4, 5], "accommod": 0, "accur": 5, "across": 3, "activ": 4, "ad": 0, "add": 4, "add_subplot": 0, "addit": [0, 1, 4, 5], "addition": 0, "adopt": 3, "advantag": 3, "after": 4, "again": [1, 4], "algebra": 2, "algorithm": [2, 4, 5], "align": 3, "all": [0, 3, 4, 5], "allow": [0, 1, 3, 4, 5], "along": [0, 1, 3, 4], "alreadi": 1, "also": [0, 1, 3, 4, 5], "altern": [0, 4], "although": 1, "aluminium": [1, 5], "amplifi": 3, "an": [0, 1, 3, 4, 5], "anaconda": 4, "analysi": [1, 5], "angl": [4, 5], "ani": [0, 2, 4, 5], "anihil": 5, "anoth": [4, 5], "appear": 4, "append": [0, 4], "appli": [0, 4], "applic": 3, "approxim": 3, "ar": [0, 1, 3, 4, 5], "arbitrari": [1, 5], "area": 3, "argument": 0, "around": 3, "arrow": 4, "ascii": [1, 5], "ask": 4, "associ": 3, "assum": 3, "assumpt": 3, "automat": [3, 4], "autoreduc": 4, "avail": [1, 4, 5], "averag": [1, 3], "awar": 0, "ax": [0, 1, 4, 5], "axi": [1, 3, 4], "background": [0, 4], "backspac": 4, "base": 0, "basic": 4, "becaus": [0, 3], "been": [0, 3, 4], "befor": [0, 4, 5], "behaviour": [3, 4], "behind": 3, "being": [1, 5], "below": [1, 3, 4], "between": [0, 1, 3], "beyond": 3, "bin": [0, 1, 3, 4, 5], "binmd": 5, "blue": 3, "bose": 5, "boson": 5, "both": [0, 2, 4], "bottom": 3, "boundari": 3, "box": [0, 1, 4], "bragg": 0, "bring": 5, "bug": 2, "button": [1, 4, 5], "c": 4, "c_i": 3, "calcul": [0, 1, 3, 4, 5], "call": [0, 3, 4], "can": [0, 1, 3, 4, 5], "cannot": [3, 4], "case": [0, 1, 3, 4, 5], "caus": 1, "cb": 0, "centr": [3, 5], "chang": [0, 1, 4, 5], "channel": 4, "check": [1, 5], "checkbox": 5, "chi": [1, 5], "choos": 4, "chose": [3, 4], "chosen": 3, "chunk": 4, "cif": [1, 5], "classic": 5, "clear": 1, "cli": 0, "click": [1, 4, 5], "clipboard": 0, "cm": 4, "cmap": 0, "coarser": 3, "code": 5, "cog": [1, 5], "colorbar": [0, 4], "colour": 1, "column": [1, 5], "combin": 4, "combobox": [4, 5], "command": [2, 4], "commandlin": 2, "common": [1, 4, 5], "comput": [1, 3, 4, 5], "conda": 4, "consid": 3, "consol": [0, 4], "constant": [1, 3], "constraint": 1, "contain": [3, 4], "control": 4, "convent": [3, 4], "convers": [0, 1, 3], "convert": [0, 2, 4], "coolwarm": 0, "coordin": [1, 3, 5], "copi": [0, 4], "copper": [1, 5], "correct": [3, 5], "correspond": [1, 4], "cover": 3, "coverag": 1, "creat": [0, 1, 4], "creation": 5, "cross": [1, 3, 4, 5], "crystal": [3, 4], "crystallograph": [1, 5], "ctrl": 4, "current": [0, 1, 2], "cursor": 4, "cut": [2, 5], "cut_w": 0, "cuttabl": 1, "d": [3, 5], "d2sigma": 1, "dai": 4, "darker": 3, "data": [0, 2, 3], "datafil": [4, 5], "dataset": [0, 1, 4], "de": 5, "decreas": [3, 4], "default": [0, 1, 3, 4, 5], "defin": [0, 5], "delta": 0, "denomin": 3, "denot": 4, "densiti": [1, 3, 5], "depend": [1, 3, 4, 5], "depth": 5, "describ": [1, 3], "desir": [3, 4, 5], "detail": [1, 4], "detector": [3, 4], "determin": 1, "deuterium": 5, "develop": 4, "deviat": 3, "dialog": [4, 5], "differ": [0, 1, 3, 4, 5], "differenti": 3, "dimension": [3, 4], "direct": [0, 1, 3], "directli": [0, 4, 5], "disabl": [1, 4, 5], "discuss": 3, "disk": [1, 5], "displai": [2, 3, 4], "distinct": 3, "distribut": [3, 4], "divid": [3, 4], "divis": 5, "do": [0, 1, 3, 4], "doe": [0, 1, 3, 4], "don": 4, "done": [0, 1, 3, 4], "dot": 3, "doubl": [1, 4, 5], "down": [1, 4], "download": 4, "drag": 4, "drop": [1, 4], "dropdown": 5, "due": 1, "dynam": [1, 4, 5], "e": [0, 1, 3, 5], "e_": 3, "each": [0, 1, 3, 4], "easi": [3, 4], "easiest": 4, "edit": [1, 4], "editor": 4, "effect": 3, "effici": 5, "either": [0, 1, 4, 5], "elast": 3, "electron": 5, "element": 3, "els": 3, "empti": [1, 4], "en": 4, "enabl": [1, 4, 5], "end": 0, "energi": [0, 1, 2, 3, 5], "ensur": 4, "enter": 4, "entri": 1, "environ": [1, 4, 5], "equal": 3, "equiv": 3, "equival": [1, 3, 5], "error": 3, "errorbar": [0, 3], "etc": 0, "even": 0, "event": [1, 4, 5], "everi": 4, "everyth": 4, "exampl": [1, 2, 3, 4], "except": [1, 3], "excit": 3, "exp": 5, "expect": 3, "explan": [1, 5], "express": 3, "externalinterfac": 4, "extra": 4, "extract": 4, "extrapol": 3, "f": [0, 3], "f_": 3, "factor": [1, 3, 4, 5], "factoris": 3, "fast": 4, "featur": 0, "few": 4, "field": 3, "fig": 0, "figur": [0, 1, 3, 5], "file": [0, 1, 2, 3, 4], "filesystem": 4, "fill": 1, "final": [0, 1, 4], "fine": [0, 3], "finish": 4, "finit": 3, "first": [0, 1, 3, 4, 5], "flexibl": 0, "floppi": [1, 5], "fmt": 0, "focu": 5, "folder": 4, "font": 4, "form": 5, "format": [1, 5], "formula": 3, "forum": 2, "found": 1, "four": 5, "frac": [3, 5], "fraction": [3, 4, 5], "fresh": 1, "from": [0, 2, 3, 4], "full": [0, 3, 4], "fullprof": [1, 5], "function": [0, 1, 5], "further": 1, "futur": 4, "g": [0, 1, 3, 5], "g_n": 5, "gain": 5, "gdo": 1, "gener": [1, 2, 3, 4, 5], "get": 4, "github": 4, "give": [1, 4], "given": [3, 5], "go": 4, "grain": 0, "graphic": 0, "green": 3, "grid": 3, "gsa": [1, 5], "gui": [0, 2, 4], "h": 5, "ha": [0, 3, 4], "hair": 4, "half": 3, "hand": [3, 4], "handl": [3, 4], "have": [0, 1, 3, 4, 5], "he": 5, "heavili": 3, "helium": 5, "help": [1, 5], "high": 3, "histo": [1, 4], "histogram": 3, "histogramworkspac": 0, "histori": 0, "hold": 4, "horac": 3, "howev": [0, 1, 3, 4], "hydrogen": 5, "hyspec": 4, "i": [0, 1, 2, 3, 4, 5], "icon": [1, 5], "ij": 3, "illustr": 3, "imag": [1, 3, 4, 5], "implement": 5, "implicitli": 1, "import": 0, "importlib": 0, "improv": 2, "inaccess": 3, "includ": [0, 1, 2, 3, 4], "increas": [3, 4], "index": 3, "indic": 3, "individu": [1, 4], "inelast": [2, 3], "inform": [0, 2], "informaton": 1, "input": [1, 3, 4, 5], "instal": 4, "instead": [0, 3, 4], "instrument": 4, "int": 3, "integr": [0, 1, 3, 4], "integratemdhistoworkspac": 3, "intemedi": 5, "intend": 4, "intens": [2, 3], "interact": [0, 1, 2, 5], "interest": 1, "interfac": [1, 2, 4], "intern": 0, "introduc": [1, 4], "ipython": [0, 4], "isi": [3, 4], "item": 4, "its": [0, 1, 4], "j": 3, "jump": 4, "jupyt": 0, "just": [3, 5], "k": 3, "k_bt": 5, "k_f": 5, "k_i": 5, "keep": [0, 1, 2], "kei": [4, 5], "kept": 1, "keyboard": 4, "keyword": 0, "kinemat": [1, 3], "kl": 3, "l": 3, "label": [1, 4], "laboratori": 3, "lack": 3, "larg": [3, 4, 5], "larger": 3, "last": [1, 4], "later": 4, "latest": 4, "lead": 3, "leav": [1, 3, 4], "left": [1, 3, 4], "leq": [0, 3], "less": [3, 5], "let": 0, "letter": 4, "level": 4, "lie": 3, "light": 5, "like": [3, 5], "limit": [0, 1, 3, 4, 5], "line": [2, 3, 4], "linear": 4, "linspac": 0, "load": [1, 2, 5], "locat": 4, "log": [4, 5], "logarithm": 4, "long": 4, "look": [1, 3, 5], "loss": [4, 5], "low": [0, 3], "m": 0, "made": [1, 4], "mag": 5, "magnet": [1, 3, 5], "mai": [0, 1, 3, 4, 5], "main": 4, "make": [0, 1, 2, 3, 5], "makeproject": 0, "manag": [1, 4, 5], "mani": 0, "manifest": 3, "manipul": [1, 2], "mantid": [0, 1, 3, 4, 5], "mantidworkbench": [0, 4], "map": [0, 4], "mar28230_ei11": 4, "mar28236_ei10": 4, "mar28236_ei11": 4, "mar28237_ei10": 4, "mar28237_ei11": 4, "mark": 3, "markedli": [1, 3], "mat": [1, 5], "match": 0, "materi": [1, 5], "mathcal": 3, "mathemat": [1, 2], "mathrm": [0, 3, 5], "matlab": [1, 4, 5], "matplotlib": 2, "maximum": [1, 5], "mb": 3, "mc": 0, "md": [1, 4, 5], "mdeventworkspac": 0, "mean": [3, 5], "measur": 3, "memori": 4, "menu": [0, 1, 4, 5], "merg": 4, "mesh": 0, "method": [1, 3], "mev": [0, 3, 4], "milibarn": [3, 5], "minimum": [1, 4], "mode": [0, 1, 2, 3, 5], "modifi": 4, "moment": 5, "momentum": [4, 5], "more": [1, 3, 4, 5], "mous": 4, "move": 4, "mslice": [1, 3, 5], "mu_b": 5, "multi": 4, "multipl": [0, 1, 4], "multipli": 5, "muon": 3, "must": [0, 1, 5], "n": 5, "n_": 3, "n_i": 3, "name": [0, 4], "navig": 4, "necessarili": 3, "need": [3, 4], "neg": 5, "neutron": [1, 2, 3, 4, 5], "new": 4, "nexu": [1, 5], "nightli": 4, "niobium": [1, 5], "non": [0, 1, 2, 5], "norm": [1, 5], "normal": 0, "normalis": [1, 3, 5], "note": [0, 1, 2, 4, 5], "notebook": 0, "now": 3, "np": 0, "nuclei": 5, "number": [3, 4, 5], "numeventsnorm": 3, "nx": [0, 1, 4, 5], "nxspe": [0, 4], "object": 0, "obtain": [3, 5], "off": [1, 4], "offset": 4, "often": 3, "ok": [0, 4], "old": 4, "omega": [1, 5], "onc": [4, 5], "one": [0, 3, 4], "one2on": 4, "ongo": 4, "onli": [0, 1, 3, 4, 5], "open": 4, "openbabel": [1, 5], "oper": [0, 3, 4], "option": [0, 1, 4, 5], "orang": 3, "order": [0, 1, 3, 4], "org": 4, "orient": 0, "origin": [1, 3, 4, 5], "other": [0, 3, 4, 5], "otherwis": 3, "out": [3, 4], "output": 3, "outsid": 4, "over": [0, 1, 3, 4], "overlap": [1, 3], "overplot": [0, 2, 4], "overrid": 0, "overwrit": 4, "own": 0, "packag": [0, 1, 4, 5], "page": [1, 2, 3, 5], "pane": 4, "panel": [1, 4], "parallelogram": 3, "paramet": [4, 5], "parent": 1, "particular": [1, 4, 5], "path": [0, 4], "pcolormesh": 0, "pdf": [1, 5], "peak": [0, 3], "per": [0, 3], "perform": [0, 3, 5], "pi": 5, "pixel": [3, 4, 5], "pixelworkspac": 0, "plain": 0, "plan": 4, "pleas": [0, 1, 2, 4, 5], "plot": [1, 2, 3, 5], "plotcut": 0, "plotov": 0, "plotslic": 0, "plt": 0, "pm": 5, "png": [1, 5], "point": [3, 4, 5], "popul": 5, "posit": [1, 3, 4, 5], "possibl": 1, "powder": [2, 4], "present": 4, "preserv": 4, "press": 4, "previou": [3, 4], "previous": [1, 3], "primarili": 4, "prior": 0, "process": [2, 3, 4], "produc": [0, 1, 3, 4, 5], "program": [2, 3, 4], "project": [0, 1, 4, 5], "properti": 5, "proport": 1, "provid": [0, 1, 4, 5], "psd": [0, 1, 2, 5], "put": 0, "py": [0, 4], "pycifrw": [1, 5], "pyplot": 0, "python": 0, "q": [0, 1, 3, 5], "qq": 0, "quadratur": 3, "quadrilater": 3, "quick": 2, "quickli": 5, "quit": 4, "r_e": 5, "radiu": 5, "rang": [0, 1, 3, 4], "rapid": 4, "rather": [3, 4, 5], "re": 0, "reach": 4, "read": [1, 3, 5], "readabl": [1, 5], "reason": 5, "rebin": [0, 1, 3, 4, 5], "rebin2d": 5, "recent": 4, "reciproc": 3, "recognis": 0, "recoil": [0, 2], "recommend": [0, 1], "recov": 3, "rectangl": 4, "rectangular": 4, "red": 3, "redraw": 4, "reduc": [3, 4], "refer": [1, 2], "reflect": [1, 5], "regard": 1, "region": [1, 2, 4], "rel": 3, "relat": [1, 5], "releas": 4, "relev": [1, 3], "reload": 0, "remaind": 1, "remov": 4, "render": 0, "reorganis": 5, "replot": 4, "report": 2, "repres": 3, "reproduc": 0, "requir": 4, "resav": [1, 5], "respect": [1, 3, 4], "restart": [1, 4], "result": [1, 4], "revert": 1, "right": 3, "ring": [0, 4], "rr": 0, "run": [0, 3, 4], "sai": 4, "same": [0, 1, 3, 4, 5], "sampl": [1, 4, 5], "save": [2, 3, 4], "scalar": 0, "scale": [1, 3], "scatter": [2, 3, 4, 5], "script": [2, 4], "script_nam": 0, "search": 2, "section": [1, 3, 5], "see": [1, 3, 4, 5], "seen": 3, "select": [1, 4, 5], "self": 4, "send": [1, 4], "sens": 1, "sensit": [3, 4], "separ": 4, "seq_": 0, "seri": 5, "session": 1, "set": [1, 4], "set_clim": 0, "set_titl": 0, "set_xlabel": 0, "set_xlim": 0, "set_ylim": 0, "sever": 4, "shade": 3, "shield": 4, "shift": 4, "short": [1, 4], "shorter": 0, "should": [3, 4], "show": [0, 4], "shown": [1, 5], "side": [3, 5], "sigma": 5, "sign": 5, "signal": [1, 3, 5], "similar": [0, 1], "simpl": 1, "simpli": 3, "simultan": [1, 5], "sinc": 3, "singl": [1, 3, 4], "size": [0, 1, 4, 5], "slant": 3, "slice": [1, 2], "slice_w": 0, "small": 4, "smaller": [4, 5], "sn": 4, "so": [0, 3, 4], "sofqwnormalisedpolygon": [4, 5], "some": [1, 4, 5], "someth": [0, 3], "sourc": 3, "space": 3, "specif": [2, 4], "specifi": [0, 1, 3, 4, 5], "spectromet": 4, "spectrum": 5, "split": 4, "sqrt": 3, "squar": 3, "sr": 3, "stabl": 4, "standard": [0, 3], "start": [2, 3], "state": [1, 3, 5], "step": [0, 1, 3, 4, 5], "steradian": 3, "strictli": 5, "style": 0, "subfold": 4, "subplot": 0, "subsequ": [0, 1, 4], "subtract": 4, "successfulli": 4, "suggest": 2, "suitabl": [1, 3], "sum": [1, 3, 4], "sum_": 3, "support": [0, 3, 4], "suscept": [1, 5], "swap": 4, "switch": [4, 5], "symbol": 1, "symmetris": [1, 5], "syntax": 0, "system": 1, "t": 4, "tab": [1, 4, 5], "take": [2, 3], "taken": [4, 5], "tall": 4, "tantalum": [1, 5], "target": 3, "techniqu": 3, "temperatur": [0, 5], "terminologi": 3, "test": 4, "text": 5, "th": 3, "than": [3, 4, 5], "thei": 0, "them": [1, 3, 4, 5], "thi": [0, 1, 2, 3, 4, 5], "those": 3, "three": [1, 4], "through": 1, "thu": [0, 3, 5], "time": [0, 1], "titl": [0, 1, 4, 5], "togeth": 4, "toggl": 1, "too": 3, "tool": [0, 2], "toolbar": [1, 4], "top": 3, "total": 5, "transfer": [0, 1, 2, 3, 5], "transform": 3, "treat": 3, "tree": 4, "triangular": 3, "true": 0, "turn": [3, 4], "two": [1, 2, 4], "txt": [1, 4, 5], "type": [0, 1, 3, 4, 5], "u": 3, "uncertainti": [1, 3, 5], "unchang": 3, "unfortun": 3, "unit": [2, 5], "uniti": [1, 3, 5], "until": 3, "up": [4, 5], "updat": 4, "us": [1, 2, 3, 4, 5], "user": [3, 4, 5], "usual": [3, 4, 5], "v": 5, "valid": 2, "valu": [1, 3, 4, 5], "vari": 3, "ve": 4, "vector": 1, "veri": [3, 4], "versa": 1, "version": [2, 4], "versu": 5, "vertic": 4, "vesta": [1, 5], "via": [4, 5], "vice": 1, "view": 5, "visual": 2, "volum": 5, "w": [0, 3], "w_": 3, "w_i": 3, "wa": 1, "wai": [0, 4], "want": [0, 3, 4], "waterfal": 4, "wavenumb": 4, "we": [1, 3, 5], "weight": [1, 3, 5], "whatev": 1, "when": [0, 1, 4], "where": [3, 5], "wherea": [3, 5], "whether": [1, 4], "which": [0, 1, 3, 4, 5], "whilst": [0, 1, 3, 4], "white": 4, "whose": 3, "width": [0, 1, 3, 4], "window": [0, 1, 4, 5], "wish": 1, "within": [3, 4], "without": [1, 3, 4], "work": 0, "workbench": 1, "workspac": [1, 2, 5], "would": [0, 3], "wrap": 0, "write": 4, "written": 0, "ws1": 0, "ws2": 0, "ws2d": 0, "wsq": 0, "wss": 0, "x": [1, 4, 5], "xye": [1, 4, 5], "y": [1, 4, 5], "y_": 3, "yield": 3, "you": [0, 1, 4, 5], "your": [4, 5], "z": 5, "zero": 3, "zip": 4, "\u00e5": 3}, "titles": ["4. Command Line Interface", "2. Taking Cuts", "MSlice for Mantid", "5. Mathematical Reference", "1. Quick Start", "3. Taking Slices"], "titleterms": {"A": 3, "algebra": 0, "algorithm": [1, 3], "command": 0, "convert": [1, 5], "current": 4, "cut": [0, 1, 3, 4], "data": [1, 4, 5], "displai": [1, 5], "energi": 4, "exampl": 0, "file": 5, "from": [1, 5], "gener": 0, "gui": [1, 5], "inform": [1, 5], "intens": [1, 5], "interact": 4, "interfac": 0, "keep": 4, "line": [0, 1, 5], "load": [0, 4], "make": 4, "manipul": [0, 4], "mantid": 2, "mathemat": 3, "matplotlib": 0, "mode": 4, "mslice": [0, 2, 4], "non": [3, 4], "note": 3, "overplot": [1, 5], "plot": [0, 4], "powder": [1, 5], "psd": [3, 4], "quick": 4, "recoil": 5, "refer": 3, "region": 3, "save": [1, 5], "script": 0, "seri": 0, "slice": [0, 3, 4, 5], "specif": 0, "start": 4, "take": [1, 5], "transfer": 4, "two": 3, "unit": [3, 4], "us": 0, "valid": 3, "workspac": [0, 4]}}) \ No newline at end of file diff --git a/slicing.html b/slicing.html index cc56dc5d..44fbfb3a 100644 --- a/slicing.html +++ b/slicing.html @@ -7,9 +7,9 @@ 3. Taking Slices — MSlice 2.9 documentation - + - + @@ -67,8 +67,10 @@

3. Taking Slices

3.2. Overplotting recoil and powder lines

-_images/recoil.png -_images/powder_lines1.png +_images/recoil.png + +_images/powder_lines1.png +

To help with a “first look” data analysis, MSlice can overplot on the 2D slices the recoil lines of light nuclei (Hydrogen 1H, Deuterium 2H, Helium and 4He are implemented but a user defined Z is also available), and the positions of powder reflections from common sample environment materials (Aluminium, Copper, @@ -79,7 +81,8 @@

3.2. Overplotting recoil and powder line

3.3. Converting intensity information in displayed data in slices

-_images/intensity_chi.png +_images/intensity_chi.png +

In addition to displaying the data as S(Q, \omega), the slice figure window can also display the data with the Bose factor corrected, as the dynamical susceptibility \chi''(Q, \omega) or as the density of states. For these options, the sample temperature must be given. This can either be specified as a log key, if the sample @@ -155,7 +158,7 @@

This Page

rel="nofollow">Show Source - + @@ -187,7 +190,7 @@

Navigation

\ No newline at end of file