-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert htFluxWaterFromCoil GD into EquationalModel #2445
Conversation
Going through other GDs, it seems this same issue where it just results in a reordering of the references occurs a few times. However, I haven't (yet?) seen this occur with IMs or TMs. |
Just found a TM with the same issue: EDIT: And another, |
Re-ordering of the references is not a huge deal. Although they ought to be stable, as I'm pretty sure they are sorted. So something else is also going on. Having the label name change completely is a very different issue. We need to understand why this arises. |
@JacquesCarette I think I've figured it out now. Thank you for your hint, I did not know they were sorted! I was looking around examples when I spotted GlassBR's DD: gTF. It looks like this one isn't sorted too. Most RefBy's have reverse alphabetical sorted lists of references, but this one was seemingly not reversed, it's in standard order. However, taking a closer look at their definitions I realized that the UID of So then I take a closer look at my change. With the RelationConcept, the UID it was sorting against was manually set to Finally, if we're okay with changing the UIDs of htFluxP and htFluxC slightly, then we can revert our changes to stable. Perhaps, htFluxP (htFluxPCMFromWater) to
(and we can change the actual Haskell variables names too if we wanted to) Disclaimer: I don't know if this is the best solution, but I do think that the name change would ever so slightly better follow the definition of the unitals. |
While we decide the correct course of action, I posted the hacky (?) fix in 6aab6ed for the purpose of this review's proof of concept. |
Recalling a previous discussion we had actually, you mentioned that we should create a new UID for the QDefinition, perhaps that's the better solution? If so, would we want to have it, for example, always append "QD" to the end of the UID of the thing it defines? [ However, in this case, it would still be a problem since the appended "QD" would not really change the ordering. ] |
Sorting by UID is horrible. We shouldn't do that. I'll open an issue. Hacking UIDs to artificially fix ordering issues it not really a fix either. If the UID changes for good reasons, then let's allow the re-sorting (at least until #2468 is fixed). What I was more concerned with, is that the user-visible label seemed to change. And I wonder how/why that happened. |
Sounds good, I'll just revert my last commit then, and then we can wait until #2468 is fixed then. In that case, this issue won't be a blocker for some other ones too (which is great!). Thank you! |
…HShtFluxWaterFromCoilGD
This reverts commit 6aab6ed.
Relies on #2444
Reorders 1 area of the references slightly. I'm not entirely sure why it does this.
Leaving it as a draft PR.