mergernet.core.utils#

Functions

array_fallback(arrays[, prefix])

compress_files(input_path, output_path[, level])

compress_fits(file[, compress_type, ...])

deep_update(original, new, *args)

execute_posix_command(command)

extract_files(archive, dest)

extract_iauname_from_path(path)

find_by_value(d, search)

Search a dictionary by values and returns the corresponding key.

heading(msg[, sep])

Prints a message with a rule bellow with same width of the message

iauname(ra, dec)

Receives the angular position(s) of the object(s) and returns IAU2000 name(s)

iauname_path([iaunames, ra, dec, prefix, ...])

Calculate the nested path for a given iauname

install_linux_package(package)

load_image(path)

Load image from local storage to numpy array.

load_table(path[, default])

not_in(ref, comp)

Computes elements in ref that are not in comp

save_image(data, path)

save_table(data, path[, default])

serialize(obj)

Serializes an object performing type cast depending of the object type

unique_path(path)

Classes

CachedDataFrame

Holds a cached version of a pandas dataframe in memory for later access

SingletonMeta

Thread-safe implementation of Singleton.

Timming

classproperty