Closed paigem closed 1 year ago
I am not sure I understand the issue in the first place. The _np
functions only have positional arguments, there are no optional inputs on the numpy level.
I want to first understand the error you are seeing better. Can you run the computation which crashed your kernel in a python script in the terminal, so we see some error output?
A word of caution on the ordering (which IMO should stay as is for at least the _np
functions): This bit here requires the slp
to be in front of the rad_*
terms, or it would not work on both skin_np
and noskin_np
inputs (in the latter case this loop simply ends after the slp
).
This could still mean that we got something wrong, but then the ordering needs to be switched somewhere here instead.
Suggested next steps:
Happy to have a short chat offline later, if needed.
Thanks for the comment @jbusecke - I agree that I was too quick to make this PR. 😬
I have figured out the problem: I had input_range_check=False
on yesterday and so, when I had slp
in the wrong order, it crashed the kernel. By turning on input_range_check=True
I am getting errors that make it clear that slp
should be passed in before the radiation terms and then it runs no problem.
Sorry for this unnecessary PR! I'll close now.
But just to clarify, the docstrings are correct? Or do we need to change something in there?
The order of the input variables for
skin_np()
is wrong, with the optionalslp
variable before the required argumentsrad_sw
andrad_lw
.This PR updates the location of the
slp
variable inskin_np()
so thatslp
comes before all optional input variables, and also matches the input order ofskin()
. For clarity, the input ordering for bothskin()
andskin_np()
is:This typo was found today with the help of @shanicetbailey after I kept crashing my Python kernel trying to run
skin
.