Skip to content

Commit

Permalink
update other modules for py3 only
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Nov 8, 2019
1 parent a414dd1 commit ba8d024
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 55 deletions.
4 changes: 1 addition & 3 deletions hera_cal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

from . import utils
from . import redcal
from . import version
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/abscal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License
"""
abscal.py
Expand All @@ -22,16 +22,13 @@
where {i,j} index antennas and {x,y} are the polarization of
the i-th and j-th antenna respectively.
"""
from __future__ import print_function, division, absolute_import

import os
from collections import OrderedDict as odict
import copy
import argparse
import numpy as np
import operator
from functools import reduce
from six.moves import map, range, zip
from scipy import signal, interpolate, spatial
from scipy.optimize import brute, minimize
from pyuvdata import UVCal, UVData
Expand Down
4 changes: 1 addition & 3 deletions hera_cal/apply_cal.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

"""Module for applying calibration solutions to visibility data, both in memory and on disk."""

from __future__ import print_function, division, absolute_import

import numpy as np
import argparse

Expand Down
4 changes: 1 addition & 3 deletions hera_cal/autos.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

"""Module for extracting autocorrelations, with the option to calibrate before writing to disk."""

from __future__ import print_function, division, absolute_import

import argparse
from . import io
from . import version
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/datacontainer.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import numpy as np
from collections import OrderedDict as odict
from six.moves import map, zip
import copy

from .utils import conj_pol, comply_pol, make_bl, comply_bl, reverse_bl
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/delay_filter.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

"""Module for delay filtering data and related operations."""

from __future__ import print_function, division, absolute_import

import numpy as np
from copy import deepcopy
import argparse
from six.moves import range, zip

from . import io
from . import version
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/flag_utils.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import numpy as np
import copy
from six.moves import zip
from scipy.interpolate import interp1d
from pyuvdata import UVData

Expand Down
5 changes: 1 addition & 4 deletions hera_cal/frf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import numpy as np
from six.moves import range
try:
from uvtools import dspec
HAVE_UVTOOLS = True
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/io.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import numpy as np
from collections import OrderedDict as odict
import operator
Expand All @@ -12,7 +10,6 @@
import warnings
from functools import reduce
import collections
from six.moves import map, range, zip
from pyuvdata import UVCal, UVData
from pyuvdata import utils as uvutils
from astropy import units
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/lstbin.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import os
from collections import OrderedDict as odict
import copy
Expand All @@ -13,7 +11,6 @@
import operator
import gc as garbage_collector
import datetime
from six.moves import map, range

from . import utils
from . import version
Expand Down
4 changes: 1 addition & 3 deletions hera_cal/noise.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

"""Module for predicting noise on visibilties using autocorrelations and for producing noise standard deviation data files."""

from __future__ import print_function, division, absolute_import

import numpy as np
import argparse
import scipy
Expand Down
1 change: 0 additions & 1 deletion hera_cal/reflections.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
The code here models the time and delay dependent behavior
through a combination of SVD and fringe-rate filtering.
"""
from __future__ import print_function, division, absolute_import
import numpy as np
import os
import copy
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/smooth_cal.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import absolute_import, division, print_function

import numpy as np
import scipy
from collections import OrderedDict as odict
from copy import deepcopy
from six.moves import range
import warnings
import argparse

Expand Down
2 changes: 0 additions & 2 deletions hera_cal/tempcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import numpy as np
import copy

Expand Down
5 changes: 1 addition & 4 deletions hera_cal/utils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import numpy as np
import os
import copy
from six.moves import map, range
import astropy.constants as const
from astropy.time import Time
from astropy import coordinates as crd
Expand Down
5 changes: 1 addition & 4 deletions hera_cal/vis_clean.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright 2018 the HERA Project
# Copyright 2019 the HERA Project
# Licensed under the MIT License

from __future__ import print_function, division, absolute_import

import numpy as np
from collections import OrderedDict as odict
import datetime
from six.moves import range
try:
from uvtools import dspec
HAVE_UVTOOLS = True
Expand Down

0 comments on commit ba8d024

Please sign in to comment.