-
Notifications
You must be signed in to change notification settings - Fork 30
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
AttributeError: 'ConfigObject' object has no attribute 'pixelsize_diff' #37
Comments
Hi @kttn8769, try: |
The values are defined in your calibration yaml: Can you tell me where you found the syntax you used? I changed this already a while ago, because accessing the config in this way caused problems, but I noticed some references in the code that I forgot to update. |
Hi @stefsmeets , Ok, I understand the syntax is old-style, thank you. I noticed this while I was reading instamatic.experiments.cred.experiment.Experiment.start_collection method to see how cRED is implemented. By the way, I found two possible typos, config.locations instead of config.location? |
Yep, good point! Thanks for the heads-up. Somehow I missed these variables when sweeping through the code. I should find a way to incorporate the experimental part in the automated tests to catch this. |
Hi,
I have noticed that config.calibration.pixelsize_diff is not accessible after importing instamatic.config.
Accessing
config.calibration.pixelsize_diff
throws an exceptionAttributeError: 'ConfigObject' object has no attribute 'pixelsize_diff'
.Is this an expected behavior?
I'm using commit fa6af76 in the sumulation mode.
And could you please show me in which code the attribute pixelsize_diff is defined?
Sorry I'm asking you many times these days.
Thanks!
The text was updated successfully, but these errors were encountered: