Skip to content
Permalink
Browse files

Medium level upgrade. Now is RingCenter, instead of Ring.

The center is now estimated by the class RingCenter, which expects the
default mks input (t,x,y,u,v).

The class RingCenterFlex will handle the LatxLon and datetime inputs.
  • Loading branch information...
castelao committed May 11, 2013
1 parent 6c96a1b commit 216e398d15186bdc5bd626bc60b6272001f3686e
Showing with 13 additions and 3 deletions.
  1. +5 −0 NEWS.txt
  2. +6 −1 rings/ring.py
  3. +2 −2 setup.py
@@ -3,6 +3,11 @@
News
====

0.8
---

* New class RingCenter, which expects the default mks inputs (t,x,y,u,v). The class RingCenterFlex, under construction, will accept more types of inputs, like LatxLon and datetime.

0.6
---

@@ -173,7 +173,7 @@ def findcenter(self):
self.data['vr'] = self.input['v'] - self.center['v']


class RingCenterFlex(object):
class RingCenterFlex(RingCenter):
""" A class to find the ring center, with flexible inputs.
Input:
@@ -193,6 +193,11 @@ class RingCenterFlex(object):
def __init__(self, input, metadata={}, auto=True, **keywords):
"""
"""

# I don't think this keywords will work properly
super(RingCenterFlex, self).__init__(input, metadata, auto)
self.name = 'RingCenterFlex'

if auto == True:
#self.set_xy()
#self.set_t()
@@ -13,12 +13,12 @@

install_requires=[
"numpy >= 1.1",
"scipy >= 0.10.1",
"scipy >= 0.9.0rc2",
"pandas >= 0.10.1",
"fluid >= 0.1.10",
],

version = '0.7.8'
version = '0.8.0'

setup(
name = 'pyrings',

0 comments on commit 216e398

Please sign in to comment.
You can’t perform that action at this time.