Comments (9)
Sorry for the delay, I finally found where the issue comes from!
Here in the merge_simfiles
function, the call to merge
has keep.other = FALSE
.
When merging the first and second file, the temp
sublist is dropped. So when loading the 3rd one, there is a temp
sublist in it but not in the previously merged ones and merge
complains that the structure is different.
this PR fixes the issue by adding the keep.other
argument.
merge_simfiles(1, ftype = "max", keep.other = TRUE)
This manages to combine all simulations without errors
from epimodelhpc.
@AdrienLeGuillou : can you take a look at this when you get a chance? I am also surprised the param.error = FALSE
flag in merge.netsim
does not overlook this potential parameter mismatch.
from epimodelhpc.
The param.error = FALSE
flag only check for the params. However, the message
x and y have different structure
occurs with this check:
if (length(x) != length(y) || !identical(names(x), names(y))) {
stop("x and y have different structure")
}
@sgoodreau, could you give me the output of
names(netsim_object)
for each of the 5 files you are trying to merge?
from epimodelhpc.
Oops, I saw the GitHub messages for @clchand23's similar issue, and mistakenly thought this one was resolved, so didn't follow through on this. Sorry, @AdrienLeGuillou!
Looks like all five are the same (see below). I'd share the objects, but they're each 1.2 Gb. I could upload to a Google Drive if you'd like, or elsewhere.
Thanks!!!
names(sims[[1334]][[1]])
[1] "param" "control" "nwparam" "last_timestep" "epi"
[6] "el.cuml" "_last_unique_id" "attr.history" "raw.records" "stats"
[11] "attr" "temp" "el"
names(sims[[1334]][[2]])
[1] "param" "control" "nwparam" "last_timestep" "epi"
[6] "el.cuml" "_last_unique_id" "attr.history" "raw.records" "stats"
[11] "attr" "temp" "el"
names(sims[[1334]][[3]])
[1] "param" "control" "nwparam" "last_timestep" "epi"
[6] "el.cuml" "_last_unique_id" "attr.history" "raw.records" "stats"
[11] "attr" "temp" "el"
names(sims[[1334]][[4]])
[1] "param" "control" "nwparam" "last_timestep" "epi"
[6] "el.cuml" "_last_unique_id" "attr.history" "raw.records" "stats"
[11] "attr" "temp" "el"
names(sims[[1334]][[5]])
[1] "param" "control" "nwparam" "last_timestep" "epi"
[6] "el.cuml" "_last_unique_id" "attr.history" "raw.records" "stats"
[11] "attr" "temp" "el"
from epimodelhpc.
@sgoodreau, no worries.
I am at a loss here. I think I would need the files to experiment. I am not using merge_simfiles
personally so I have a hard time zeroing on where the error could come from.
If you could send me a link to download them I would experiment with them a bit and hopefully find were the error lies.
from epimodelhpc.
@AdrienLeGuillou I put them in the /gscratch/csde directory on Hyak -- I believe both of us should be able to access that, and that seemed easiest given their large size. I'm imaging you'll be playing around with them on Hyak or Union/Libra/Nori anyway. LMK if you have trouble or want me to download them somewhere else.
from epimodelhpc.
That will be perfect I think. I check that ASAP
from epimodelhpc.
Thank you!!!
from epimodelhpc.
#42 merged into main
from epimodelhpc.
Related Issues (20)
- Change (make flexible) placement of loadR.sh in sbatch_master HOT 17
- Equivalent function to deactivate.edges HOT 3
- Function initialize_cp HOT 1
- Solidify new HPC methods from ALG into EpiModelHPC HOT 1
- EpiModelHPC: define a way to run all the calibrations at once on HPC and gather the final calibrated model. HOT 1
- add a slurmworkflow step_tmpl for scenarios with replication
- Implement checkpointing Slurm HOT 9
- wrong batch number in the log of `step_tmpl_netsim_scenarios` HOT 1
- merge_simfiles might be not working? HOT 1
- make `step_tmpl_renv_restore` init renv if not done
- revisit the tests
- Runs don't parallelize across cores when nsims = ncores (ie with only one node) HOT 19
- Fix vignette / doc related to `netsim_scenarios`
- Use [email protected] from `module` in SPH HOT 1
- issue with merge_netsim_scenarios HOT 7
- Update sbatch_master to output --ntasks instead of --cpus_per_task HOT 2
- `spack unload -a` still necessary
- `netsim_scenarios`: use future instead of inner parallelization
- do not `rep` the scenario list in `netsim_scenarios`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epimodelhpc.