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

Fix bugs in hwp_sys default mueller parameters definition #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mj-gomes
Copy link

@mj-gomes mj-gomes commented Nov 19, 2024

Resolves #335.

I also changed the multiple "if not hasattr(self, attr):" to "if not paramdict.get(attr):" because, when assigning the value "False" to a non-given parameter, the hasattr will consider the parameter already exists (is equal to False) and return True.

This is only a problem when the argument "mueller_or_jones" == "mueller". It must be because the parameters h1,h2,z1,z2,beta in the ideal case are all zeros and as False = 0, it works.

@mj-gomes mj-gomes changed the title Fix bugs in default mueller set parameters definition Fix bugs in hwp_sys default mueller parameters definition Nov 19, 2024
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.

minor bug in hwp_sys.set_parameters()
1 participant