myFileName.m

This package allows for automatic file naming such to set the output path relative to the notebook directory and patient dataset.


Warning

The following description is partially AI generated, it might be incomplete or incorrect.

fcts1[myfil_]()

Exports the specified file to the directory of the current notebook.

Parameters:

myfil (Any Mathematica expression that Export can handle.) – The file to be exported.

Returns:

None

setExportPath()

Sets the export path to the directory of the notebook.

Returns:

A list containing the full path where files will be saved and a string representing the file name without the extension.

Return type:

List of two elements: {String, String}

Usage Example:

setExportPath[]

Description: This function sets up the export path based on the directory of the current notebook. It returns a list containing the path where files will be saved and a constructed filename based on the notebook’s name.

Notes:

  • Each function is documented using the .. function:: directive, similar to how Python functions are documented.

  • Parameters (:param:) and return types (:rtype:) are specified, mimicking Python docstrings.

  • The usage examples are provided in a Mathematica code block using the .. code-block:: mathematica directive.