misc_tools
get_varname
get_varname (obj)
print_greeting
print_greeting ()
Generates a greeting message based on the current time, along with the version information of DABEST.
This function dynamically generates a greeting (‘Good morning’, ‘Good afternoon’, ‘Good evening’) based on the current system time. It also retrieves and displays the version of DABEST (Data Analysis using Bootstrap-Coupled ESTimation). The message includes a header with the DABEST version and the current time formatted in a user-friendly manner.
Returns: str: A formatted string containing the greeting message, DABEST version, and current time.
unpack_and_add
unpack_and_add (l, c)
Convenience function to allow me to add to an existing list without altering that list.
merge_two_dicts
merge_two_dicts (x:dict, y:dict)
Given two dicts, merge them into a new dict as a shallow copy. Any overlapping keys in y
will override the values in x
.
Taken from here
Type | Details | |
---|---|---|
x | dict | |
y | dict | |
Returns | dict | A dictionary containing a union of all keys in both original dicts. |