> Thank you for all the examples, that should help a lot. Out of curiosity, > those are the corrected versions of the code? Where was the mistake in the > original?
Happy to help! The original was unitless altogether, so that was the first problem. The particular error was λ. I typically work in Zemax, where the base unit of length is mm (or inch, if you change default settings). So my λ was 550e-6 instead of 550e-9. Funny thing is, my ȳ was a function that expects λ to have units of nm, and I did correct that. An exception told me that 550e-6 was out of bounds. But I did not think to check other dimensional mismatches. We built the prototype, saw the signal on the sensor that we expected to, but it was ~1000 times (~10 stops - another unit!) dimmer than expected. So basically useless. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ED3THDXPIQSSZXLEMIHX5ZYTIZ77VFPZ/ Code of Conduct: http://python.org/psf/codeofconduct/