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

Extension dispersion relation to include pressure and temperature dependence #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

deimemiche
Copy link

No description provided.

@nzhagen
Copy link
Owner

nzhagen commented Jan 24, 2017

I just added the temperature dependence code into the repo, with substantial modifications.

There was one place that I would particularly like to know about -- the code where int(nm[6]) and so on was replaced with int(float(nm[6])). What behavior was driving that change? Perhaps a difference in Python versions?

@deimemiche
Copy link
Author

Hi,
I just compared the temperature dependence code and have a few questions:

  • Why did you remove the pressure dependence of the refractive index? According to the reference from SCHOTT TIE-19, all "refractive index values given in the optical glass catalog apply for an air pressure of
    0.10133·10^6 Pa". The equations I used modify the refractive index of every glass to account for operations under e.g. vaccum conditions. Your modifications removed this feature, again.

  • Why did you not use my method to calculate the refractive index with numpy array operations (e.g. the einsum operand). In the plot command for the temperature dependence, you rely now on a list operation, which is much slower compared to the numpy operations.

  • The code int(float(...)) was probably due to a difference in python version. It works now for me without it.

Greetings, Michael

@nzhagen
Copy link
Owner

nzhagen commented May 8, 2017 via email

@nzhagen
Copy link
Owner

nzhagen commented Jun 24, 2017

Michael,

I've been trying to merge your update, but your update contains hundreds of lines of stylistic differences with the repo version, and so I can only update the part about the "force_update" keyword. Can you tell me what the function of that is? We should put a line into the code describing what it is for.

@nzhagen
Copy link
Owner

nzhagen commented Jul 1, 2017

Michael, I believe the pressure-dependence functionality is in place within the code. Do you have a good method for testing it to verify correctness?

@deimemiche
Copy link
Author

deimemiche commented Jul 1, 2017 via email

@nzhagen
Copy link
Owner

nzhagen commented Jul 2, 2017

Michael - Sounds good. I know from personal experience how hard it can be to devote time to this stuff when there are pressures on your time from everywhere else. Thanks for the help, and I can definitely wait until a time that works for you.

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