Skip to content

Commit

Permalink
Renamed chemlab.data -> chemlab.db
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelanaro committed Apr 17, 2013
1 parent 16eb2a9 commit 951cde4
Show file tree
Hide file tree
Showing 34 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions chemlab/core/molecule.py
Expand Up @@ -3,8 +3,8 @@
import numpy as np
from copy import copy

from ..data import symbols
from ..data import masses
from ..db import symbols
from ..db import masses


class Atom(object):
Expand Down
2 changes: 1 addition & 1 deletion chemlab/core/system.py
@@ -1,6 +1,6 @@
import numpy as np
from .molecule import Atom, Molecule
from ..data import units, masses
from ..db import units, masses
from ..utils import overlapping_points

from collections import namedtuple
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions chemlab/graphics/renderers/atom.py
@@ -1,6 +1,6 @@
import numpy as np
from .. import colors
from ...data.vdw import vdw_dict
from ...db.vdw import vdw_dict
from .base import AbstractRenderer
from .sphere import SphereRenderer
from .sphere_imp import SphereImpostorRenderer
Expand Down Expand Up @@ -33,7 +33,7 @@ class AtomRenderer(AbstractRenderer):
radii_map: dict, should contain the 'Xx' key,value pair.
A dictionary mapping atom types to radii. The default is the
mapping contained in `chemlab.data.vdw.vdw_dict`
mapping contained in `chemlab.db.vdw.vdw_dict`
"""

Expand Down
2 changes: 1 addition & 1 deletion chemlab/graphics/renderers/ballandstick.py
Expand Up @@ -2,7 +2,7 @@
from .atom import AtomRenderer
from .bond import BondRenderer

from ...data import cdb
from ...db import cdb

class BallAndStickRenderer(AbstractRenderer):
def __init__(self, widget, r_array, type_array, bonds):
Expand Down
2 changes: 1 addition & 1 deletion chemlab/graphics/renderers/wireframe.py
Expand Up @@ -2,7 +2,7 @@
from .atom import AtomRenderer
from .bond import BondRenderer

from ...data import cdb
from ...db import cdb

class WireframeRenderer(AbstractRenderer):
def __init__(self, widget, r_array, type_array, bonds):
Expand Down
2 changes: 1 addition & 1 deletion chemlab/io/handlers/gro.py
Expand Up @@ -6,7 +6,7 @@

from ...core.system import System
from ...core.molecule import Atom
from ...data.symbols import symbol_list
from ...db.symbols import symbol_list


symbol_list = [s.lower() for s in symbol_list]
Expand Down
2 changes: 1 addition & 1 deletion chemlab/io/handlers/pdb.py
Expand Up @@ -2,7 +2,7 @@
from .base import IOHandler
from itertools import groupby
import numpy as np
from ...data import cdb
from ...db import cdb

symbols = cdb.get("symbols", "data")
u_symbols = [s.upper() for s in symbols]
Expand Down
2 changes: 1 addition & 1 deletion chemlab/molsim/integrators.py
@@ -1,4 +1,4 @@
from chemlab.data import masses
from chemlab.db import masses
from chemlab.molsim import cforces2 as cforces

def euler(r0, v0, a0, dt):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -27,7 +27,7 @@
package_data = {'': ['distribute_setup.py', '*.rst', '*.txt'],
'chemlab.graphics.renderers.shaders': ['*.vert', '*.frag'],
'chemlab.resources' : ["*"],
'chemlab.data' : ['*'],
'chemlab.db' : ['*'],
'chemlab.core.spacegroup': ['*']},

author = "Gabriele Lanaro",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_analysis.py
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from chemlab.core.spacegroup.crystal import crystal
from chemlab.molsim.analysis import rdf, rdf_multi
from chemlab.data import moldb
from chemlab.db import moldb
from chemlab.io import datafile
from chemlab.graphics import display_system

Expand Down
2 changes: 1 addition & 1 deletion tests/test_conservation.py
Expand Up @@ -4,7 +4,7 @@
from chemlab.graphics import display_system
from chemlab.molsim.integrators import evolve_generator
from chemlab.molsim import cenergy
from chemlab.data.masses import typetomass
from chemlab.db.masses import typetomass
import pylab as pl
import pyglet; pyglet.options['vsync'] = False

Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Expand Up @@ -89,7 +89,7 @@ def test_system():
def test_merge_system():
# take a protein
from chemlab.io import datafile
from chemlab.data import moldb
from chemlab.db import moldb
from chemlab.graphics import display_system
from chemlab.core import merge_systems

Expand Down
4 changes: 2 additions & 2 deletions tests/test_data.py
@@ -1,5 +1,5 @@
from chemlab.data.cirdb import CirDB
from chemlab.data.local import LocalDB
from chemlab.db.cirdb import CirDB
from chemlab.db.local import LocalDB
from chemlab.graphics import display_molecule

def test_cir():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_forces.py
Expand Up @@ -101,7 +101,7 @@ def update_pos():
v.schedule(update_pos)
v.run()

from chemlab.data import lj
from chemlab.db import lj

def test_energy():
'''This is made as a test to verify is the potential produced is
Expand Down
6 changes: 3 additions & 3 deletions tests/test_graphics.py
Expand Up @@ -147,7 +147,7 @@ def test_cylinder_renderer():

def test_bond_renderer():

from chemlab.data.cirdb import CirDB
from chemlab.db.cirdb import CirDB
from collections import defaultdict

v = QtViewer()
Expand All @@ -173,7 +173,7 @@ def test_bond_renderer():

def test_ball_and_stick_renderer():
from collections import defaultdict
from chemlab.data.cirdb import CirDB
from chemlab.db.cirdb import CirDB

v = QtViewer()
v.widget.background_color = black
Expand All @@ -193,7 +193,7 @@ def test_ball_and_stick_renderer():

def test_wireframe_renderer():
from collections import defaultdict
from chemlab.data.cirdb import CirDB
from chemlab.db.cirdb import CirDB

v = QtViewer()
v.widget.background_color = black
Expand Down
2 changes: 1 addition & 1 deletion tools/parse_forcefield.py
Expand Up @@ -49,7 +49,7 @@ def parse(FILE):
else:
print fields

from chemlab.data import masses
from chemlab.db import masses
opls_to_type = {}
# Parse atp file
def parse_atp(file):
Expand Down

0 comments on commit 951cde4

Please sign in to comment.