Better handle of None objects #236
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
In the code an object is set to None, if not defined. This requires careful usage.
None.dtype
will always fail. -> We always need to check for None before performing a sub-function or requesting a sub-object.NoneType
. -> We shouldn't useNone
for any float or integer variables, butnp.nan
instead.I'm not sure, whether there are other things, so feel free to add possible issues occurring from
None
objects!Maybe there are some functions, which don't work with
None
objects, but most should. Thus, whenever you add a new function (including ones imported from modules) check that they can handleNone
s or make sure, that there is a check before in the code!The text was updated successfully, but these errors were encountered: