Skip to content

Commit 18263b0

Browse files
Merge branch 'main' into repro_rate_data
2 parents 2283cb2 + 80c2445 commit 18263b0

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

source/sgp_mode/DevNotes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(delete once Anya is done with joint refactoring)
22

33
## Further refactoring list:
4+
* Remove location from CPUState and have it rely on Organism location instead of maintaining separately and generally trace through to make sure it is tracked cleanly
45
* Add SGP mode to API reference doc
56
* Move ProcessSymOutputBuffer into SGPSymbiont to parallel host
67
* Move SymDoMutation into SGPSymbiont to parallel host
@@ -95,4 +96,4 @@ These are function flows that are complicated to follow:
9596
[ ] Port Multi infection code from Elias fork
9697
[ ] Finish implementation of temporally changing environment
9798
[ ] Make sure spatial structure is working?
98-
[ ] Go back through for other refactoring todos
99+
[ ] Go back through for other refactoring todos

source/sgp_mode/SGPConfigSetup.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ EMP_EXTEND_CONFIG(SymConfigSGP, SymConfigBase,
1616
GROUP(SGP, "Complex Genomes Settings"),
1717
VALUE(CYCLES_PER_UPDATE, size_t, 16, "Number of CPU cycles that organisms run every update"),
1818
VALUE(FIND_NEIGHBOR_HOST_ATTEMPTS, size_t, 5, "How many times to attempt finding a neighboring host for symbiont to horizontally transmit into"),
19-
VALUE(DONATION_STEAL_INST, bool, true, "1 if you want donate and steal instructions in the instruction set, 0 if not"),
20-
VALUE(SYM_DONATE_PROP, double, 0.2, "Proportion of points for sym to donate to host on donate"),
21-
VALUE(SYM_STEAL_PROP, double, 0.2, "Proportion of points for sym to steal from host on steal"),
19+
VALUE(DONATION_STEAL_INST, bool, false, "1 if you want donate and steal instructions in the instruction set, 0 if not"),
20+
VALUE(SYM_DONATE_PROP, double, 0.0, "Proportion of points for sym to donate to host on donate"),
21+
VALUE(SYM_STEAL_PROP, double, 0.0, "Proportion of points for sym to steal from host on steal"),
2222
VALUE(HOST_MIN_CYCLES_BEFORE_REPRO, size_t, 0, "Number of CPU cycles organisms must wait between reproductions"),
2323
VALUE(SYM_MIN_CYCLES_BEFORE_REPRO, size_t, 0, "Number of CPU cycles organisms must wait between reproductions"),
2424

source/test/sgp_mode_test/unit_tests/Instructions.test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ TEST_CASE("Test host-symbiont interactive instructions", "[sgp]") {
489489
sgpmode::SymConfigSGP config;
490490
config.CYCLES_PER_UPDATE(0);
491491
config.HOST_REPRO_RES(1);
492+
config.DONATION_STEAL_INST(true);
492493
config.SEED(61);
493494
config.TASK_ENV_CFG_PATH("source/test/sgp_mode_test/hardware-test-env.json");
494495
config.FILE_PATH("Instructions_test_output");

0 commit comments

Comments
 (0)