Closed daniel-thom closed 3 months ago
Attention: Patch coverage is 50.00000%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 79.83%. Comparing base (
b311f7f
) to head (156469f
). Report is 3 commits behind head on main.
These were the "more intricacies to figure out" I was talking about :)
I had assumed that surely there was a way to get the parameters of a type in general, but it seems like maybe the only ways to do this without string manipulation use non-public interface.
I had assumed that surely there was a way to get the parameters of a type in general, but it seems like maybe the only ways to do this without string manipulation use non-public interface.
Like this? https://github.com/NREL-Sienna/InfrastructureSystems.jl/blob/main/src/serialization.jl#L115
I had assumed that surely there was a way to get the parameters of a type in general, but it seems like maybe the only ways to do this without string manipulation use non-public interface.
Like this? https://github.com/NREL-Sienna/InfrastructureSystems.jl/blob/main/src/serialization.jl#L115
I was under the impression that .parameters
was not considered public interface.
This is a follow-on to #339. There were cases where we were using
nameof
(which removes parameteric types) where we should have usedstrip_module_name
(which preserves parametric types). The best example is when printing a table of component counts. We were showingVariableReserve
twice instead of showing bothVariableReserve{ReserveDown}
andVariableReserve{ReserveUp}
.