Fix whitespace errors
parent
a9ba419809
commit
8d0f290c58
|
@ -126,7 +126,7 @@ def nearfield_imager(visibilities, baseline_indices, freqs, npix_p, npix_q, exte
|
||||||
|
|
||||||
# v[:,np.newaxis,np.newaxis]*np.exp(-2j*np.pi*freq/c*groundbase_pixels[:,:,:]/c)
|
# v[:,np.newaxis,np.newaxis]*np.exp(-2j*np.pi*freq/c*groundbase_pixels[:,:,:]/c)
|
||||||
# groundbase_pixels=nvis x npix x npix
|
# groundbase_pixels=nvis x npix x npix
|
||||||
np.add(img, np.sum(ne.evaluate("v * exp(j2pi * bl_diff_chunk / lamb)"),axis=0), out=img)
|
np.add(img, np.sum(ne.evaluate("v * exp(j2pi * bl_diff_chunk / lamb)"), axis=0), out=img)
|
||||||
img /= len(freqs) * len(baseline_indices)
|
img /= len(freqs) * len(baseline_indices)
|
||||||
|
|
||||||
return img
|
return img
|
||||||
|
|
|
@ -90,13 +90,13 @@ def make_leaflet_map(overlay_array: np.array, lon_center: float, lat_center: flo
|
||||||
folium.TileLayer(tiles="OpenStreetMap").add_to(m)
|
folium.TileLayer(tiles="OpenStreetMap").add_to(m)
|
||||||
|
|
||||||
folium.raster_layers.ImageOverlay(
|
folium.raster_layers.ImageOverlay(
|
||||||
name='Near field image',
|
name='Near field image',
|
||||||
image=overlay_array,
|
image=overlay_array,
|
||||||
bounds=[[lat_min, lon_min], [lat_max, lon_max]],
|
bounds=[[lat_min, lon_min], [lat_max, lon_max]],
|
||||||
opacity=opacity,
|
opacity=opacity,
|
||||||
interactive=True,
|
interactive=True,
|
||||||
cross_origin=False,
|
cross_origin=False,
|
||||||
zindex=1
|
zindex=1
|
||||||
).add_to(m)
|
).add_to(m)
|
||||||
|
|
||||||
folium.LayerControl().add_to(m)
|
folium.LayerControl().add_to(m)
|
||||||
|
|
|
@ -301,7 +301,7 @@ def get_station_pqr(station_name: str, array_type: str, db):
|
||||||
|
|
||||||
def make_ground_plot(image: np.array, background_map: np.array, extent: List[int], title: str = "Ground plot",
|
def make_ground_plot(image: np.array, background_map: np.array, extent: List[int], title: str = "Ground plot",
|
||||||
subtitle: str = "", opacity: float = 0.6, fig: plt.Figure = None, **kwargs) \
|
subtitle: str = "", opacity: float = 0.6, fig: plt.Figure = None, **kwargs) \
|
||||||
-> Tuple[plt.Figure, np.array]:
|
-> Tuple[plt.Figure, np.array]:
|
||||||
"""
|
"""
|
||||||
Make a ground plot of an array with data
|
Make a ground plot of an array with data
|
||||||
|
|
||||||
|
|
24
setup.py
24
setup.py
|
@ -8,20 +8,20 @@ with open("README.md", "r") as fh:
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
setup(name='lofarimaging',
|
setup(name='lofarimaging',
|
||||||
version = __version__,
|
version=__version__,
|
||||||
description = 'LOFAR imaging utilities',
|
description='LOFAR imaging utilities',
|
||||||
long_description = long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
author = 'Vanessa Moss, Michiel Brentjens, Tammo Jan Dijkema, Maaijke Mevius (ASTRON)',
|
author='Vanessa Moss, Michiel Brentjens, Tammo Jan Dijkema, Maaijke Mevius (ASTRON)',
|
||||||
author_email = 'moss@astron.nl',
|
author_email='moss@astron.nl',
|
||||||
packages = ['lofarimaging'],
|
packages=['lofarimaging'],
|
||||||
url = "https://github.com/lofar-astron/lofarimaging",
|
url="https://github.com/lofar-astron/lofarimaging",
|
||||||
requires = ['numpy', 'numexpr', 'numba', 'astropy', 'lofargeotiff', 'lofarantpos', 'matplotlib', 'folium', 'mercantile', 'owslib', 'packaging', 'Pillow'],
|
requires=['numpy', 'numexpr', 'numba', 'astropy', 'lofargeotiff', 'lofarantpos',
|
||||||
scripts = [],
|
'matplotlib', 'folium', 'mercantile', 'owslib', 'packaging', 'Pillow'],
|
||||||
classifiers = [
|
scripts=[],
|
||||||
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: Apache Software License",
|
"License :: OSI Approved :: Apache Software License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue