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

Interface and microscope #46

Closed
rds-itga opened this issue Nov 5, 2020 · 2 comments
Closed

Interface and microscope #46

rds-itga opened this issue Nov 5, 2020 · 2 comments

Comments

@rds-itga
Copy link

rds-itga commented Nov 5, 2020

Hi,
I have a question, to use the jeol-1400 configuration I filled the field

microscope: jeol-1400

within the settings.yaml config file but do i have to call

ctrl = TEMController.initialize(tem_name='jeol', cam_name=None)

or

ctrl = TEMController.initialize(tem_name='jeol-1400', cam_name=None)

The fact is that I observed an unexpected behaviour yesterday:
I called

ctrl = TEMController.initialize(tem_name='jeol', cam_name=None)

with

microscope: jeol-1400

within settings.yaml
but when i called

ctrl.tem.getMagnificationRanges()

I got those from jeol.yaml and not those from jeol-1400.yaml
I don't know if I am clear

Thanks

@stefsmeets
Copy link
Member

Hi @rds-itga , I think I understand, it also still gets me confused sometimes 😅 What you describe fits with how it is intended to work.

The idea is that if you filled out the settings.yaml then you can use:

ctrl = TEMController.initialize()

Then it will use the value configured in settings.yaml

If you set tem_name='jeol', then it will override the value you set, and use the given value instead. This seems to be what is happening.

If you want to be really in the clear, just have a single file called jeol.yaml.

@rds-itga
Copy link
Author

rds-itga commented Nov 5, 2020

Ok, I understand, it is clear to me now.
Thank you very much!
Regards

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

No branches or pull requests

2 participants