Utils

A few helper functions for users and developers.

create_animation(input_file_mask='', input_file_names=None, target_format='.mp4')

Create an animation from the given files.

If no file names are given, a file selection dialog will appear.

Parameters
  • input_file_mask (basestring) – file name mask with c-style format string

  • input_file_names (iterable) – names of the files

Returns

animation file

create_dir(dir_name)

Create a directory with name dir_name relative to the current path if it doesn’t already exist and return its full path.

Parameters

dir_name (str) – Directory name.

Returns

Full absolute path of the created directory.

Return type

str