1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Fix relative module imports
Author: Josue Ortega <josue@debian.org>
Last-Update: 2018-12-09
--- a/galpy/snapshot/Snapshot.py
+++ b/galpy/snapshot/Snapshot.py
@@ -2,7 +2,7 @@
from galpy.orbit import Orbit
from galpy.potential.planarPotential import RZToplanarPotential
import galpy.util.bovy_plot as plot
-from directnbody import direct_nbody
+from .directnbody import direct_nbody
class Snapshot(object):
"""General snapshot = collection of particles class"""
def __init__(self,*args,**kwargs):
--- a/galpy/snapshot/snapshotMovies.py
+++ b/galpy/snapshot/snapshotMovies.py
@@ -7,7 +7,7 @@
import subprocess
import math as m
import galpy.util.bovy_plot as bovy_plot
-from Snapshot import *
+from .Snapshot import *
def snapshotToMovie(snap,filename,*args,**kwargs):
"""
NAME:
|