irradiapy.utils.sqlite module

sqlite3 utilities.

irradiapy.utils.sqlite.delete_all_arrays(path)[source]

Drop the arrays table from the database.

Parameters:

path (Path) – Path to the SQLite database file.

Return type:

None

irradiapy.utils.sqlite.delete_array(path, name)[source]

Delete an array from the arrays table.

Parameters:
  • path (Path) – Path to the SQLite database file.

  • name (str) – Name of the array to delete.

Return type:

None

irradiapy.utils.sqlite.insert_array(path, name, **kargs)[source]

Insert or update an array in the arrays table.

Parameters:
  • path (Path) – Path to the SQLite database file.

  • name (str) – Name of the array to insert or update.

  • kargs (ArrayLike) – Keyword arguments whose values contain the array data.

Return type:

None

irradiapy.utils.sqlite.read_array(path, name)[source]

Read an array from the arrays table.

Parameters:
  • path (Path) – Path to the SQLite database file.

  • name (str) – Name of the array to read.

Returns:

Dictionary containing the array data.

Return type:

dict[str, NDArray]