Skip to content

Commit

Permalink
updated to use hdfmap
Browse files Browse the repository at this point in the history
  • Loading branch information
DanPorter committed Dec 3, 2024
1 parent 56330eb commit f5c48b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM docker.io/continuumio/miniconda3:24.5.0-0
RUN conda install numpy matplotlib h5py
RUN python -m pip install git+https://github.com/DanPorter/babelscan.git
RUN python -m pip install hdfmap
8 changes: 2 additions & 6 deletions python_script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ spec:
command: ["python"]
source: |
import numpy as np
import babelscan
# from babelscan.plotting_matplotlib import set_plot_defaults
# set_plot_defaults() # set custom matplotlib rcParams
# i16 = babelscan.instrument_from_config('i16')
import hdfmap
filename = '{{workflow.parameters.visitdir}}/{{inputs.parameters.scanno}}.nxs'
print(filename)
scan = babelscan.file_loader(filename)
scan = hdfmap.NexusLoader(filename)
print(scan)
cmd = scan('scan_command')

Expand Down

0 comments on commit f5c48b6

Please sign in to comment.