Skip to content

Commit

Permalink
Change to allow image access from databroker #11
Browse files Browse the repository at this point in the history
  • Loading branch information
8ryn committed Aug 8, 2023
1 parent 8bda073 commit 2028447
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docs/user/how-to/run-scan.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
Running a scan
==================

* Start the interactive bluesky environment. This is best done within the same network as the docker-compose environment which can be achieved by running: :code:`docker run --net tomoscan_default -it tomoscan`
* Start the phoebus screen to monitor the scan's progress. Navigate to the display folder and run :code:`./startOvervirew.sh`
* Start the interactive bluesky environment. It is important to mount the output directory and run the container within the same network as the docker-compose environment. This can be achieved by running:

.. code-block:: bash
docker run --net tomoscan_default --mount type=bind,source="$(pwd)"/data,target=/out -it tomoscan
* Start the phoebus screen to monitor the scan's progress. Navigate to the display folder and run :code:`./startOverview.sh`

There are two scan modes which are explained below. Outputs from the scan are saved to the data directory.

Expand Down
4 changes: 3 additions & 1 deletion src/tomoscan/ophyd_inter_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MyDetector(SingleTrigger, AreaDetector):
MyHDF5Plugin,
"HDF1:",
write_path_template="/out/%Y/%m/%d/",
read_path_template="/data/%Y/%m/%d/", # Where bluesky container mount data
read_path_template="/out/%Y/%m/%d/", # Where bluesky container mount data
)


Expand Down Expand Up @@ -114,6 +114,8 @@ def passive_scan(detectors, motor, start, stop, steps, adStatus, pulse_ID):
det.hdf1.create_directory.put(-5)
det.hdf1.warmup()

det.hdf1.kind = 3 # config | normal, required to include images in run documents

det.cam.stage_sigs["image_mode"] = "Multiple"
det.cam.stage_sigs["acquire_time"] = 0.05
det.cam.stage_sigs["num_images"] = 1
Expand Down

0 comments on commit 2028447

Please sign in to comment.