Changed default value of ignore_diags to auto instead of None in coverage#402
Changed default value of ignore_diags to auto instead of None in coverage#402efriman wants to merge 1 commit intoopen2c:masterfrom
Conversation
|
Looks good to me! Thank you @efriman |
|
I agree that None as default could be confusing. Perhaps all tools that take this argument should be updated simultaneously, though? Also, I can't remember if this has been discussed and set as None for consistency with cooler? Maybe @nvictus @sergpolly recall? |
|
not sure if this was for consistency with cooler ... imho would be nice to hide this cooler-hack def _get_cooler_ignore_diags(clr, clr_weight_name="weight"):
"""
extracts number of diagonals that were ignored during balancing of the clr
"""
clr_weight_uri = clr.root.rstrip("/") + f"/bins/{clr_weight_name}"
return clr._load_attrs(clr_weight_uri)["ignore_diags"]
|
|
Yes that makes sense! I think the main thing for me is that ignore_diags behaviour should be consistent across packages and functions. My intuitive sense would be that None or False or 0 would all lead to not ignoring diagonals. But None could also be that it takes it from the ignore_diags in the cooler attribute. If people agree then I could try to make it like that. |
|
there is nothing special between So from that perspective changing default |
This is a simple suggestion of a name change for the default value of ignore_diags in coverage. I had assumed None was equivalent to 0, so I propose to rename the default to "auto"