-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adds build_paramDict #26
base: master
Are you sure you want to change the base?
Conversation
It is quite involved approach there must be better way of doing this. |
Why is there any string parsing here? I don't get the purpose of this. |
Are you trying to take an OrderedDict and convert it to a NamedTuple? |
I want to get the functionality of the inspect module from python, more specifically, the getfullargspec() function. I couldn't find an equivalent one in Julia. I've made a post as well here https://discourse.julialang.org/t/function-parameter-speculation-in-runtime/41523, but I wasn't able to get an answer. So I had to do this to get it working |
Codecov Report
@@ Coverage Diff @@
## master #26 +/- ##
=========================================
- Coverage 8.81% 8.55% -0.27%
=========================================
Files 5 6 +1
Lines 1372 1414 +42
=========================================
Hits 121 121
- Misses 1251 1293 +42
Continue to review full report at Codecov.
|
Changed it to a callable struct now. Only issue with this is to call a function, one must write ()(args); the first set of () for creating an instance of the struct. Is this way better? @vollmersj @ChrisRackauckas |
Converted all the functions! |
…ate contained in diseaseProgression
I've converted the functions in the highlevel to callable structs as well and have made the nested whenever possible(when a function uses another, I've made it a member of the parent-for a hierarchical structure). As of now, the solveSystem puts out the solution, but I am not able to get the solveSystem working with the speedup made by @ChrisRackauckas, as it errors out. If @ChrisRackauckas or @vollmersj can help me out with this, it will be great. (Note: I've commented out the part that optimises the model) |
Creates a named tuple instead of OrderedDict(). It can be buggy, cos it used REs and a lot of string manipulation from the source code. But to my understanding, it works