Skip to content

General Functions

Description of available general functions in Atomize, including a module for saving or opening data.

Functions

Function Description
message() Print a string in the main window
message_test() Print a string in the main window in the test run
bot_message() Send a message via Telegram bot
wait() Wait for the specified amount of time
to_infinity() Infinite loop compatible with test mode
const_shift() Constant shift of a pulse position

Data management

Function Description
open_1d(file_path, header=0) Open a file with comma separated values
open_2d(file_path, header=0) Open a file with a 2D array of comma separated values
open_2d_appended(file_path, header=0, chunk_size=1) Open a file with a single column array of values from 2D array
open_file_dialog(directory='') Open file selection dialog
create_file_dialog(directory='') Create file via save dialog
create_file_parameters(add_name, directory='') Create data + parameters file pair
save_header(filename, header='', mode='w') Save a header to a file
save_data(filename, data, header='', mode='w') Save a numpy array to a file
Bruker_Opener().open(path) Read Bruker native files (BES3T / ESP/WinEPR), 1D/2D, real or I/Q
Page Description
Concurrency Running functions in a separate thread
Examples Open / save CSV, concurrent plotting