Skip to content

Commit c52b282

Browse files
committed
Added docstrings and removed old code
1 parent d3e1378 commit c52b282

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

exatomic/basis.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -438,18 +438,6 @@ class CartesianGTFOrder(DataFrame):
438438
_traits = ['l']
439439
_categories = {'l': np.int64, 'x': np.int64, 'y': np.int64, 'z': np.int64}
440440

441-
def _custom_traits(self):
442-
#print(self.groupby('l').apply(lambda y: y['x'].values))
443-
#print(self.groupby('l').apply(lambda y: y['x'].values).to_json(orient='values'))
444-
#cgto_x = self.groupby('l').apply(lambda x: x['x'].values).to_json(orient='values')
445-
#cgto_x = Unicode(''.join(['[', cgto_x, ']'])).tag(sync=True)
446-
#cgto_y = self.groupby('l').apply(lambda x: x['y'].values).to_json(orient='values')
447-
#cgto_y = Unicode(''.join(['[', cgto_y, ']'])).tag(sync=True)
448-
#cgto_z = self.groupby('l').apply(lambda x: x['z'].values).to_json(orient='values')
449-
#cgto_z = Unicode(''.join(['[', cgto_z, ']'])).tag(sync=True)
450-
#return {'cartesiangtforder_x': cgto_x, 'cartesiangtforder_y': cgto_y,
451-
# 'cartesiangtforder_z': cgto_z}
452-
return {}
453441

454442
@classmethod
455443
def from_lmax_order(cls, lmax, ordering_function):
@@ -495,13 +483,6 @@ class SphericalGTFOrder(DataFrame):
495483
_traits = ['l']
496484
_index = 'spherical_order'
497485

498-
def _custom_traits(self):
499-
sgto = self.groupby('frame').apply(lambda x: x.groupby('l').apply( lambda y: y['ml'].values))
500-
sgto = Unicode(sgto.to_json(orient='values')).tag(sync=True)
501-
return {'sphericalgtforder_ml': sgto}
502-
#Unicode('[' + self.groupby('l').apply(
503-
# lambda x: x['ml'].values).to_json(orient='values') + ']').tag(sync=True)}
504-
505486
@classmethod
506487
def from_lmax_order(cls, lmax, ordering_function):
507488
"""

exatomic/orbital.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ class DensityMatrix(DataFrame):
160160
_index = 'index'
161161

162162
def square(self, frame=0):
163+
"""Returns a square dataframe of the density matrix."""
163164
denvec = self[self['frame'] == frame]['coefficient'].values
164165
square = pd.DataFrame(density_as_square(denvec))
165166
square.index.name = 'chi1'

0 commit comments

Comments
 (0)