Skip to content
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

nodes and nodes2 name objects conflict #54

Open
auzaheta opened this issue Sep 22, 2021 Discussed in #49 · 0 comments
Open

nodes and nodes2 name objects conflict #54

auzaheta opened this issue Sep 22, 2021 Discussed in #49 · 0 comments
Assignees
Labels
Difficulty: High Expected workload is several months. Status: Blocked Issue requires other issues (e.g. bugs, dependencies) to be resolved before it can be addressed. Type: Bug Issue is about an error in existing code that needs fixing.

Comments

@auzaheta
Copy link
Collaborator

Discussed in #49

Originally posted by meakbiyik September 8, 2021
Hi all, I got a weird error during preprocessing phase and cannot seem to find the reason. Here's the code and backtrace:

rate_model_preprocessing <- estimate(
    rate_formula,
    preprocessingOnly = TRUE,
    model = "DyNAM",
    subModel = "rate"
)
Error in object[[name, exact = TRUE]] : subscript out of bounds
Backtrace:
1: getElement(get(row$nodeset, envir = envir), row$attribute)
2: getElementFromDataObjectTable(objectNameTable, envir = envir)
3: imputeMissingData(objectsEffectsLink, envir = prepEnvir)
4: preprocess(model, subModel, events = events, effects = effects, 
5: estimate.formula(rate_formula, preprocessingOnly = TRUE, model = "DyNAM",
6: estimate(rate_formula, preprocessingOnly = TRUE, model = "DyNAM", 

I know that this is not much to work on, but I am unfortunately unable to share the data and for all purposes, it looks fine. At this point, I am just looking for an idea: this seems to be somewhat connected to #5 but my R knowledge is not good enough to understand what is going on.

Thanks in advance!

Preprocessing functions use the same names for objects. When it tries to get the info from the nodes data frame it gets a character vector instead.

Until this bug is fixed the nodes and nodes2 object names should be avoided to name the nodes' data frames.

@auzaheta auzaheta added Type: Bug Issue is about an error in existing code that needs fixing. Difficulty: High Expected workload is several months. Status: Blocked Issue requires other issues (e.g. bugs, dependencies) to be resolved before it can be addressed. labels Sep 22, 2021
@auzaheta auzaheta added this to To do in goldfish-dev via automation Sep 22, 2021
@auzaheta auzaheta self-assigned this Sep 22, 2021
@auzaheta auzaheta moved this from To do to Someday/Maybe in goldfish-dev Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: High Expected workload is several months. Status: Blocked Issue requires other issues (e.g. bugs, dependencies) to be resolved before it can be addressed. Type: Bug Issue is about an error in existing code that needs fixing.
Projects
goldfish-dev
  
Someday/Maybe
Development

No branches or pull requests

1 participant