-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from devosoft/parasite-log-injections
Impl, test opt-in injection logging
- Loading branch information
Showing
14 changed files
with
2,437 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
688 changes: 688 additions & 0 deletions
688
avida-core/tests/parasites_log_injections/config/avida.cfg
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
avida-core/tests/parasites_log_injections/config/environment.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#for analyze mode, uncomment this line | ||
#RESOURCE resECHO:initial=10000000:inflow=40:outflow=0.10 | ||
RESOURCE resECHO:inflow=40:outflow=0.10 | ||
|
||
#REACTION ECHO echo process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=ECHO | ||
|
||
REACTION NOT | ||
REACTION NAND | ||
REACTION AND | ||
REACTION ORN | ||
REACTION OR | ||
REACTION ANDN | ||
REACTION NOR | ||
REACTION XOR | ||
REACTION EQU | ||
|
||
REACTION NOT not process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION NAND nand process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION AND and process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION ORN orn process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION OR or process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION ANDN andn process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION NOR nor process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION XOR xor process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT | ||
REACTION EQU equ process:resource=resECHO:value=0.0:type=pow:frac=0.5:min=1:max=1: requisite:noreaction=EQU:noreaction=XOR:noreaction=NOR:noreaction=ANDN:noreaction=OR:noreaction=ORN:noreaction=AND:noreaction=NAND:noreaction=NOT |
57 changes: 57 additions & 0 deletions
57
avida-core/tests/parasites_log_injections/config/events.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
############################################################################## | ||
# | ||
# This is the setup file for the events system. From here, you can | ||
# configure any actions that you want to have happen during the course of | ||
# an experiment, including setting the times for data collection. | ||
# | ||
# basic syntax: [trigger] [start:interval:stop] [action/event] [arguments...] | ||
# | ||
# This file is currently setup to record key information every 100 updates. | ||
# | ||
# For information on how to use this file, see: doc/events.html | ||
# For other sample event configurations, see: support/config/ | ||
# | ||
############################################################################## | ||
|
||
# Seed the population with a single organism | ||
u begin Inject evolved-not.org | ||
|
||
u 600 InjectParasite parasite-smt.org ABB 0 400 | ||
#u 0:100:end PrintDepthHistogram | ||
#u 0:100:end PrintHostDepthHistogram | ||
#u 0:100:end PrintParasiteDepthHistogram | ||
|
||
#u 0:200:end DumpHostTaskGrid | ||
#u 0:200:end DumpParasiteTaskGrid | ||
#u 0:100:end PrintMutationRateData | ||
|
||
#u 0:100:end PrintPhenotypeData | ||
#u 0:100:end PrintHostPhenotypeData | ||
#u 0:100:end PrintParasitePhenotypeData | ||
|
||
#u 0:100:end PrintHostTasksData | ||
u 0:100:end PrintParasiteTasksData | ||
|
||
#u 0:100:end PrintParasiteData ParasiteData.dat | ||
|
||
# Print all of the standard data files... | ||
#u 0:100:end PrintAverageData # Save info about they average genotypes | ||
#u 0:100:end PrintDominantData # Save info about most abundant genotypes | ||
#u 0:100:end PrintStatsData # Collect satistics about entire pop. | ||
#u 0:100:end PrintCountData # Count organisms, genotypes, species, etc. | ||
#u 0:100:end PrintTasksData # Save organisms counts for each task. | ||
#u 0:100:end PrintTimeData # Track time conversion (generations, etc.) | ||
#u 0:100:end PrintResourceData # Track resource abundance. | ||
|
||
# A few data files not printed by default | ||
# u 100:100 PrintDominantGenotype # Save the most abundant genotypes | ||
# u 100:100:end PrintErrorData # Std. Error on averages. | ||
# u 100:100:end PrintVarianceData # Variance on averages. | ||
# u 100:100:end PrintTotalsData # Total counts over entire run. | ||
# u 100:100:end PrintTasksExeData # Num. times tasks have been executed. | ||
# u 100:100:end PrintTasksQualData # Task quality information | ||
|
||
# Setup the exit time and full population data collection. | ||
u 600 SavePopulation # Save current state of population. | ||
u 900 SavePopulation | ||
u 900 Exit # exit |
Oops, something went wrong.