Skip to content

Commit

Permalink
improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Jan 12, 2011
1 parent 5ac8c33 commit 863321c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class SatelliteVelocity(object):
def __init__(self, coord='G', ):
self.eph = load_ephemerides()
self.coord = coord
print(np.linalg.norm(self.solar_system_v_ecl))
l.info('Satellite Velocity: coord=%s' % coord)
l.warning('Dipole solar system speed: %.2f' % np.linalg.norm(self.solar_system_v_ecl))
if self.coord == 'G':
self.convert_coord = ecl2gal
else:
Expand Down Expand Up @@ -141,6 +142,8 @@ class Dipole(object):

def __init__(self, obt=None, type='total', K_CMB=True, satellite_velocity = SatelliteVelocity(coord='G'), lowmem=True):

l.info('Dipole: type=%s' % type)

self.satellite_velocity = satellite_velocity
if type == 'total':
self.satellite_v = self.satellite_velocity.total_v(obt, relativistic = True)
Expand Down

0 comments on commit 863321c

Please sign in to comment.