Skip to content

Conversation

@francoisBmallet
Copy link

No description provided.

A given parameter (within detector_settings) whose value has been changed by the user
"""

def commit_settings(self, param: Parameter) -> None:
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 error, could you clean that please? those two def declaration!!

Copy link
Author

Choose a reason for hiding this comment

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

Hey sorry ! just discovering all this. Think it is ok on my branch now.

controller: object
Controller of the daq_move
"""
self.ini_stage_init(slave_controller=controller)
Copy link
Contributor

Choose a reason for hiding this comment

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

you can actually remove this line and add the one below

self.settings.child('address').value()
)
self.controller = SR830ThreadSafe(adapter)

Copy link
Contributor

Choose a reason for hiding this comment

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

else:
    self.controller = controller

info = self.controller.id
self.settings.child('id').setValue(info)
initialized = True
self.ini_detector_init(slave_controller=controller)
Copy link
Contributor

Choose a reason for hiding this comment

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

same remove this line and add a

else:
self.controller = controller

for channel in CHANNELS:
assert hasattr(SR830ThreadSafe, channel)

class ChannelGroup(GroupParameter):
Copy link
Contributor

Choose a reason for hiding this comment

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

actually this is a wrong idea to do so because it won't be properly saved for a given configuration. Why would you change that and not use the already existing way to select the channels?? and magnitude and phase was existing as the R and theta channels??

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