get_casa_session_details

get_casa_session_details() dict[str, any][source]

Get the current CASA session details.

Collects and returns information about the current CASA environment, including paths, thread configuration, and system resource allocation.

Returns:

A dictionary containing the following information --

  • casa_dir: Root directory of the monolithic CASA distribution

  • omp_num_threads: Number of OpenMP threads in the current parallel region

  • data_path: CASA data paths currently in use

  • numa_mem: Memory properties from the NUMA software perspective

  • numa_cpu: CPU properties from the NUMA software perspective

Note: The CPU/memory properties reported here reflect the NUMA software view, which may differ from hardware specifications obtained through standard Python functions (e.g., os.cpu_count()) or pipeline.environment. For details on the distinction between software and hardware nodes, see: https://www.kernel.org/doc/html/latest/vm/numa.html