Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enh/m av2 #455

Closed
wants to merge 16 commits into from
Closed

Enh/m av2 #455

wants to merge 16 commits into from

Conversation

tstavenga
Copy link
Contributor

Please use the following template for a pull request.

Fixes #issuenumber.
Push my changes to the new analysis
It is not finished but i think it is good to have a common starting point

Changes proposed in this pull request:

@mention AdriaanRol

In order for the pull request to be merged, the following conditions must be met:

  • travis test suite passes
  • all reasonable issues raised by codacy must be resolved
  • a positive review is required

Whenever possible the pull request should

  • follow the PEP8 style guide
  • have tests for the code
  • be well documented and contain comments

Tests are not mandatory as this is generally hard to make for instruments that interact with hardware.

@AdriaanRol
Copy link
Contributor

@tstavenga I see that the last change you added broke the tests, might be worth checking out why that is.

I also see that this PR essentially contains two big changes.

  • updates to base analysis
  • spectroscopy analysis file

I would propose the following

  • we hand merge the base analysis that we use with the one you use (better than having the commit fight that Rene joked about).
  • fix the tests that are broken (you break it, you fix it)
  • we set up a basic test for the spectroscopy analysis (so that if I break it I will have to fix it)
    • it can serve as an example how to use it (e.g., how to call them, what kind of data it expects
    • it does not have to be very rigorous, just running all the code would already catch 90% of the bugs.
  • after that I go over the PR in detail. (I see some details like commented out code and such).

Let me know if I can be of any help.

@@ -288,6 +296,22 @@ def extract_data(self):
self.raw_data_dict = new_dict
self.raw_data_dict['timestamp'] = self.timestamps[0]
self.raw_data_dict['timestamps'] = self.timestamps

def extract_data_json(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

this block seems to be misplaced?

@@ -461,38 +488,31 @@ def save_fit_results(self):
"""
Saves the fit results
"""

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bugfix and needs to be merged over

@Aypac
Copy link
Contributor

Aypac commented Apr 13, 2018

This is not working. Created a new branch #458 to realize this request.

@Aypac Aypac closed this Apr 13, 2018
Aypac added a commit that referenced this pull request Apr 13, 2018
Aypac added a commit that referenced this pull request Apr 13, 2018
@AdriaanRol AdriaanRol deleted the enh/MAv2 branch April 13, 2018 14:46
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.

None yet

3 participants