Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
91698ba
Initial commit
JoseALermaIII Oct 9, 2019
992d252
Preemptively add module docstring
JoseALermaIII Oct 10, 2019
79e0456
Add constants
JoseALermaIII Oct 10, 2019
0afabb4
Add constants as attributes to module docstring
JoseALermaIII Oct 10, 2019
7de78a0
Complete populate
JoseALermaIII Oct 10, 2019
93e1be6
Populate empty functions with pass to avoid unittest errors
JoseALermaIII Oct 10, 2019
2469f77
Fix line-too-long per pylint C0301
JoseALermaIII Oct 10, 2019
0a4bb12
Initialize with TestBreedRats
JoseALermaIII Oct 10, 2019
679597d
Complete measure
JoseALermaIII Oct 10, 2019
4bd6a74
Add test_measure to TestBreedRats
JoseALermaIII Oct 10, 2019
3f91115
Complete select
JoseALermaIII Oct 10, 2019
3ff5108
Add test_select to TestBreedRats
JoseALermaIII Oct 10, 2019
5133632
Move timing checks to main function
JoseALermaIII Oct 10, 2019
4ba265c
Update module docstring
JoseALermaIII Oct 10, 2019
1d1183c
Convert print statement to f-string in main
JoseALermaIII Oct 10, 2019
b7f2558
Set random seed in unit tests rather than in class for TestBreedRats
JoseALermaIII Oct 10, 2019
80ab8de
Complete crossover
JoseALermaIII Oct 10, 2019
edd970b
Add test_crossover to TestBreedRats
JoseALermaIII Oct 10, 2019
925d89d
Complete mutate
JoseALermaIII Oct 10, 2019
6a279bf
Add test_mutate to TestBreedRats
JoseALermaIII Oct 10, 2019
57ddcbc
Fix error in crossover when females are larger than males
JoseALermaIII Oct 10, 2019
13a3cc2
Add another test to test_crossover in TestBreedRats
JoseALermaIII Oct 10, 2019
3dd2f2e
Add combine_values function
JoseALermaIII Oct 11, 2019
6a9b797
Add test_combine_values to TestBreedRats
JoseALermaIII Oct 11, 2019
9aab842
Refactor measure to use combine_values
JoseALermaIII Oct 11, 2019
d0bfd0e
Refactor select to use dictionary and tuple as inputs
JoseALermaIII Oct 11, 2019
8b4d701
Refactor test_select in TestBreedRats to use dictionary and tuple
JoseALermaIII Oct 11, 2019
6c238f2
Add breed_rats function
JoseALermaIII Oct 11, 2019
63469e5
Initial commit
JoseALermaIII Oct 11, 2019
2d57b5a
Add test_breed_rats to TestBreedRats
JoseALermaIII Oct 11, 2019
9aa007e
Complete main
JoseALermaIII Oct 11, 2019
ae415ef
Initial commit
JoseALermaIII Oct 11, 2019
bb87758
Add test_main to TestBreedRats
JoseALermaIII Oct 11, 2019
6647640
Initial commit
JoseALermaIII Oct 11, 2019
1ff1496
Add src.ch07
JoseALermaIII Oct 11, 2019
7cd3e38
Add default values to attributes section in module docstring
JoseALermaIII Oct 11, 2019
4c5cc0d
Update returns section to match new arguments in breed_rats docstring
JoseALermaIII Oct 11, 2019
7419bac
Refactor module as class
JoseALermaIII Oct 11, 2019
eed33f8
Trim module docstring to reflect refactoring
JoseALermaIII Oct 11, 2019
a6c0a19
Refactor main function to use BreedRats class.
JoseALermaIII Oct 11, 2019
a1f66d2
Update populate docstring to reflect new arguments
JoseALermaIII Oct 11, 2019
94dddd7
Update select docstring to reflect new arguments
JoseALermaIII Oct 11, 2019
f6b4b03
Update crossover docstring to reflect new arguments
JoseALermaIII Oct 11, 2019
6817449
Update mutate docstring to reflect new arguments
JoseALermaIII Oct 11, 2019
9f46186
Add type hints to mutate
JoseALermaIII Oct 11, 2019
71da3e8
Update breed_rats docstring to reflect new arguments
JoseALermaIII Oct 11, 2019
8cf86e0
Rename breed_rats method as simulate
JoseALermaIII Oct 11, 2019
be1e120
Fix line-too-long per pylint C0301
JoseALermaIII Oct 12, 2019
a0e12f2
Fix useless-object-inheritance per pylint R0205
JoseALermaIII Oct 12, 2019
b9c073e
Locally disable too-many-instance-attributes per pylint R0902
JoseALermaIII Oct 12, 2019
3eeaf1c
Update docstrings to use property values
JoseALermaIII Oct 12, 2019
659c445
Fix missing blank line and triple quotes on separate line per pydocst…
JoseALermaIII Oct 12, 2019
1212a85
Fix missing docstring in public method per pydocstyle D107
JoseALermaIII Oct 12, 2019
a42a292
Add test_defaults to TestBreedRats
JoseALermaIII Oct 12, 2019
59ce18f
Remove maxDiff from test_main in TestBreedRats
JoseALermaIII Oct 12, 2019
14f9e00
Add initial population output
JoseALermaIII Oct 12, 2019
0a161ac
Update test_populate in TestBreedRats to use class
JoseALermaIII Oct 12, 2019
bb32661
Update test_combine_values in TestBreedRats to use class
JoseALermaIII Oct 12, 2019
5ace618
Update test_measure in TestBreedRats to use class
JoseALermaIII Oct 12, 2019
bb1751d
Update test_select in TestBreedRats to use class
JoseALermaIII Oct 12, 2019
073a52d
Update test_crossover in TestBreedRats to use class
JoseALermaIII Oct 12, 2019
b7983eb
Update test_mutate in TestBreedRats to use class
JoseALermaIII Oct 12, 2019
6b3de8e
Update test_breed_rats in TestBreedRats to use class
JoseALermaIII Oct 12, 2019
9239c74
Rename test_breed_rats in TestBreedRats to test_simulate
JoseALermaIII Oct 12, 2019
31df563
Make class arguments private variables
JoseALermaIII Oct 12, 2019
be9c0cb
Add getters and setters for class arguments
JoseALermaIII Oct 12, 2019
987657a
Locally disable pylint too-many-public-methods
JoseALermaIII Oct 12, 2019
05dfa54
Rename test_defaults in TestBreedRats to test_properties
JoseALermaIII Oct 12, 2019
231baa2
Refactor test_properties docstring in TestBreedRats
JoseALermaIII Oct 12, 2019
3651609
Add comment to test_properties in TestBreedRats separating default va…
JoseALermaIII Oct 12, 2019
8cb1fec
Add setter tests to test_properties in TestBreedRats
JoseALermaIII Oct 12, 2019
0857c4b
Refactor time.time patch in TestBreedRats test_main to return multipl…
JoseALermaIII Oct 12, 2019
4c2571e
Update output to reflect changes
JoseALermaIII Oct 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/source/src.ch07.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
src.ch07 package
================

Submodules
----------

src.ch07.c1\_breed\_rats module
-------------------------------

.. automodule:: src.ch07.c1_breed_rats
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: src.ch07
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/src.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Subpackages
src.ch04
src.ch05
src.ch06
src.ch07

Module contents
---------------
Expand Down
1 change: 1 addition & 0 deletions src/ch07/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Chapter 7."""
Loading