Skip to content

Commit

Permalink
expand docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
schae234 committed Oct 9, 2018
1 parent 9281261 commit 0a5eeeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions camoco/COB.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,8 @@ def coordinates(self,iterations=50,force=False,max_edges=100000):


def cluster_ellipse(self, cluster_number, nstd=2):
# Solution inspired by:
# https://stackoverflow.com/questions/12301071/multidimensional-confidence-intervals
# Get the coordinates of the MCL cluster
coor = self.coordinates()
points = coor.loc[self.clusters.iloc[self.clusters.cluster.values == cluster_number].index.values]
Expand Down
6 changes: 3 additions & 3 deletions camoco/cli/commands/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def cob_health(args):
log('Plotting Degree Distribution ---------------------------------------')
if not path.exists('{}_DegreeDist.png'.format(args.out)):
degree = cob.degree['Degree'].values
#Using powerlaw makes run-time warning the first time you use it.
#This is still an open issue on the creators github.
#The creator recommends removing this warning as long as there is a fit.
# Using powerlaw makes run-time warning the first time you use it.
# This is still an open issue on the creators github.
# The creator recommends removing this warning as long as there is a fit.
np.seterr(divide='ignore', invalid='ignore')
fit = powerlaw.Fit(degree,discrete=True,xmin=1)
# get an axis
Expand Down

0 comments on commit 0a5eeeb

Please sign in to comment.