Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Impact démographique des collisions aviaires avec les éoliennes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CEFE
Interactions Humains-Animaux
Impact démographique des collisions aviaires avec les éoliennes
Commits
681173f6
Commit
681173f6
authored
3 years ago
by
thierrychambert
Browse files
Options
Downloads
Patches
Plain Diff
Going back to stable level : "Added buttons show_distri"
but removed SE in intital params
parent
be95b655
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inst/ShinyApp/server.R
+12
-10
12 additions, 10 deletions
inst/ShinyApp/server.R
inst/ShinyApp/ui.R
+787
-787
787 additions, 787 deletions
inst/ShinyApp/ui.R
with
799 additions
and
797 deletions
inst/ShinyApp/server.R
+
12
−
10
View file @
681173f6
...
...
@@ -1497,7 +1497,7 @@ server <- function(input, output, session){
# Define a limit for rMAX (theoretical formula from Niel & Lebreton 2005) or No limit (Inf)
rMAX_species
<-
rMAX_spp
(
surv
=
tail
(
param
$
survivals
,
1
),
afr
=
min
(
which
(
param
$
fecundities
!=
0
)))
rMAX_species
<-
rMAX_species
*
1.5
# avoid too much constraint for the linear DD relationship
rMAX_species
<-
rMAX_species
*
1.5
# avoid too much constraint for the linear DD relationship
param
$
rMAX_species
<-
rMAX_species
# Apply rmax limit on population growth rate
...
...
@@ -1762,7 +1762,11 @@ server <- function(input, output, session){
## Loops now ##
for
(
sim
in
1
:
nsim
){
Sys.sleep
(
0
)
## Progress bar
progress
$
set
(
value
=
sim
,
message
=
"Simulation progress"
,
detail
=
paste
(
"simulation"
,
sim
))
Sys.sleep
(
0.1
)
# Check for user interrupts
if
(
interrupted
()){
...
...
@@ -1771,7 +1775,7 @@ server <- function(input, output, session){
}
# Notify status file of progress
#
fire_running(100*sim/nsim)
fire_running
(
100
*
sim
/
nsim
)
## PARAMETER UNCERTAINTY : draw values for each input
...
...
@@ -1853,6 +1857,9 @@ server <- function(input, output, session){
}
print
(
DD_params
)
# ... and initially LARGE population
if
(
sum
(
N0
)
>
500
)
model_demo
<-
M3_WithDD_noDemoStoch
...
...
@@ -1881,11 +1888,6 @@ server <- function(input, output, session){
coeff_var_environ
=
coeff_var_environ
,
fatal_constant
=
fatal_constant
)
## Progress bar
progress
$
set
(
value
=
sim
,
message
=
"Simulation progress"
,
detail
=
paste
(
"simulation"
,
sim
))
# Notify status file of progress
fire_running
(
100
*
sim
/
nsim
)
...
...
@@ -1927,7 +1929,7 @@ server <- function(input, output, session){
NULL
}
else
{
p
rint
(
"Not ready : missing values"
)
r
p
int
(
"Not ready : missing values"
)
result_N
(
NULL
)
run_message
(
"Not ready : missing values"
)
}
...
...
@@ -1942,7 +1944,7 @@ server <- function(input, output, session){
observeEvent
(
input
$
cancel
,{
print
(
"Cancel"
)
fire_interrupt
()
#
result_N(NULL)
result_N
(
NULL
)
run_message
(
"Analyse interrompue"
)
})
...
...
This diff is collapsed.
Click to expand it.
inst/ShinyApp/ui.R
+
787
−
787
View file @
681173f6
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment