Commit 169cdb60 authored by Leo Pound Singer's avatar Leo Pound Singer

Make shapely a module-level import

It's now available on the clusters.
Original: 2deb1702206830db3ed4dc58ac417e0d3e2b74f3
parent 033d82a4
......@@ -20,8 +20,7 @@ Plotting tools for drawing polygons
"""
from __future__ import division
# FIXME: should be a module-level import
# from shapely import geometry
from shapely import geometry
import numpy as np
import healpy as hp
......@@ -95,9 +94,6 @@ def cut_prime_meridian(vertices):
This routine is not meant to cover all possible cases; it will only work
for convex polygons that extend over less than a hemisphere."""
# FIXME: should be a module-level import
from shapely import geometry
# Ensure that the list of vertices does not contain a repeated endpoint.
if (vertices[0] == vertices[-1]).all():
vertices = vertices[:-1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment