From 2db9f665c8aa11e7965bfedc0194791b5e8d0db6 Mon Sep 17 00:00:00 2001
From: David Fairbrother <DavidFair@users.noreply.github.com>
Date: Wed, 31 May 2017 12:19:31 +0100
Subject: [PATCH] Re #19754 Remove variables from ISIS Powder parameter
 examples

---
 .../api/python/techniques/ISISPowder-GEM-v1.rst   | 12 ++++--------
 .../api/python/techniques/ISISPowder-Pearl-v1.rst | 15 +++++----------
 .../python/techniques/ISISPowder-Polaris-v1.rst   | 12 ++++--------
 3 files changed, 13 insertions(+), 26 deletions(-)

diff --git a/docs/source/api/python/techniques/ISISPowder-GEM-v1.rst b/docs/source/api/python/techniques/ISISPowder-GEM-v1.rst
index bd86b9cea74..43429385341 100644
--- a/docs/source/api/python/techniques/ISISPowder-GEM-v1.rst
+++ b/docs/source/api/python/techniques/ISISPowder-GEM-v1.rst
@@ -248,8 +248,7 @@ Example Input:
 
 ..  code-block:: python
 
-  calibration_dir = r"C:\path\to\calibration_dir"
-  gem_example = Gem(calibration_directory=calibration_dir, ...)
+  gem_example = Gem(calibration_directory=r"C:\path\to\calibration_dir", ...)
 
 .. _calibration_mapping_file_gem_isis-powder-diffraction-ref:
 
@@ -266,8 +265,7 @@ Example Input:
 ..  code-block:: python
 
   # Notice the filename always ends in .yaml
-  cal_mapping_file = r"C:\path\to\file\calibration_mapping.yaml"
-  gem_example = Gem(calibration_mapping_file=cal_mapping_file, ...)
+  gem_example = Gem(calibration_mapping_file=r"C:\path\to\file\calibration_mapping.yaml", ...)
 
 .. _config_file_gem_isis-powder-diffraction-ref:
 
@@ -286,8 +284,7 @@ Example Input:
 ..  code-block:: python
 
   # Notice the filename always ends in .yaml
-  configuration_file = r"C:\path\to\file\configuration.yaml"
-  gem_example = Gem(config_file=configuration_file, ...)
+  gem_example = Gem(config_file=r"C:\path\to\file\configuration.yaml", ...)
 
 .. _do_absorb_corrections_gem_isis-powder-diffraction-ref:
 
@@ -443,8 +440,7 @@ Example Input:
 
 ..  code-block:: python
 
-  output_dir = r"C:\path\to\output_dir"
-  gem_example = Gem(output_directory=output_dir, ...)
+  gem_example = Gem(output_directory=r"C:\path\to\output_dir", ...)
 
 .. _run_number_gem_isis-powder-diffraction-ref:
 
diff --git a/docs/source/api/python/techniques/ISISPowder-Pearl-v1.rst b/docs/source/api/python/techniques/ISISPowder-Pearl-v1.rst
index 11bf429d6db..3964f8a1661 100644
--- a/docs/source/api/python/techniques/ISISPowder-Pearl-v1.rst
+++ b/docs/source/api/python/techniques/ISISPowder-Pearl-v1.rst
@@ -195,8 +195,7 @@ Example Input:
 
 ..  code-block:: python
 
-  attenuation_path = r"C:\path\to\attenuation_file.out
-  pearl_example(attenuation_file_path=attenuation_path, ...)
+  pearl_example(attenuation_file_path=r"C:\path\to\attenuation_file.out", ...)
 
 .. _calibration_directory_pearl_isis-powder-diffraction-ref:
 
@@ -224,8 +223,7 @@ Example Input:
 
 ..  code-block:: python
 
-  calibration_dir = r"C:\path\to\calibration_dir"
-  pearl_example = Pearl(calibration_directory=calibration_dir, ...)
+  pearl_example = Pearl(calibration_directory=r"C:\path\to\calibration_dir", ...)
 
 .. _calibration_mapping_file_pearl_isis-powder-diffraction-ref:
 
@@ -242,8 +240,7 @@ Example Input:
 ..  code-block:: python
 
   # Notice the filename always ends in .yaml
-  cal_mapping_file = r"C:\path\to\file\calibration_mapping.yaml"
-  pearl_example = Pearl(calibration_mapping_file=cal_mapping_file, ...)
+  pearl_example = Pearl(calibration_mapping_file=r"C:\path\to\file\calibration_mapping.yaml", ...)
 
 .. _config_file_pearl_isis-powder-diffraction-ref:
 
@@ -262,8 +259,7 @@ Example Input:
 ..  code-block:: python
 
   # Notice the filename always ends in .yaml
-  configuration_file = r"C:\path\to\file\configuration.yaml"
-  pearl_example = Pearl(config_file=configuration_file, ...)
+  pearl_example = Pearl(config_file=r"C:\path\to\file\configuration.yaml", ...)
 
 .. _do_absorb_corrections_pearl_isis-powder-diffraction-ref:
 
@@ -415,8 +411,7 @@ Example Input:
 
 ..  code-block:: python
 
-  output_dir = r"C:\path\to\output_dir"
-  pearl_example = Pearl(output_directory=output_dir, ...)
+  pearl_example = Pearl(output_directory=r"C:\path\to\output_dir", ...)
 
 .. _perform_attenuation_pearl_isis-powder-diffraction-ref:
 
diff --git a/docs/source/api/python/techniques/ISISPowder-Polaris-v1.rst b/docs/source/api/python/techniques/ISISPowder-Polaris-v1.rst
index 0f79611c668..a5fe1220cd0 100644
--- a/docs/source/api/python/techniques/ISISPowder-Polaris-v1.rst
+++ b/docs/source/api/python/techniques/ISISPowder-Polaris-v1.rst
@@ -244,8 +244,7 @@ Example Input:
 
 ..  code-block:: python
 
-  calibration_dir = r"C:\path\to\calibration_dir"
-  polaris_example = Polaris(calibration_directory=calibration_dir, ...)
+  polaris_example = Polaris(calibration_directory=r"C:\path\to\calibration_dir", ...)
 
 .. _calibration_mapping_file_polaris_isis-powder-diffraction-ref:
 
@@ -262,8 +261,7 @@ Example Input:
 ..  code-block:: python
 
   # Notice the filename always ends in .yaml
-  cal_mapping_file = r"C:\path\to\file\calibration_mapping.yaml"
-  polaris_example = Polaris(calibration_mapping_file=cal_mapping_file, ...)
+  polaris_example = Polaris(calibration_mapping_file=r"C:\path\to\file\calibration_mapping.yaml", ...)
 
 .. _chopper_on_polaris_isis-powder-diffraction-ref:
 
@@ -302,8 +300,7 @@ Example Input:
 ..  code-block:: python
 
   # Notice the filename always ends in .yaml
-  configuration_file = r"C:\path\to\file\configuration.yaml"
-  polaris_example = Polaris(config_file=configuration_file, ...)
+  polaris_example = Polaris(config_file=r"C:\path\to\file\configuration.yaml", ...)
 
 .. _do_absorb_corrections_polaris_isis-powder-diffraction-ref:
 
@@ -458,8 +455,7 @@ Example Input:
 
 ..  code-block:: python
 
-  output_dir = r"C:\path\to\output_dir"
-  polaris_example = Polaris(output_directory=output_dir, ...)
+  polaris_example = Polaris(output_directory=r"C:\path\to\output_dir", ...)
 
 .. _run_number_polaris_isis_powder-diffraction-ref:
 
-- 
GitLab