Skip to content

Commit

Permalink
make sure the refactored variable return on BaseDataset actually retu…
Browse files Browse the repository at this point in the history
…rn the created/derived variable
  • Loading branch information
mathiasbc committed Nov 27, 2018
1 parent 0976a41 commit a70d89e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scrunch/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ def create_single_response(self, categories, name, alias, description='',
expr=expr,
description=description,
notes=notes))
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def rollup(self, variable_alias, name, alias, resolution, description='',
notes=''):
Expand Down Expand Up @@ -1347,7 +1347,7 @@ def derive_multiple_response(self, categories, subvariables, name, alias,
}]
}
})
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def create_multiple_response(self, responses, name, alias, description='',
notes=''):
Expand Down Expand Up @@ -1385,7 +1385,7 @@ def create_multiple_response(self, responses, name, alias, description='',
}]
}
})
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def bind_categorical_array(self, name, alias, subvariables, description='',
notes=''):
Expand Down Expand Up @@ -1427,7 +1427,7 @@ def bind_categorical_array(self, name, alias, subvariables, description='',
}]
}
})
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def create_numeric(self, alias, name, derivation, description='', notes=''):
"""
Expand All @@ -1446,7 +1446,7 @@ def create_numeric(self, alias, name, derivation, description='', notes=''):
description=description,
notes=notes
))
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def create_categorical(self, categories, alias, name, multiple, description='',
notes='', missing_case=None, uniform_basis=False):
Expand Down Expand Up @@ -1751,7 +1751,7 @@ def subrefs(_variable, _alias):
if derived is False or derived:
payload['body']['derived'] = derived

self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def combine_categories(self, variable, map, categories, missing=None,
default=None, name='', alias='', description=''):
Expand Down Expand Up @@ -1799,7 +1799,7 @@ def combine_categorical(self, variable, map, categories=None, missing=None,
'derivation': combine_categories_expr(
variable.resource.self, combinations)
})
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def combine_multiple_response(self, variable, map, categories=None, default=None,
name='', alias='', description=''):
Expand Down Expand Up @@ -1831,7 +1831,7 @@ def combine_multiple_response(self, variable, map, categories=None, default=None
'derivation': combine_responses_expr(
variable.resource.self, responses)
})
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)

def cast_summary(self, variable, cast_type):
"""
Expand Down Expand Up @@ -2612,7 +2612,7 @@ def derive_weight(self, variable, targets, alias, name, description=''):
}]
}
})
self._var_create_reload_return(payload)
return self._var_create_reload_return(payload)


class Dataset(BaseDataset):
Expand Down

0 comments on commit a70d89e

Please sign in to comment.