pynbody.util#
Routines used internally by pynbody.
Functions
|
Returns True if a1 and a2 are numpy views pointing to the exact same underlying data; False otherwise. |
|
Finds the value x such that f(x)=0 for a monotonically increasing function f, using a binary search. |
|
Strip the .gz ending off a string or path |
|
Mark a method or function as deprecated, optionally with a custom message. |
|
Return nbins+1 monotonically increasing bin edges such that the number of items from ar in each bin is ~equal |
|
Incomplete gamma function accepting complex z, based on algorithm given in numerical recipes (3rd ed) |
|
Open a file, enabling use of gzip decompression |
Return a random rotation matrix (Haar measure for 3x3 case), using fast algorithm from Graphics Gems III |
|
|
A replacement for numpy linalg matrix inverse which handles fractions exactly. |
|
Checks whether a_store and a_in ultimately point to the same buffer; if not, copy a_in into a_store. |
|
Run func in separate threads, mapping over the arguments in the same way as map(...) |
Classes
Class to control execution flow in a with statement. |
|
|
Class to control a setting using a with statement. |
Modules
Toolset for creating a virtual dataset from multiple HDF5 files. |
|
Tricks for manipulating indexes and slices into arrays for internal use by pynbody. |
|
Provides a mix-in class for iterating over all subclasses of a given class, possibly in a user-specified order. |