Skip to content

Commit

Permalink
Merge pull request #198 from knaaptime/pyproj_pin
Browse files Browse the repository at this point in the history
  • Loading branch information
knaaptime authored Jun 17, 2022
2 parents 54c22e3 + 52b61fe commit 93b7486
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions segregation/inference/comparative.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,22 @@ def _prepare_random_label(seg_class_1, seg_class_2):


def _estimate_random_label_difference(data):
# note: if estimating a spatial implicit index, then "space" has already been accounted for...
# when the index is computed, the underlying data are transformed to represent the *accessible* population
# so when calculating the simulated difference, we need to pop spatial implicit parameters

stacked_data = data[0]
function = data[1]
index_args_1 = data[2]
index_args_2 = data[3]
idx_type = data[4]
groups = data[5]
approach = data[6]
for args in [index_args_1, index_args_2]:
if 'network' in args:
args.pop('network')
elif 'distance' in args:
args.pop('distance')

if approach == 'person_permutation':
grouping = stacked_data[['grouping_variable']].values
Expand Down

0 comments on commit 93b7486

Please sign in to comment.