Comments (4)
For Organism.identity, a simple way is
Organism.identity = [random.choice(('1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'd', 'e', 'g', 'h', 'q', 'r', '=', '#', '$', '%', '&', '@', '<', '>', '?', '/', '', '|', ';', '-')) for x in range(32)]
That will give you a possibility of 57^32 (1e56) identities.
from dose.
At initiation, Organism.deme can take population name. Then it can be changed during simulation.
from dose.
Created methods to define 'identity' and 'deme' for every individual. Similar to deployment schemes, changes to such dictionary keys do not reflect on the final reports.
- Organism.generate_name() function created to define a random 32-character value to an organism's status 'identity' dictionary key.
- Spawn_populations(p) in dose.py now includes assigning of a 'deme' status to every individual after construction of populations. Takes the population name as default.
from dose.
Bug regarding incorrect identity and deme assignment now resolved. Problem was caused by genetic.py's Organism.clone(). Function does not properly deepcopy() the status dictionary of each organisms. It simply references all status dictionary of all organisms into one original dictionary. Reporting deme and identity now show the desired results. Was resolved by manually referencing each of the original organism to be cloned's status dictionary keys into the different clones. See genetic.py.
- Deme of every individual is named according to the population's name.
- Identity of every individual now varies according to it's randomly generated 32-char name.
from dose.
Related Issues (20)
- Removed all unused modules in COPADS HOT 1
- add database logging in examples 3, 4 and 5 HOT 1
- writing function documentation for dose.simulate() function HOT 1
- Rename max_cell_population in simulation_parameters into tape_length HOT 1
- refactoring simulation_calls.deploy() function HOT 1
- add population name into Organism.status dictionary HOT 1
- extract() support methods HOT 1
- offsprings to store parents' identity in offsprings' status as list in status['parents'] HOT 1
- Refactor revive_simulation() and simulate() to call simulation_core() HOT 1
- 08_revive_simulation_03.py returns a TypeError exception when reconstructing World HOT 1
- Reconstruct write_parameters() to handle all kinds of simulation HOT 1
- write brief in-file documentation for examples HOT 1
- list the main means of how to analyze simulations #03, 04, 05
- link up database_calls.db_list_xxx functions for calls from DOSE shell HOT 1
- dose shell - convert objects (from results dictionary) to Python objects (in userdata dictionary)
- Update documentation for examples 13, 14, 15 and 16 under Examples and Case Studies
- Implement get_status_by_generation function in analytics.py HOT 1
- wiki - Clarence's short biography HOT 1
- Is our point mutation operator biologically sound?
- Problems with finding diameter of network prior to implementation of Diameter() in dossier.py
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 dose.