Closed arhamchopra closed 2 months ago
Note that the function was removed in https://github.com/Point72/csp/pull/258 as no internal csp code called it and it was meant to be an internal function.
However, an external user reported that they were using the feature and this change broke their pipeline, so we're adding it back in.
Note that the function was removed in #258 as no internal csp code called it and it was meant to be an internal function.
However, an external user reported that they were using the feature and this change broke their pipeline, so we're adding it back in.
Note the difference in the name postprocess_to_dict
versus _postprocess_dict_to_python
(in #258).
This method is now being exposed as a public hook so that users can override this method if needed.
This PR adds
postprocess_to_dict
hook to thestructs
. This hook is invoked by theto_dict
method on thedict
obtained from parsing astruct
. It will allows users to customize the finaldict
generated by theto_dict
method for each struct.