Other articles

  1. Using variadic templates with lambda expressions in C++ for constrained optimization

    Constrained optimization problems are encountered in numerous applications, such as protein folding, Magnetic Resonance Image reconstruction, and radiation therapy. In this problem, we are given an objective function which is to be minimized or maximized with respect to constraints on some variables. The constraints can either be soft constraints or …

    read more
  2. RGB tile drawing in hips package

    The hips package now supports RGB tile drawing. To make this possible, the output image dimensions had to be altered according to the following configuration:

    The output image shape is two dimensional for grayscale, and three dimensional for color images:

    • shape = (height, width) for FITS images with one grayscale channel …
    read more
  3. Parameterized testing using Pytest

    Pytest provides a feature for parameterized testing in Python. The built-in pytest.mark.parametrize decorator enables parametrization of arguments for a test function. This allows the user to compare the values for input and output.

    Here is a typical example which shows its usage:

    get_hips_order_for_resolution_pars = [
        dict(tile_width=512, resolution=0 …
    read more
  4. Creating custom decorators in Python 3.6

    In the hips package, often data has to be fetched from remote servers, especially HiPS tiles. One way to cut back on the queries was by introducing the hips-extra repository. This contains HiPS tiles from various HiPS surveys. This allows us to quickly fetch tiles from local storage, which makes …

    read more
  5. HiPS tile drawing

    One of the major part of the hips project is being able to draw HiPS tiles onto a larger sky image. The most important part in this is using projective transformation for computing and drawing a HiPS tile at the correct location. The discussion below is for the tile containing …

    read more