fluiddyn.util

Utilities

util

Toolkit (fluiddyn.util.util)

constants

Constants (fluiddyn.util.constants)

mpi

Minimal mpi (fluiddyn.util.mpi)

paramcontainer

Container for parameters (fluiddyn.util.paramcontainer)

paramcontainer_gui

Qt based GUI for parameters (fluiddyn.util.paramcontainer_gui)

serieofarrays

Serie of arrays

timer

Clocking timer (fluiddyn.util.timer)

daemons

Daemons (fluiddyn.util.daemons)

logger

Logger sending emails (fluiddyn.util.logger)

userconfig

User configuration (fluiddyn.util.userconfig)

terminal_colors

Terminal color codes (fluiddyn.util.terminal_colors)

matlab2py

Treat Matlab code to help the translation to Python code

info

Console script to print and save system information. (fluiddyn.util.info) Displays all important information related to software and hardware. It also includes detailed information such as currently installed FluidDyn packages, other third-party packages, C compiler, MPI and NumPy configuration.

mail

Mail (fluiddyn.util.mail)

xmltotext

Formatted xml text from xml element

fluiddyn.util.time_as_str(decimal=0)[source]

Return a string coding the time.

fluiddyn.util.config_logging(level='info', name='fluiddyn', file=None, color=False)[source]

Configure a logging with a particular level and output file.

fluiddyn.util.is_run_from_ipython()[source]

Check whether the code is run from Ipython.

fluiddyn.util.is_run_from_jupyter()[source]

Check whether the code is run from Jupyter.

fluiddyn.util.get_memory_usage()[source]

Return the memory usage in Mo.

fluiddyn.util.print_memory_usage(string)[source]

Print the memory usage.

fluiddyn.util.create_object_from_file(str_path, *args, **kwargs)[source]

Create an object from a file.

fluiddyn.util.import_class(module_name, class_name)[source]

Import a class from its name.

fluiddyn.util.modification_date(path)[source]

Modification date of a file or directory

fluiddyn.util.has_to_be_made(path_out, sources, source_dir=None)[source]

Check if a file has to be (re)produce from its sources