poresim.utils

Here popular basic methods are noted.

Functions

copy(source, target)

Copy a specified file to a specified location.

mkdirp(directory)

Create directory if it does not exist.

mmol_g_to_mumol_m2(c, SBET)

Convert the concentration \(\frac{\text{mmol}}{\text{g}}\) to \(\frac{\mu\text{mol}}{\text{m}^2}\).

mmol_l_to_mols(c, V)

Convert the concentration in \(\frac{\text{mmol}}{\text{l}}\) to number of molecules.

mols_to_mmol_l(N, V)

Convert the number of molecules to concentration in \(\frac{\text{mmol}}{\text{l}}\).

mols_to_mumol_m2(N, A)

Convert the number of molecules to concentration in \(\frac{\mu\text{mol}}{\text{m}^2}\).

mumol_m2_to_mols(c, A)

Convert the concentration in \(\frac{\mu\text{mol}}{\text{m}^2}\) to number of molecules.

replace(file_link, old, new)

Replace a given string in a file.