finesse.utilities.misc

Miscellaneous utility functions for any part of Finesse.

Functions

construct_grids(\*\*kwargs)

Constructs N-dimensional meshgrids from the arguments provided.

valid_name(name)

Validate the specified name.

check_name(name)

Checks the validity of a component or node name.

pairwise(iterable)

Iterates through each pair in a iterable.

find(x, value)

Finds value in the list x and returns its index, returning None if value is not in the list.

find_nearest(x, value[, index])

ngettext(n, fsingle, fplural)

Get the singular or plural form of the specified messages based on n.