Skip to content

(KTS) add ml_stats and ml_cross_stats classes to quicklens/sims/util.py#5

Open
kstory8 wants to merge 1 commit intodhanson:masterfrom
kstory8:ml_stats
Open

(KTS) add ml_stats and ml_cross_stats classes to quicklens/sims/util.py#5
kstory8 wants to merge 1 commit intodhanson:masterfrom
kstory8:ml_stats

Conversation

@kstory8
Copy link
Copy Markdown

@kstory8 kstory8 commented Aug 30, 2017

@dhanson Can you take a look and merge this pull request? I simply copied over the classes we built a few years ago.

Copy link
Copy Markdown
Owner

@dhanson dhanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo some nit comments.

Comment thread quicklens/sims/util.py

class ml_cross_stats():
'''
Class to gater stats from a cross-spectrum.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gater -> gather?

Comment thread quicklens/sims/util.py

class ml_stats():
'''
Gather spectrum statistics
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use consistent comment format w/ other functions in the file?

Comment thread quicklens/sims/util.py
'''
Class to gater stats from a cross-spectrum.
This emulates sims.util.ml_stats()
'''
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of the code here is identical to that in ml_stats -- WDYT about using it as a base class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants