Amphibian
Amphibian.
AmphibianData class and associated methods. Used to represent the amphibian data from the dataset/database to insert into the create pdf process.
AmphibianData
AmphibianData.
Class Representing the data scraped from the data source with additional helper methods
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amp_info |
list
|
list passed to init |
required |
Source code in report_generator/report_generator_cli/amphibian.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
__init__(amp_info)
Init method for Amphibian Data.
Instantiates AmphibianData class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amp_info |
list
|
amphibian info list |
required |
Source code in report_generator/report_generator_cli/amphibian.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
get_SVLMx(amp_info)
Get SVLMx.
Source code in report_generator/report_generator_cli/amphibian.py
66 67 68 69 70 71 72 73 | |
get_clutch(amp_info)
Get Clutch.
Source code in report_generator/report_generator_cli/amphibian.py
75 76 77 78 79 80 81 | |
get_elevation(amp_info)
Get Elevation.
Source code in report_generator/report_generator_cli/amphibian.py
83 84 85 86 87 88 89 | |
get_full_name()
Get full name.
Returns the string of the combination of the Amphibian Object's order family genus and species
Return
full_name(str)
Source code in report_generator/report_generator_cli/amphibian.py
91 92 93 94 95 96 97 98 99 100 101 | |
get_image_url()
Get image url.
Returns the string of the image url
Currently unimplemented
Source code in report_generator/report_generator_cli/amphibian.py
115 116 117 118 119 120 121 122 | |
get_short_name()
Get short name.
Returns the string of the combination of the Amphibian Object's genus and species
Return
short_name(str)
Source code in report_generator/report_generator_cli/amphibian.py
103 104 105 106 107 108 109 110 111 112 113 | |
has_image_url()
Check if class has image url.
Returns boolean value based on the contents of the image_url_male and image_url_female properties
Return
bool
Source code in report_generator/report_generator_cli/amphibian.py
124 125 126 127 128 129 130 131 132 133 | |
rtz(val)
Remove trailing zero
Source code in report_generator/report_generator_cli/amphibian.py
135 136 137 138 139 140 141 142 143 144 145 146 147 | |