Puma @dynamics does not call internal function such as Central1 but others

I’m not completely sure about your question. Are you asking if the list of completions in the dropdown should include the supported close form models? If so, then it is not currently supported, but it is a feature that we have in our issue tracker.

Dear Daniel,

It seems that you are expecting the VSCode autocompletion suggestions to work for all elements of Pumas. While this is not fully covered, if you have questions on how to use Pumas, I recommend using https://ask.pumas.ai/ to understand how to write models.

Best,

Vijay

Dear Andreas, Thank you for rely my question . I am taking Umaryland Pharmacometrics cousse and using Pumas as sole platform to perform PKPD modeling. I just follow the teacher sample code to learn from the class lecture. in the developing model part use @dymanics If I type D, it suppose to show up all the available models for selection including the one I show. but my list does not have any of them, while the teachers and other classmates have. Without the list , we are hard to write our own. that is part of the pumas function

for example if I need to write code: mdl_1cmp_np = @model begin

@param begin

  "Clearance (L/hr)"

  tvcl ∈ RealDomain(lower = 0.0001)

  "Volume (L)"

  tvvc  ∈ RealDomain(lower = 0.0001)

  "Additive RUV"

  σ²\_add  ∈ RealDomain(lower = 0.0001) #variance 

  "Proportional RUV"

  σ²\_prop  ∈ RealDomain(lower = 0.0001) #variance 

end

@pre begin

    CL = tvcl 

    Vc = tvvc 

  end





  @dynamics Central1



  @derived begin

    cp = @. (Central/Vc) # := hides output 

    """

    DrugY Concentration (mcg/L)

    """

    dv \~ @. Normal(cp, sqrt(((cp^2)\*σ²\_prop) + σ²\_add))

  end

end

@dynamics Central1 

should be able to come out automatically after I type @dynamics C. What my pumas come out is not Central1 and others. So I cannot select Central1 but need to type myself. but here are a lot of internal model like that for selection. therefore, I have hard time to complete my work. Maybe need to reinstall with old verison?

I’m pretty sure this limitation applies to all versions of Pumas so installing an older version won’t help. Adding suggested completions to the macro is a good idea and something we’ll consider for a future release. In the meantime, you’d have to rely on docs.pumas.ai, tutorials.pumas.ai, and ask.pumas.ai to find the valid options.