lnccbrown / HSSM

Development of HSSM package
Other
74 stars 10 forks source link

Decide if doing nothing before check? #500

Open cpaniaguam opened 1 month ago

cpaniaguam commented 1 month ago

https://github.com/lnccbrown/HSSM/blob/2b8fadbd1098c54e449ba95dbec963eb7d5a4617/src/hssm/param.py#L101-L104

digicosmos86 commented 1 month ago

Not sure about this. The idea of _ensure_not_converted() is to freeze the entire class, so no further changes can be made. So this check should always happen before any computation is made

cpaniaguam commented 1 month ago

I see what you mean but if the check in L103 passes no computations will be made. That's why I thought of maybe inverting the order here.