Skip to content

Instantly share code, notes, and snippets.

13:16:31.287 -> GET 'http://local-tiled-app/api/v1/node/metadata/da8c218c-d5ef-4f55-b498-2b5e377ff5cf' 'host:local-tiled-app' 'accept:application/x-msgpack' 'accept-encoding:gzip, deflate, br' 'connection:keep-alive' 'user-agent:testclient' 'cookie:tiled_csrf=MkMXxlTXSNU_giZBTYoEl5zJXgLfaU84NzHSHmrunMQ' 'authorization:Apikey [redacted]'
DEBUG:tiled.client:-> GET 'http://local-tiled-app/api/v1/node/metadata/da8c218c-d5ef-4f55-b498-2b5e377ff5cf' 'host:local-tiled-app' 'accept:application/x-msgpack' 'accept-encoding:gzip, deflate, br' 'connection:keep-alive' 'user-agent:testclient' 'cookie:tiled_csrf=MkMXxlTXSNU_giZBTYoEl5zJXgLfaU84NzHSHmrunMQ' 'authorization:Apikey [redacted]'
13:16:31.295 <- 200 etag:a94d8a8b94738458049d16aa8d8aead2 expires:Mon, 10 Apr 2023 18:16:31 GMT content-length:3812 content-type:application/x-msgpack content-encoding:gzip vary:Accept-Encoding server-timing:tok;dur=0.1, pack;dur=0.0, compress;dur=0.2;ratio=2.6, app;dur=6.7
DEBUG:tiled.client:<- 200 etag:a94d8a8b94738458049d16aa8d8aead2 e
@bruceravel
bruceravel / gist:9446cb01d8c7cdf723e5f2db1a6cc05b
Created February 14, 2023 20:14
Warning from tiled after exporting TILED_SITE_PROFILES
Python 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:23:14) [GCC 10.4.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.7.0 -- An enhanced Interactive Python. Type '?' for help.
IPython profile: collection
/nsls2/conda/envs/2023-1.0-py310-tiled/lib/python3.10/site-packages/tiled/profiles.py:108: UserWarning: Skipping /nsls2/software/etc/tiled-staging/README.md. Failed to parse with error: ScannerError('while scanning an alias', <yaml.error.Mark object at 0x7f8c041af490>, "expected alphabetic or numeric character, but found '*'", <yaml.error.Mark object at 0x7f8c041af850>).
warnings.warn(
/nsls2/conda/envs/2023-1.0-py310-tiled/lib/python3.10/site-packages/tiled/profiles.py:108: UserWarning: Skipping /nsls2/software/etc/tiled-staging/authentication.yml. Failed to parse with error: ProfileError("ValidationError while parsing profile database in file /nsls2/software/etc/tiled-staging/authentication.yml: Additional properties are not allowed ('max_overflow', 'pool_size' were
Traceback (most recent call last):
File /nsls2/conda/envs/2022-2.2-py39-tiled/lib/python3.9/site-packages/event_model/__init__.py:874 in _get_handler_maybe_cached
handler = self._handler_cache[key]
KeyError: ('bcb9194a-81f4-4c68-920b-f8883f945e46', 'BMM_USBCAM')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File /nsls2/conda/envs/2022-2.2-py39-tiled/lib/python3.9/site-packages/event_model/__init__.py:838 in get_handler
handler_class = self.handler_registry[resource['spec']]
File /nsls2/conda/envs/2022-2.2-py39-tiled/lib/python3.9/site-packages/event_model/__init__.py:329 in __getitem__
["cigar","rebut","sissy","humph","awake","blush","focal","evade","naval",
"serve","heath","dwarf","model","karma","stink","grade","quiet","bench",
"abate","feign","major","death","fresh","crust","stool","colon","abase",
"marry","react","batty","pride","floss","helix","croak","staff","paper",
"unfed","whelp","trawl","outdo","adobe","crazy","sower","repay","digit",
"crate","cluck","spike","mimic","pound","maxim","linen","unmet","flesh",
"booby","forth","first","stand","belly","ivory","seedy","print","yearn",
"drain","bribe","stout","panel","crass","flume","offal","agree","error",
"swirl","argue","bleed","delta","flick","totem","wooer","front","shrub",
"parry","biome","lapel","start","greet","goner","golem","lusty","loopy",
BMM C.111 [17] ▶ df.primary.read()
Traceback (most recent call last):
File "/opt/conda_envs/nsls2-collection-2021-2.2/lib/python3.7/site-packages/event_model/__init__.py", line 874, in _get_handler_maybe_cached
handler = self._handler_cache[key]
KeyError: ('16bad63a-d752-4ad2-9b8f-b6f77390c2ff', 'XSP3')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda_envs/nsls2-collection-2021-2.2/lib/python3.7/site-packages/event_model/__init__.py", line 1041, in _attempt_with_retries
return func(*args, **kwargs)
@bruceravel
bruceravel / webcam_device.py
Last active October 6, 2021 18:27
webcam_device.py
import os, uuid, threading, itertools, datetime
import numpy
import bluesky
from ophyd import Device, Component, Signal, DeviceStatus
from ophyd.areadetector.filestore_mixins import resource_factory
# See for resource_factory docstring
# https://github.com/bluesky/ophyd/blob/b1d258a36c974013b6e3ac8ee7112ed876b7653a/ophyd/areadetector/filestore_mixins.py#L70-L112
@bruceravel
bruceravel / error_from_Bluesky.txt
Created September 14, 2021 10:35
Xspress3 error as reported by bluesky
[E 2021-09-13 21:55:21,271.271 bluesky run_engine:1499] Run aborted
Traceback (most recent call last):
File "/opt/conda_envs/nsls2-collection-2021-2.2/lib/python3.7/site-packages/bluesky/run_engine.py", line 1365, in _run
msg = self._plan_stack[-1].send(resp)
File "/opt/conda_envs/nsls2-collection-2021-2.2/lib/python3.7/site-packages/bluesky/preprocessors.py", line 1307, in __call__
return (yield from plan)
File "/opt/conda_envs/nsls2-collection-2021-2.2/lib/python3.7/site-packages/bluesky/preprocessors.py", line 1162, in baseline_wrapper
return (yield from plan_mutator(plan, insert_baseline))
File "/opt/conda_envs/nsls2-collection-2021-2.2/lib/python3.7/site-packages/bluesky/preprocessors.py", line 170, in plan_mutator
raise ex
@bruceravel
bruceravel / error_from_IOC.txt
Created September 14, 2021 10:32
Xspress3 error as reported by IOC
HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139707363628800:
#000: ../H5F.c line 491 in H5Fcreate(): unable to create file
major: File accessibilty
minor: Unable to open file
#001: ../H5Fint.c line 1247 in H5F_open(): unable to open file: time = Mon Sep 13 22:28:38 2021
, name = '/nsls2/data/bmm/assets/2021/09/09/49449bcf-8dfe-4bb9-9b6e_000000.h5', tent_flags = 13
major: File accessibilty
minor: Unable to open file
#002: ../H5FD.c line 809 in H5FD_open(): open failed
major: Virtual File Layer
[I 2021-07-06 08:11:09,435.435 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[I 2021-07-06 08:12:07,244.244 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[I 2021-07-06 08:30:38,811.811 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[I 2021-07-06 08:31:58,440.440 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[E 2021-07-06 08:54:35,088.088 nslsii.ipython logutils:56] invalid syntax (<ipython-input-444-8b1881ac6be0>, line 1)
Traceback (most recent call last):
File "/opt/conda_envs/collection-2021-1.2/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3134, in run_cell_async
code_ast = compiler.ast_parse(cell, filename=cell_name)
File "/opt/conda_envs/collection-2021-1.2/lib/python3.7/site-packages/IPython/core/compilerop.py", line 101, in ast_parse
return compile(source, filename, symbol, self.flags | PyCF_ONLY_AST, 1)
[I 2021-07-06 08:11:09,435.435 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[I 2021-07-06 08:12:07,244.244 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[I 2021-07-06 08:30:38,811.811 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[I 2021-07-06 08:31:58,440.440 nslsii __init__:618] connected to Kafka broker(s): d9qdpe9qQ_mhaoHZN2mjCQ
[E 2021-07-06 08:54:35,088.088 nslsii.ipython logutils:56] invalid syntax (<ipython-input-444-8b1881ac6be0>, line 1)
Traceback (most recent call last):
File "/opt/conda_envs/collection-2021-1.2/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3134, in run_cell_async
code_ast = compiler.ast_parse(cell, filename=cell_name)
File "/opt/conda_envs/collection-2021-1.2/lib/python3.7/site-packages/IPython/core/compilerop.py", line 101, in ast_parse
return compile(source, filename, symbol, self.flags | PyCF_ONLY_AST, 1)