abeelen/hpproj

View on GitHub
hpproj/wcs_helper.py

Summary

Maintainability
A
2 hrs
Test Coverage

File wcs_helper.py has 267 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2016 IAS / CNRS / Univ. Paris-Sud
# LGPL License - see attached LICENSE file
Severity: Minor
Found in hpproj/wcs_helper.py - About 2 hrs to fix

    Function build_wcs_2pts has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def build_wcs_2pts(coords, pixsize=None, shape_out=DEFAULT_SHAPE_OUT, proj_sys='EQUATORIAL', proj_type='TAN', relative_pos=(2. / 5, 3. / 5)):
    Severity: Minor
    Found in hpproj/wcs_helper.py - About 45 mins to fix

      Function build_wcs_cube has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def build_wcs_cube(coord, index, pixsize=0.01, shape_out=DEFAULT_SHAPE_OUT, proj_sys='EQUATORIAL', proj_type='TAN'):
      Severity: Minor
      Found in hpproj/wcs_helper.py - About 45 mins to fix

        Function build_wcs has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def build_wcs(coord, pixsize=0.01, shape_out=DEFAULT_SHAPE_OUT, proj_sys='EQUATORIAL', proj_type='TAN'):
        Severity: Minor
        Found in hpproj/wcs_helper.py - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status