In [ ]:
# where am I now?
!pwd
In [ ]:
# create a new working directory and change into it
workdir = '~/reduction/ARCS/getdos-demo'
!mkdir -p {workdir}
%cd {workdir}
In [ ]:
# Data to reduce. Change the IPTS number and run numbers to suit your need
samplenxs = "/SNS/ARCS/IPTS-17327/data/ARCS_83914_event.nxs"
mtnxs = "/SNS/ARCS/IPTS-17327/data/ARCS_83921_event.nxs"
In [ ]:
# import tools
import os, numpy as np
from multiphonon.getdos import notebookUI
import histogram.hdf as hh, histogram as H
%matplotlib notebook
In [ ]:
# create the UI for the first time
notebookUI(samplenxs, mtnxs)
In [ ]:
ls work/
In [ ]:
dos = hh.load('work/final-dos.h5')
H.plot(dos)
In [ ]:
# if you need to run getdos again with slightly modified options
# you can start from the previous settings
notebookUI(samplenxs, mtnxs, load_options_path="./work/getdos-opts.yaml")