Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions httomo/templates/generate-multi-page-tiff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: argoproj.io/v1alpha1
kind: ClusterWorkflowTemplate
metadata:
name: generate-multi-page-tiff
labels:
workflows.diamond.ac.uk/science-group-imaging: "true"
annotations:
workflows.diamond.ac.uk/repository: "https://github.com/DiamondLightSource/imaging-workflows"
spec:
entrypoint: generate-multi-page-tiff
volumeClaimTemplates:
- metadata:
name: tmpdir
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
storageClassName: netapp
templates:
- name: generate-multi-page-tiff
script:
image: ghcr.io/diamondlightsource/httomo:3.3
command: [/opt/conda/bin/python]
source: |
from pathlib import Path
import numpy as np
import tifffile

OUT_PATH = Path("/tmp/random-multi-page-tifffile.tif")
SHAPE = (5, 400, 400)
image_stack = np.random.random(SHAPE).astype(np.float32)
tifffile.tifffile.imwrite(OUT_PATH, image_stack)
volumeMounts:
- name: tmpdir
mountPath: /tmp
outputs:
artifacts:
- name: random-data
path: "/tmp/random-multi-page-tifffile.tif"
archive:
none: { }
8 changes: 4 additions & 4 deletions ptypy/config/p99_dm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ parameter_tree:
auto_center: true
save: null
intensities:
file: /%(visit_path)s/p99-%(run)s.nxs
file: /%(visit_path)s/p99-bs-%(run)s.nxs
key: /entry/andor2_det/andor2_det
positions:
file: /%(visit_path)s/p99-%(run)s.nxs
file: /%(visit_path)s/p99-bs-%(run)s.nxs
fast_key: /entry/andor2_det/sample_stage-x
fast_multiplier: 0.001
slow_key: /entry/andor2_det/sample_stage-y
slow_multiplier: 0.001
recorded_energy:
file: /%(visit_path)s/p99-%(run)s.nxs
file: /%(visit_path)s/p99-bs-%(run)s.nxs
key: /entry/plan_metadata/energy/value
multiplier: 0.001
recorded_distance:
file: /%(visit_path)s/p99-%(run)s.nxs
file: /%(visit_path)s/p99-bs-%(run)s.nxs
key: /entry/plan_metadata/detector_dist/value
multiplier: 0.001