User Tools

Site Tools


2016:groups:g4:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2016:groups:g4:start [2016/01/10 12:42] group42016:groups:g4:start [2024/01/09 18:45] (current) – external edit 127.0.0.1
Line 25: Line 25:
    *The authors make no conclusions about which plant species is being mimicked. How would the dynamics of this system change if there were more than one plant species serving as model?    *The authors make no conclusions about which plant species is being mimicked. How would the dynamics of this system change if there were more than one plant species serving as model?
    *Is it possible for orchid mantis to maintain higher population densities than their flower model? If so, what mechanisms would allow this surprising outcome?    *Is it possible for orchid mantis to maintain higher population densities than their flower model? If so, what mechanisms would allow this surprising outcome?
 +
 +===== Proposed Model =====
 +
 +Our model is in this {{:2016:groups:g4:model.pdf|}} pdf file. 
  
 ===== For Testing the Model ===== ===== For Testing the Model =====
-   + 
 +If you are in windows download you can just download unzip and run this file: 
 +   *{{:2016:groups:g4:group4_model.rar|}} 
 For testing our model during the presentation you can copy and paste this python source code and run it for an interactive model simulator. For testing our model during the presentation you can copy and paste this python source code and run it for an interactive model simulator.
 If it doesn't work for you follow this instructions: If it doesn't work for you follow this instructions:
Line 33: Line 40:
 If you already have python: If you already have python:
  
-   *Run in a console:+   *Run in a console (this will download the packages needed and automatically install them):
 <code bash> <code bash>
 pip install PyQt4 pyqtgraph pip install PyQt4 pyqtgraph
Line 40: Line 47:
 Otherwise follow the instructions on the tutorials to install python. And then you should be able to run the line above. If the line above doesn't work, maybe you dont have pip. Otherwise follow the instructions on the tutorials to install python. And then you should be able to run the line above. If the line above doesn't work, maybe you dont have pip.
  
-To install pip:+To install pip (python package manager):
   *In Ubuntu/Linux run:   *In Ubuntu/Linux run:
 <code bash> <code bash>
Line 46: Line 53:
 </code> </code>
   *In another operating system you should find how to install pip and then follow the instructions above.   *In another operating system you should find how to install pip and then follow the instructions above.
-<code python>+ 
 +<file python model.py>
  
 #!/bin/python #!/bin/python
Line 273: Line 281:
         self.sc1.setData(s1x, s1y)         self.sc1.setData(s1x, s1y)
         self.sc2.setData(s2x, s2y)         self.sc2.setData(s2x, s2y)
-        # axis = self.fpa_plt.getPlotItem().getAxis('bottom') 
-        # x = [(i * 5, '{0:.2}'.format((4 * a * self.d1 * self.d2) / (self.k1 * self.k2))) for i, a in 
-        #      enumerate(values[::5])] 
-        # axis.setTicks([x]) 
-        # axis.setLabel('4*alpha*d1*d2 / k1*k2') 
  
     def upd(self, *args):     def upd(self, *args):
Line 412: Line 415:
  
  
-</code>+</file>
  
 ===== References ===== ===== References =====
2016/groups/g4/start.1452429762.txt.gz · Last modified: 2024/01/09 18:45 (external edit)