API
pcdsutils.enum
|
|
|
IntEnum subclass with some utility extensions and case insensitivity. |
pcdsutils.ext_scripts
|
|
|
Helper script for external script error handling and logging. |
|
Call procmgr to determine the lcls-I ami proxy hostname. |
Call get_curr_exp to return the current experiment name. |
|
|
Call get_hutch_name to return the name of the current hutch. |
Call get_lastRun to return the run number of the last daq run. |
pcdsutils.import_timer
Stats about importing this module or submodule. |
|
For a top-level module, the total time spent on all the submodules. |
|
Show a prettytable summary of all the import statistics. |
|
For a given import, figure out why a specific submodule is being imported. |
|
Get the import time statistics for a given module. |
|
Run python -X importtime modulename in a subprocess. |
|
Summarize the results of the import time checker in an understandable way. |
|
|
|
Summarize the import time statistics for a given module. |
pcdsutils.info
|
Experiment information. |
|
Per-instrument information. |
|
Argparse arguments for get-info-json. |
|
Run information. |
|
For a given run, information about the files generated. |
|
Base dataclass to help with retrieving logbook information and transforming it into a dataclass. |
Fix a user-provided hutch name. |
|
|
Given a hostname, get a hutch name. |
|
Get top-level Instrument information given |
|
Is |
Main entrypoint for get-info-json. |
pcdsutils.json_to_table
Argparse arguments for json_to_table. |
|
|
Table style/format to print. |
Fix the value for display in the table. |
|
Create a PrettyTable from the input JSON data. |
pcdsutils.log
|
Filter parent class for demoting log records. |
|
Filter to decrease the log level of repeat warnings. |
Filter that demotes the logging level of callback exceptions. |
|
|
Hashable collection of the unique information from an ophyd.objects log |
|
Demote verbose logs from pydm, particulary those that come at exit. |
|
Parent dataclass to define the interface for DemotionFilter |
|
Hashable collection of the unique information from a warnings.warn call. |
|
Logging handler which pushes `logging.LogRecord`s to a separate thread |
|
A log handler which listens in a separate thread for queued records |
Returns True if centralized logging should be enabled. |
|
|
Set a new handler on the |
Create a PCDS logging-compliant dictionary from a given logging.LogRecord |
|
Get the last source filename and line number from the traceback. |
|
Return the handler configured by the most recent call to |
|
Replaces warnings.showwarning with the log_warning_handler above. |
|
|
Log an exception to the central server (i.e., logstash/grafana). |
|
Warning handler that redirects all of the warnings to a logger. |
Use the standard pcds warnings config. |
|
Restores the default behavior of the warnings module. |
|
Return a logging level integer for level comparison. |
pcdsutils.ophyd_helpers
Subscribe to signal, acquire data for |
|
Subscribe to signal, acquire data for |
|
Get all signals in a given device. |
|
Context manager which disables the ophyd.device.Device lazy_wait_for_connection behavior and later restore its value. |
|
[Context manager] Subscribe to a specific event from all objects |
|
[Context manager] Subscribe to |
pcdsutils.profile
Returns a set of all functions and methods defined in module. |
|
|
Recursive step of get_native_functions. |
|
Returns the text that goes before the line profile chunks in the output. |
Returns the global profiler instance, creating it if necessary. |
|
Returns a list of the module name plus all importable submodule names. |
|
|
Returns a list of the imported module plus all submodules. |
|
Utility function to import an iterator of module names as a list. |
|
Determines if obj was defined in module. |
|
Prints the formatted results directly to terminal. |
|
Context manager for profiling a fixed span of an application. |
Clears the old global profiler by replacing it with a new one. |
|
|
Saves the formatted profiling results. |
|
Sets up a profiler. |
|
Sort a profiler's stats in order of decreasing total time. |
|
Turns the global profiler off or on. |
pcdsutils.qt.callbacks
A PyQt-compatible slot for a partial method. |
pcdsutils.qt.designer_display
Helper class for loading designer .ui files and adding logic. |
|
|
pcdsutils.qt.lazy
|
A lazy widget which only is created when first shown. |
pcdsutils.qt.popbar
|
A popup toolbar that shows/hide on hover a certain widget |
|
|
|
A vertically aligned QLabel |
pcdsutils.release_notes
Generate the release notes. |
|
Generate the release notes. |
|
pcdsutils.requirements
Compare two lists of dependencies |
|
|
Get conda-recipe meta.yaml requirements as a dictionary from a repo |
|
Find conda meta.yaml in a repository |
Dependency line to dependency name |
|
Get pip requirements from a repo |
|
Build pip-style requirements from conda-recipe meta.yaml |
|
Write pip requirements to the repository root from conda requirements |
pcdsutils.utils
Get the fully qualified domain name of this host. |
|
|
Instantiate a class with args and kwargs. |
Extract the class object from a full qualified class name. |
pcdsutils.version
Version handling helper that pairs with setuptools-scm. |