Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_stim_labels(self):
# Iterate through all weight specifications to get a list of stimulus
# column labels.
weights = _flatten([x["weights"] for x in self.inputs.contrast_info])
return list(set(_flatten([x.keys() for x in weights])))
def get_stim_labels(self):
# Iterate through all weight specifications to get a list of stimulus
# column labels.
weights = _flatten([x["weights"] for x in self.inputs.contrast_info])
return list(set(_flatten([x.keys() for x in weights])))