aspcol.utilities

Helper functions for various tasks without a clear category

References

Functions

cart2pol(x, y)

Transforms the provided cartesian coordinates to polar coordinates

cart2spherical(cart_coord)

Transforms the provided cartesian coordinates to spherical coordinates

db2mag(db)

Transforms the provided decibel value to magnitude

db2pow(db)

Transforms the provided decibel value to power

flatten_dict(dict_to_flatten[, parent_key, sep])

get_time_string([detailed])

Returns a string with the current time in the format 'year_month_day_hour_minute'

get_unique_folder(prefix, parent_folder[, ...])

Returns a unique folder name in the parent folder with the prefix and the current time

mag2db(amp)

Transforms the provided magnitude to decibel

measure_time(name)

Use as decorator on a function to measure the time the function takes use as @measure_time('print_this_as_name')

pol2cart(r, angle)

Tranforms the provided polar coordinates to cartesian coordinates

pow2db(power)

Transforms the provided power to decibel

restack_dict(dict_to_stack[, sep])

Only accepts dicts of depth 2.

spherical2cart(r, angle)

Transforms the provided spherical coordinates to cartesian coordinates

wraps(wrapped[, assigned, updated])

Decorator factory to apply update_wrapper() to a wrapper function