Closed rabritta closed 4 years ago
Thanks for the bug report. It seemed to slipped through testing. Hope it's fixed now.
Would be awesome if you can test it with ] dev https://github.com/lanl-ansi/Juniper.jl
and then in .julia/dev/Juniper.jl
use git checkout bugfix-registered-functions
which should show you v0.6.3
in ] status
afterwards. If that works out I'll register the new version.
And welcome to GitHub :)
Btw I've changed your issue slightly such that the code is more readable now. You can do this with "````" around your code block.
Hey @Wikunia! Thanks for welcoming me and for showing me how to make the code more readable. I got the ] dev https://github.com/lanl-ansi/Juniper.jl
part just fine but I couldn't figure the rest out. Apologies, I am pretty new to this stuff. I found the bugfix file and did the attempt below, but I believe I am messing things up.
No problem. I might have forgotten some parts: It's easiest to do in a shell but can be done in the REPL or in your notebook as well I believe. Can you try:
; cd C:/Users/Win10/.julia/Juniper/
; git checkout bugfix-registered-functions
] status
;
brings you to shell mode.
]
status should show Juniper v0.6.3
If that works you can just run your model and it should work fine.
dev folder was missing, but I am still getting some errors
Can you use a shell outside Julia? I haven't used Windows for quite a while :smile:
If you have git installed which I think you need when using Julia checkout
should be working.
Maybe you can run the commands in the PowerShell?
change to the dev/Juniper
folder and then run git checkout bugfix-registered-functions
Did you try using this package manager command?
] add Juniper#bugfix-registered-functions
It seems like using Jupyter notebook instead of Julia directly was a problem indeed. Anyway, @ccoffrin 's command did the trick, as seem in the image below. But I am still getting the "key :ntur not found" error. Stacktrace [1] is still [1] getindex(::Dict{Symbol,Int64}, ::Symbol) at .\dict.jl:477
. Let me know if you want me to send you my code.
Thanks for testing it out. Yes sending the code would be much appreciated. If you don't want to make it public here feel free to send me an email o.kroeger@opensourc.es
Won't be necessary. I just needed to restart the kernel after the previous steps. It is working fine now :) You guys are awesome
Thanks for the report and glad we could quickly resolve the issue. Kudos to @Wikunia!
Hello. As seen in the attached print-screen, I am getting a "KeyError: key :ntur not found" error even after registering the function both in the model and in Juniper.
My registration looks like this:
I could not find this issue already posted. Although issue #118 is similar, it was solved by simply registering the function in Juniper, which is not my case. I realized that in #118 the stacktrace [2] is identical to mine:
Any help is appreciated. Regards.