Utility

rascil.processing_components.util.compass_bearing Module

Functions

calculate_initial_compass_bearing(pointA, pointB)

Calculates the bearing between two points.

rascil.processing_components.util.installation_checks Module

Function to check the installation

Functions

check_data_directory([verbose, fatal])

Check the RASCIL data directory to see if it has been installed correctly

rascil.processing_components.util.performance Module

Functions for monitoring performance

These functions can be used to write various configuration and performance information to JSON files for subsequent analysis. These are intended to be used by apps such as rascil-imager:

parser = cli_parser()
args = parser.parse_args()
performance_environment(args.performance_file, mode="w")
performance_store_dict(args.performance_file, "cli_args", vars(args), mode="a")
performance_store_dict(args.performance_file, "dask_profile", dask_info, mode="a")
performance_dask_configuration(args.performance_file, mode='a')

Functions

git_hash()

Get the hash for this git repository.

performance_store_dict(performance_file, key, s)

Store dictionary in a file using json

performance_qa_image(performance_file, key, im)

Store image qa in a performance file

performance_dask_configuration(...[, ...])

Get selected Dask configuration info and write to performance file

performance_read(performance_file)

Read the performance file

performance_environment(performance_file[, ...])

Write the current processing environment to JSON file

performance_read_memory_data(memory_file)

Get the memusage data.

performance_merge_memory(performance, mem)

Merge memory data per function into performance data