LSST Applications
21.0.0+04719a4bac,21.0.0-1-ga51b5d4+f5e6047307,21.0.0-11-g2b59f77+a9c1acf22d,21.0.0-11-ga42c5b2+86977b0b17,21.0.0-12-gf4ce030+76814010d2,21.0.0-13-g1721dae+760e7a6536,21.0.0-13-g3a573fe+768d78a30a,21.0.0-15-g5a7caf0+f21cbc5713,21.0.0-16-g0fb55c1+b60e2d390c,21.0.0-19-g4cded4ca+71a93a33c0,21.0.0-2-g103fe59+bb20972958,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+3ad5d60fb1,21.0.0-2-g7f82c8f+8babb168e8,21.0.0-2-g8f08a60+06509c8b61,21.0.0-2-g8faa9b5+616205b9df,21.0.0-2-ga326454+8babb168e8,21.0.0-2-gde069b7+5e4aea9c2f,21.0.0-2-gecfae73+1d3a86e577,21.0.0-2-gfc62afb+3ad5d60fb1,21.0.0-25-g1d57be3cd+e73869a214,21.0.0-3-g357aad2+ed88757d29,21.0.0-3-g4a4ce7f+3ad5d60fb1,21.0.0-3-g4be5c26+3ad5d60fb1,21.0.0-3-g65f322c+e0b24896a3,21.0.0-3-g7d9da8d+616205b9df,21.0.0-3-ge02ed75+a9c1acf22d,21.0.0-4-g591bb35+a9c1acf22d,21.0.0-4-g65b4814+b60e2d390c,21.0.0-4-gccdca77+0de219a2bc,21.0.0-4-ge8a399c+6c55c39e83,21.0.0-5-gd00fb1e+05fce91b99,21.0.0-6-gc675373+3ad5d60fb1,21.0.0-64-g1122c245+4fb2b8f86e,21.0.0-7-g04766d7+cd19d05db2,21.0.0-7-gdf92d54+04719a4bac,21.0.0-8-g5674e7b+d1bd76f71f,master-gac4afde19b+a9c1acf22d,w.2021.13
LSST Data Management Base Package
|
Namespaces | |
backtrace | |
deprecated | |
doImport | |
get_caller_name | |
inheritDoc | |
python | |
tests | |
version | |
wrappers | |
Classes | |
class | Backtrace |
Singleton, enables automatic backtraces on the following signals: More... | |
class | Cache |
Cache of most recently used values. More... | |
class | Symbol |
struct | n |
struct | key |
Functions | |
std::string | demangleType (std::string const _typeName) |
std::size_t | hashCombine (std::size_t seed) noexcept |
Combine hashes. More... | |
template<typename T , typename... Rest> | |
std::size_t | hashCombine (std::size_t seed, const T &value, Rest... rest) noexcept |
Combine hashes. More... | |
template<typename InputIterator > | |
std::size_t | hashIterable (std::size_t seed, InputIterator begin, InputIterator end) noexcept |
Combine hashes in an iterable. More... | |
double | nanojanskyToABMagnitude (double flux) |
Convert a flux in nanojansky to AB magnitude. More... | |
double | ABMagnitudeToNanojansky (double magnitude) |
Convert an AB magnitude to a flux in nanojansky. More... | |
std::string | getPackageDir (std::string const &packageName) |
return the root directory of a setup package More... | |
template<typename T > | |
constexpr void | assertValidHash () |
Compile-time test of whether a specialization of std::hash conforms to the general spec. More... | |
template<typename T > | |
void | assertHashesEqual (T obj1, T obj2) |
Test that equal objects have equal hashes. More... | |
void | wrapDemangle (python::WrapperCollection &wrappers) |
void | wrapPackaging (python::WrapperCollection &wrappers) |
void | wrapBacktrace (python::WrapperCollection &wrappers) |
PYBIND11_MODULE (_utils, mod) | |
Variables | |
const double | referenceFlux = 1e23 * pow(10, (48.6 / -2.5)) * 1e9 |
The Oke & Gunn (1983) AB magnitude reference flux, in nJy (often approximated as 3631.0). More... | |
double lsst::utils::ABMagnitudeToNanojansky | ( | double | magnitude | ) |
Convert an AB magnitude to a flux in nanojansky.
Definition at line 32 of file Magnitude.cc.
void lsst::utils::assertHashesEqual | ( | T | obj1, |
T | obj2 | ||
) |
|
constexpr |
Compile-time test of whether a specialization of std::hash conforms to the general spec.
The function itself is a no-op.
T | The properties of std::hash<T> will be tested. |
Definition at line 72 of file tests.h.
std::string lsst::utils::demangleType | ( | std::string const | _typeName | ) |
Definition at line 113 of file Demangle.cc.
std::string lsst::utils::getPackageDir | ( | std::string const & | packageName | ) |
return the root directory of a setup package
[in] | packageName | name of package (e.g. "utils") |
lsst::pex::exceptions::NotFoundError | if desired version can't be found |
Definition at line 33 of file packaging.cc.
|
inlinenoexcept |
Combine hashes.
A specialization of hashCombine for a trivial argument list.
Definition at line 35 of file hashCombine.h.
|
noexcept |
Combine hashes.
This is provided as a convenience for those who need to hash a composite. C++11 includes std::hash, but neglects to include a facility for combining hashes.
T,Rest | the types to hash. All types must have a valid (in particular, non-throwing) specialization of std::hash. |
seed | An arbitrary starting value. |
value,rest | The objects to hash. |
seed
.To use it:
// Arbitrary seed; can change to get different hashes of same argument list std::size_t seed = 0; result = hashCombine(seed, obj1, obj2, obj3);
Definition at line 63 of file hashCombine.h.
|
noexcept |
Combine hashes in an iterable.
This is provided as a convenience for those who need to hash a container.
InputIterator | an iterator to the objects to be hashed. The pointed-to type must have a valid (in particular, non-throwing) specialization of std::hash. |
seed | An arbitrary starting value. |
begin,end | The range to hash. |
To use it:
// Arbitrary seed; can change to get different hashes of same argument list std::size_t seed = 0; result = hashIterable(seed, container.begin(), container.end());
Definition at line 93 of file hashCombine.h.
double lsst::utils::nanojanskyToABMagnitude | ( | double | flux | ) |
Convert a flux in nanojansky to AB magnitude.
Definition at line 30 of file Magnitude.cc.
lsst::utils::PYBIND11_MODULE | ( | _utils | , |
mod | |||
) |
Definition at line 33 of file _utils.cc.
void lsst::utils::wrapBacktrace | ( | python::WrapperCollection & | wrappers | ) |
Definition at line 32 of file _Backtrace.cc.
void lsst::utils::wrapDemangle | ( | python::WrapperCollection & | wrappers | ) |
Definition at line 32 of file _Demangle.cc.
void lsst::utils::wrapPackaging | ( | python::WrapperCollection & | wrappers | ) |
Definition at line 30 of file _packaging.cc.
const double lsst::utils::referenceFlux = 1e23 * pow(10, (48.6 / -2.5)) * 1e9 |
The Oke & Gunn (1983) AB magnitude reference flux, in nJy (often approximated as 3631.0).
Definition at line 46 of file Magnitude.h.