summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-06-14 12:50:43 +0100
committerGitHub <noreply@github.com>2019-06-14 12:50:43 +0100
commit7ab438acd11d80580661c7416c6be104c47f0499 (patch)
tree23d4271fea1b210c6c4d1a450b306a3282b98d38
parenta344ebca5beddf376229415d63847b3edd545966 (diff)
downloadastra-wrapper-7ab438acd11d80580661c7416c6be104c47f0499.tar.gz
astra-wrapper-7ab438acd11d80580661c7416c6be104c47f0499.tar.bz2
astra-wrapper-7ab438acd11d80580661c7416c6be104c47f0499.tar.xz
astra-wrapper-7ab438acd11d80580661c7416c6be104c47f0499.zip
removed hard coded directory
-rw-r--r--Wrappers/Python/wip/demo_astra_nexus.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Wrappers/Python/wip/demo_astra_nexus.py b/Wrappers/Python/wip/demo_astra_nexus.py
index 64895dd..bb23e81 100644
--- a/Wrappers/Python/wip/demo_astra_nexus.py
+++ b/Wrappers/Python/wip/demo_astra_nexus.py
@@ -6,6 +6,7 @@
# The data set is available from
# https://github.com/DiamondLightSource/Savu/blob/master/test_data/data/24737_fd.nxs
# and should be downloaded to a local directory to be specified below.
+# The data should be flat-field and dark-field corrected.
# All own imports
from ccpi.framework import ImageData, ImageGeometry
@@ -21,7 +22,7 @@ import matplotlib.pyplot as plt
## Set up a reader object pointing to the Nexus data set. Revise path as needed.
# The data is already corrected for by flat and dark field.
-myreader = NEXUSDataReader(nexus_file="/media/newhd/shared/Data/nexus/24737_fd_normalised.nxs" )
+myreader = NEXUSDataReader(nexus_file="REPLACE_THIS_BY_PATH_TO_DATASET/24737_fd_normalised.nxs" )
data= myreader.load_data()
# Negative logarithm transoform.