Skip to content

Commit

Permalink
Updated example iconfig file.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Jan 11, 2025
1 parent c67210f commit 8d79089
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/haven/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def tiled_client(
entry_node=None, uri=None, cache_filepath=None, structure_clients="numpy"
):
config = load_config()
tiled_config = config["database"].get("tiled", {})
tiled_config = config.get("tiled", {})
# Create a cache for saving local copies
if cache_filepath is None:
cache_filepath = tiled_config.get("cache_filepath", "")
Expand Down
25 changes: 10 additions & 15 deletions src/haven/iconfig_testing.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ area_detector_root_path = "/tmp"
# General name for the beamline, used for metadata.
name = "SPC Beamline (sector unknown)"

[database.databroker]
catalog = "bluesky"

[xray_source]
type = "undulator"
prefix = "ID255ds:"
Expand All @@ -16,27 +13,25 @@ prefix = "255idc:bss"
beamline = "255-ID-C"


#####################
# Queueserver
#####################

# This section describes how to connect to the queueserver. It does
# not generate any devices, but is intended to be read by the Firefly
# GUI application to determine how to interact with the queue.
###################
# Data Acquisition
###################

[kafka]
servers = ["fedorov.xray.aps.anl.gov:9092"]
topic = "bluesky.documents.25idc-dev"
# This section describes the means to connect the various parts of the
# data acquisition system. It does not generate any devices.

[queueserver]
kafka_topic = "bluesky.documents.255idc"
control_host = "localhost"
control_port = "60615"
info_host = "localhost"
info_port = "60625"
redis_addr = "localhost:6379"

[database.tiled]
[kafka]
servers = ["fedorov.xray.aps.anl.gov:9092"]
topic = "bluesky.documents.haven-dev"

[tiled]
uri = "http://localhost:8337/"
entry_node = "255id_testing"
cache_filterpath = "/tmp/tiled_cache/http_response_cache.db"
Expand Down

0 comments on commit 8d79089

Please sign in to comment.