summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* union and intersection operations now work on crossing polygonsHEADmasterbsimon2016-07-032-86/+56
| | | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@39128 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 3bbe9a3ccef29562db908c51914882e59c73cdaa
* removed debugging prints (doh!)bsimon2015-04-091-10/+0
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@38913 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4fedbb88318352e1bd5f380f278ed04308eaa5b6
* adding some backport changes I missed on the first time aroundbsimon2015-04-092-5/+23
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@38912 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 5f708691fc28a7c2846cf110e5fe656cfeda8ee3
* Back ported changes from astropy and made python 2 to 3 modificationsbsimon2015-04-037-426/+582
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@38800 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: c12c8fef5503caab2e2e57caac8f040597326589
* Ypdated code to be Python 2 and 3 compatiblebsimon2015-03-122-7/+9
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@38257 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: ea687efdbbc2377ad0a69d27cf92e381035ed937
* Replaced xrange with range for Python 3 compatibilitybsimon2015-03-121-3/+3
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@38256 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: caac9e74b9cb16ae09e5ed110492012ee1aa40dc
* I removed the monkey patched methods, intersection and intersect_point,bsimon2014-10-171-16/+12
| | | | | | | | | and changed the code to match the astropy version. The monkey patching confused the documentation generation. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@34879 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 5959426efa9b880921c6da0467259e613e63f64b
* Fix ordering of nodes in the trace routine so that the area calculation of ↵mdroe2014-07-283-8/+136
| | | | | | | polygons with cutlines is correct. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@33584 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 04c6e2875f229294be3c8592ba73d09457c42984
* More speedups.mdroe2014-06-136-80/+124
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32541 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 36e70c1cac043d59089f386a6b6d730c4887fa84
* Update documentation.mdroe2014-06-131-11/+20
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32540 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 3681ec19a41b919d6822476cb122cd373020311e
* Add regression tests based on real data that had trouble in the past.mdroe2014-06-133-60/+218
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32539 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: f371222ebbc956ebbef4af6fba283e60e90e5a5b
* Modest performance improvement.mdroe2014-06-121-4/+10
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32538 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 5e631ecb491dc8b9ef1f0eaade320c8f53437458
* Fix regression testsmdroe2014-06-121-2/+2
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32537 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 3dd22a2c62ae0f7dbefdf277ec9c6d6bb4739af3
* Minor cleanups to C extension.mdroe2014-06-121-26/+4
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32440 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 82846b251f2552c8dfb250e84e5c511f5b2b6fa9
* Handle empty polygons. Avoid unnecessary normalizations.mdroe2014-06-121-8/+8
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32439 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: b5f9a1f914d5cf8ceba1f70e0e02f55aba16ea97
* Handle empty polygons in Polygon.to_ra_decmdroe2014-06-121-0/+2
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32438 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 7e37d7cfb676faa51c4a29708c8f1ae9656245e3
* Use "long double" for intersection calculations. Move "length" and ↵mdroe2014-06-123-109/+334
| | | | | | | "intersects_point" to C. Vectorize the finding of "arc/point" intersections. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32437 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 03cb095a8a58aac8e7ab1e564066a7d1bdd71ec4
* Fixed misspelling of emporical in commentbsimon2014-06-111-1/+1
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32436 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 71add5c4f5e1a47236a623b7613321594781dc06
* Better track the nodes' source so we can do better internal/external edge ↵mdroe2014-06-103-42/+46
| | | | | | | removal. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32435 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: a97410e5abab2ffefba2f393909abf76af76cf75
* Fix union with empty polygon.mdroe2014-06-053-0/+32
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32433 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: ad718756b906e7254f8a899a8683e641e8396c17
* Fix testsmdroe2014-06-045-343/+84
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32336 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 40fd6b9821b5bf6120173a87d83d322988c6f4d9
* Fix some numerical problems that prevented some very short arcs that were ↵mdroe2014-06-043-38/+111
| | | | | | | colocated with the edges of a polygon from being recognized as inside the polygon. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@32335 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: df6e3d7c90b358c56d4f84df17b19a742e405337
* further changes to move to astropydencheva2014-05-011-7/+5
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@31268 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 1200f37b1166f35ab4f24774462fbe4ee291fe08
* changes to use astropy instead of pyfits and pywcsdencheva2014-04-282-8/+10
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@31238 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: c1b6745fb638349430fb6b33079113dcb80c5a18
* reflects package name changes skypac->stsci.skypac and sphere->stsci.sphere. ↵mcara2014-03-252-100/+14
| | | | | | | Also, moved documentation for SkyLine to the skypac package. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30679 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 41ed0f1772ab05345e9b212ad63f65bbc8edb338
* fix package namesienkiew2014-03-251-1/+1
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30676 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 7d35b0d967ed4a0b53c5c1e837af5030849bccf6
* requires lowest version of python we are testing withsienkiew2014-03-251-1/+1
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30674 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 536e29ea7e0a8e01c3ff05113636deffb7a2bcb9
* mod for d2to1 installsienkiew2014-03-2520-38/+56
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30670 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 91667828b7e01b5aae55679093564473a976e8a9
* add minimal setup.cfg for stsci.sphereiraf2014-03-251-0/+3
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30669 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: d3a0104a62887ffd34b8e807016e80c65191b8b0
* copy sphere from development branch to new packagesienkiew2014-03-240-0/+0
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@30659 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 8e2da0d6c0e7502c29a10560180c3ac2f646ca61
* Restored the old implementation of the SphericalPolygon.__init__(...) for ↵mcara2014-02-273-555/+10
| | | | | | | | | | | | | the case of empty list of points which was designed to remove a RuntimeWarning at the first run of the code (see Ticket # 1079). For unknown reasons, this change was lost during last commit by Mike. Moved point vector-normalization from the add_node method to Node.__init__(...) in graph.py. Removed skyline.py from the 'sphere' module. The original implementation of skyline.py did not work correctly (see, e.g., tickets #1080, #1081, #1082) and overall it makes sense to separate image processing and statistical analysis from "pure" geometric operations handled by the 'sphere'. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29976 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 82f06f5b25c8cc262bfbc0b57e3e774d320bcf47
* Handle self-intersecting arcsmdroe2014-02-261-11/+47
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29971 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 794b284fae2f34108b374230782daa1692cd8ac8
* Turn debugging back offmdroe2014-02-251-1/+1
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29970 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 3353b4790521a881726a1fa50e629f3b572d5eea
* Fix numerical problem with great circle distancemdroe2014-02-251-2/+3
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@29969 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 71015fdfc54adfd0bd91ec1b225a61dd78e7feb2
* fixed skyline bug, change polygon.to_radec output formatlim2012-07-123-19/+28
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17822 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 80e7a2f26582c697cb6faf47418b58e879f94de0
* Intersection with an empty polygon should return an empty polygon.mdroe2012-07-111-4/+7
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17821 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 1db96e6bd2b7525c07e2a73832c142f74730a635
* skyline member no longer has chip gap to simplify polygon oplim2012-07-113-35/+65
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17820 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4414ce549adc9d1db30e4e0e8627d42ff5ad6444
* lim added temporary workaround for graph sanity check failureslim2012-07-111-9/+78
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17819 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: b5efb39d9d491bba2d8262d9d2f4c192f5511231
* lim fixed duplicate modindex on doc with help from embraylim2012-06-271-3/+3
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17585 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: e5c4fa43d118033e516c3c242901d7a471dc1ed9
* lim updated existing doc and added skyline doclim2012-06-277-214/+332
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17584 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 1dbb501e8e1337077abc2595bf43226e34d57153
* git-svn-id: ↵lim2012-06-211-2/+22
| | | | | http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17466 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 012f62a226de22cac56716a3b137ff70b6b771e4
* lim added minor skyline doc and finished skyline testslim2012-06-212-27/+104
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17465 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4d99fa976cbdf1fbdf9b23abb8ab899f8fa3043d
* lim corrected doc in unique_points and sorted_pointslim2012-06-211-5/+6
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17464 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 3dc459c25c7775a9fd3d79246c724e11aa6e8cd7
* lim added option to preserve order in unique_points and sorted_pointslim2012-06-211-17/+42
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17463 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 08f6e1e0ed29c9b82ec288fca25139a6457ba7fe
* lim fixed _remove_orphaned_nodes typo in graph.pylim2012-06-211-2/+2
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17446 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 07c568808795ad234c035a67ed6b74f42875eb29
* Add code to remove orphaned nodesmdroe2012-06-211-7/+26
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17445 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 80e3d8ea2af4ca378edcd9a0dc86e8d9f8d06e4e
* lim added stuff to skyline and test_skylinelim2012-06-202-19/+158
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17443 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: b48d0ab71be5ebdcefd8f5315791e16d5c48baa0
* reverted a change that broke testslim2012-06-201-2/+4
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17441 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 880c0abbff3ea814281a0c46505ed494447d8230
* lim added final touches to skyline and polygon, and added skyline testslim2012-06-193-26/+222
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17428 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 7d98dcd06a908e74b9c69699ee813e23d468dad3
* lim modified Node.equals as mdroe suggestedlim2012-06-181-2/+12
| | | | | git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17427 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 860abb81aeca87d1258684fc6c566acab5b294f6