pcdshub / archapp Goto Github PK
View Code? Open in Web Editor NEWPython interface to archiver appliance (that most closely matches the legacy xpppython api)
License: Other
Python interface to archiver appliance (that most closely matches the legacy xpppython api)
License: Other
See #7 (comment)
There are still some lingering NotImplementedErrors
The last thing I had on the docket here was to try and toss the archapp calls into a thread, in order to free up the gui while PV's were being added to the archive viewer. I tried a few things, but ended up hitting upon the fact that python's signal only works in the main thread of the main interpreter. ๐
Traceback (most recent call last):
File "/cds/home/r/roberttk/devrepos/atef/atef/qt_helpers.py", line 332, in run
self.return_value = self.func(*self.args, **self.kwargs)
File "/cds/home/r/roberttk/devrepos/atef/atef/widgets/config/data.py", line 267, in add_sig
widget.add_signal(pv, dev_attr=dev_attr, update_curves=False)
File "/cds/home/r/roberttk/devrepos/atef/atef/widgets/archive_viewer.py", line 314, in add_signal
data = self.get_pv_data_snippet(pv)
File "/cds/home/r/roberttk/devrepos/atef/atef/widgets/archive_viewer.py", line 348, in get_pv_data_snippet
data = self.archapp._data.get_raw(pv, prev, today)
File "/cds/home/r/roberttk/devrepos/archapp/archapp/data.py", line 166, in get_raw
data = get_json(url)
File "/cds/home/r/roberttk/devrepos/archapp/archapp/url.py", line 70, in get_json
signal.signal(signal.SIGALRM, _raise_timeout)
File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.5.1/lib/python3.9/signal.py", line 56, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread of the main interpreter
perhaps a deeper rework of
archapp
could help, but at least for now caching should make this less painful on repeat archive-viewer openings?
Originally posted by @tangkong in pcdshub/atef#132 (comment)
And:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.