Skip to content

Commit

Permalink
Fixed bug. indv -> inds
Browse files Browse the repository at this point in the history
  • Loading branch information
aewebb80 committed Nov 19, 2020
1 parent ad2eaf8 commit 9a526cd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pgpipe/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def to_json (self):

pop_json[pop] = OrderedDict()

pop_json[pop]['indv'] = self.ind_dict[pop]
pop_json[pop]['inds'] = self.ind_dict[pop]

model_json['pops'] = pop_json

Expand Down
2 changes: 1 addition & 1 deletion tests/exp_output/model_creator.example_1.model
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-9731_LB502"
]
}
Expand Down
4 changes: 2 additions & 2 deletions tests/exp_output/model_creator.example_2.model
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-9731_LB502",
"Pan_paniscus-A914_Hortense",
"Pan_paniscus-A915_Kosana",
Expand All @@ -21,7 +21,7 @@
]
},
"Troglodytes": {
"indv": [
"inds": [
"Pan_troglodytes_troglodytes-A957_Vaillant",
"Pan_troglodytes_troglodytes-A958_Doris",
"Pan_troglodytes_troglodytes-A959_Julie",
Expand Down
12 changes: 6 additions & 6 deletions tests/exp_output/model_creator.example_3.model
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-9731_LB502",
"Pan_paniscus-A914_Hortense",
"Pan_paniscus-A915_Kosana",
Expand All @@ -27,7 +27,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-9731_LB502",
"Pan_paniscus-A914_Hortense",
"Pan_paniscus-A915_Kosana",
Expand All @@ -44,7 +44,7 @@
]
},
"Schweinfurthii": {
"indv": [
"inds": [
"Pan_troglodytes_schweinfurthii-100037_Vincent",
"Pan_troglodytes_schweinfurthii-100040_Andromeda",
"Pan_troglodytes_schweinfurthii-9729_Harriet",
Expand All @@ -60,7 +60,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-9731_LB502",
"Pan_paniscus-A914_Hortense",
"Pan_paniscus-A915_Kosana",
Expand All @@ -77,15 +77,15 @@
]
},
"Troglodytes": {
"indv": [
"inds": [
"Pan_troglodytes_troglodytes-A957_Vaillant",
"Pan_troglodytes_troglodytes-A958_Doris",
"Pan_troglodytes_troglodytes-A959_Julie",
"Pan_troglodytes_troglodytes-A960_Clara"
]
},
"Schweinfurthii": {
"indv": [
"inds": [
"Pan_troglodytes_schweinfurthii-100037_Vincent",
"Pan_troglodytes_schweinfurthii-100040_Andromeda",
"Pan_troglodytes_schweinfurthii-9729_Harriet",
Expand Down
12 changes: 6 additions & 6 deletions tests/exp_output/model_creator.example_4.model
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-A914_Hortense",
"Pan_paniscus-A915_Kosana",
"Pan_paniscus-A917_Dzeeta",
Expand All @@ -27,7 +27,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-A914_Hortense",
"Pan_paniscus-A915_Kosana",
"Pan_paniscus-A917_Dzeeta",
Expand All @@ -44,7 +44,7 @@
]
},
"Troglodytes": {
"indv": [
"inds": [
"Pan_troglodytes_troglodytes-A957_Vaillant",
"Pan_troglodytes_troglodytes-A958_Doris",
"Pan_troglodytes_troglodytes-A959_Julie",
Expand All @@ -58,7 +58,7 @@
"tree": "",
"pops": {
"Paniscus": {
"indv": [
"inds": [
"Pan_paniscus-A914_Hortense",
"Pan_paniscus-A915_Kosana",
"Pan_paniscus-A917_Dzeeta",
Expand All @@ -75,15 +75,15 @@
]
},
"Troglodytes": {
"indv": [
"inds": [
"Pan_troglodytes_troglodytes-A957_Vaillant",
"Pan_troglodytes_troglodytes-A958_Doris",
"Pan_troglodytes_troglodytes-A959_Julie",
"Pan_troglodytes_troglodytes-A960_Clara"
]
},
"Schweinfurthii": {
"indv": [
"inds": [
"Pan_troglodytes_schweinfurthii-100037_Vincent",
"Pan_troglodytes_schweinfurthii-100040_Andromeda",
"Pan_troglodytes_schweinfurthii-9729_Harriet",
Expand Down

0 comments on commit 9a526cd

Please sign in to comment.