Skip to content

Commit 6b79f3e

Browse files
committed
fu
1 parent db8b4b7 commit 6b79f3e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pytim/observables/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .basic_observables import Position, RelativePosition, Velocity, Force
1212
from .basic_observables import Number, Mass, Charge, NumberOfResidues
1313
from .basic_observables import Distance
14-
from .bond_topological_order_parameter import TopologicalOrderParameter
14+
from .topological_order_parameter import TopologicalOrderParameter
1515
from .adjacency_matrix import DistanceBasedAdjacencyMatrix, WaterHydrogenBondingAdjacencyMatrix
1616
from .local_frame import LocalReferenceFrame, Curvature
1717

pytim/observables/bond_topological_order_parameter.py renamed to pytim/observables/topological_order_parameter.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*-
22
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
3-
""" Module: hydroge_bond_topological_order_parameter
3+
""" Module: topological_order_parameter
44
===================================
55
66
Implements the topological order parameter Psi as introduced in
@@ -95,8 +95,9 @@ def compute(self, inp ,kargs=None):
9595
>>> u.atoms.positions=pos
9696
>>> g = u.select_atoms('name OW')
9797
>>> psi = TopologicalOrderParameter(HB,4)
98-
>>> print(psi.compute(g)[:4])
99-
[ inf 3.27362227 3.91287661 3.57974577]
98+
>>> with np.printoptions(precision=4):
99+
... print(psi.compute(g)[:4])
100+
[ inf 3.2736 3.9129 3.5797]
100101
101102
"""
102103

0 commit comments

Comments
 (0)