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

Automatically initialise new attributes #157

Merged
merged 4 commits into from Jul 4, 2018

Conversation

Projects
None yet
1 participant
@Enchufa2
Member

Enchufa2 commented Jul 4, 2018

E.g.,

library(simmer)

t <- trajectory() %>%
  set_attribute("asdf", 1, mod="+", init=10) %>%
  set_global("fdsa", 2, mod="+") # init=0 by default

simmer() %>%
  add_generator("dummy", t, at(0), mon=2) %>%
  run() %>%
  get_mon_attributes()
#>   time   name  key value replication
#> 1    0 dummy0 asdf    11           1
#> 2    0        fdsa     2           1

Enchufa2 added some commits Jul 4, 2018

@codecov

This comment has been minimized.

codecov bot commented Jul 4, 2018

Codecov Report

Merging #157 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #157   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          50     50           
  Lines        2832   2833    +1     
=====================================
+ Hits         2832   2833    +1
Impacted Files Coverage Δ
inst/include/simmer/activity.h 100% <ø> (ø) ⬆️
R/trajectory-activities.R 100% <100%> (ø) ⬆️
inst/include/simmer/activity/arrival.h 100% <100%> (ø) ⬆️
src/activity.cpp 100% <100%> (ø) ⬆️
R/trajectory-class.R 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e70ad5...e65a9ce. Read the comment docs.

@Enchufa2 Enchufa2 merged commit 155d79c into master Jul 4, 2018

4 checks passed

codecov/patch 100% of diff hit (target 100%)
Details
codecov/project 100% (+0%) compared to 6e70ad5
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@Enchufa2 Enchufa2 deleted the attr-init branch Jul 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment