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

add magnet control to triton driver #893

Merged
merged 18 commits into from
Feb 6, 2018

Conversation

peendebak
Copy link
Contributor

@peendebak peendebak commented Dec 1, 2017

Control of the magnet is added.

@MerlinSmiles @jenshnielsen @WilliamHPNielsen The merge of the driver was not easy, and I cannot test all features here. Can you have a good look at the PR diff?

@gzheng @MNoordam

Copy link
Collaborator

@jenshnielsen jenshnielsen left a comment

Choose a reason for hiding this comment

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

left some inline comments

@@ -141,11 +225,10 @@ def _get_control_channel(self):
self._control_channel = i
break

return self._control_channel
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be removed. Looks like the last loop has no effect then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch

def _set_control_channel(self, channel):
self._control_channel = channel
self.write('SET:DEV:T{}:TEMP:LOOP:HTR:H1'.format(channel))
self.write('SET:DEV:T%s:TEMP:LOOP:HTR:H1' %
self._get_control_channel())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason to rewrite using old style formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably someone not familar with .format style formatting

self.write('SET:SYS:VRM:COO:CART:RVST:MODE:RATE:RATE:' + str(s) +
':VSET:[' + str(x) + ' ' + str(y) + ' ' + str(z) + ']\r\n')
else:
print('Warning: set sweeprate in range (0 , 0.2] T/min')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should perhaps clarify that this did nothing because it's out of range

get_cmd = 'READ:DEV:%s:TEMP:SIG:TEMP' % chan,
get_parser = self._parse_temp)
self.chan_temps = set(self.chan_temps)
def _get_temp_channels(self, file):
Copy link
Collaborator

Choose a reason for hiding this comment

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

are these changes intentional, They dont seem to relate to the magnet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR is a merge for an old branch of qcodes. There indeed seem to be some changes not strictly related to the magnet

@peendebak
Copy link
Contributor Author

@jenshnielsen I addressed some of your comments. I did not write the changes myself, so I cannot comment any further.

@gzheng

@codecov
Copy link

codecov bot commented Dec 12, 2017

Codecov Report

Merging #893 into master will increase coverage by 1.72%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #893      +/-   ##
==========================================
+ Coverage   77.92%   79.64%   +1.72%     
==========================================
  Files          37       79      +42     
  Lines        5236    10242    +5006     
==========================================
+ Hits         4080     8157    +4077     
- Misses       1156     2085     +929

@eendebakpt
Copy link
Contributor

@jenshnielsen Should I do something with the codecov report?

@jenshnielsen
Copy link
Collaborator

@eendebakpt There are no tests for the driver hence the coverage stays the same as it is. No need to do anything

@peendebak
Copy link
Contributor Author

@jenshnielsen What is the status of the PR?

@jenshnielsen
Copy link
Collaborator

It still have changes not related to the magnet that I don't think belongs here

@peendebak
Copy link
Contributor Author

@jenshnielsen I reverted the changes not related to the magnet. We will keep track of these changes locally.

@peendebak
Copy link
Contributor Author

@jenshnielsen Is this one good to merge?

@jenshnielsen
Copy link
Collaborator

Yes it looks fine now

@jenshnielsen jenshnielsen merged commit 9e2e64d into microsoft:master Feb 6, 2018
giulioungaretti pushed a commit that referenced this pull request Feb 6, 2018
Author: peendebak <P.T.eendebak@tudelft.nl>

    add magnet control to triton driver (#893)
@peendebak peendebak deleted the update/triton branch August 8, 2019 18:34
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

4 participants