pysoftk.folder_manager package

Submodules

pysoftk.folder_manager.folder_creator module

class pysoftk.folder_manager.folder_creator.Fld[source]

Bases: object

Create folders automatically to be used as stand-alone application or along PySoftK.

Examples

copy_dir(source, destination)[source]

Function to copy files to directories.

Parameters:
  • source (str) – Source path where the files is located.

  • destination (str) – Source path where the directory is located.

Returns:

Creates a folder with a provided name.

Return type:

None

create(times=None)[source]

Function to create a folder in the current working directory.

Parameters:

times (boolean, optional) – Number of times that a folder will be created

Returns:

None – Creates a folder with a provided name.

Return type:

None

file_to_dir(format_extension, num_cores=None)[source]

Function to move files to directories in parallel

Parameters:
  • format_extension (str) – Format extension used to seek.

  • num_cores (int. optional) – Number of cores to be used.

  • Results

  • -------

  • None – Move files to directories.

Raises:

NotImplementedError – Folders can not be created.

fxd_name(testname)[source]

Create an array of fixed names for folders.

Parameters:

testname (str) – Base name to be used as name

Returns:

An array of names for folders

Return type:

np.ndarray

seek_files(format_extension)[source]

Function to seek files in the current working directory.

Parameters:

format_extension (str) – Extension used to seek in the current working directory

Returns:

inp_name

Return type:

str

Module contents