diff options
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/authentication.py | 5 | ||||
-rw-r--r-- | gn3/computations/correlations.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gn3/authentication.py b/gn3/authentication.py index a6372c1..4aedacd 100644 --- a/gn3/authentication.py +++ b/gn3/authentication.py @@ -163,3 +163,8 @@ def create_group(conn: Redis, group_name: Optional[str], } conn.hset("groups", group_id, json.dumps(group)) return group + # This might break stuff, but it fixes the linting error regarding + # inconsistent return types. + # @BonfaceKilz please review this and replace with appropriate return and + # remove these comments. + return None diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py index d38946e..345b8d7 100644 --- a/gn3/computations/correlations.py +++ b/gn3/computations/correlations.py @@ -79,7 +79,7 @@ def compute_sample_r_correlation(trait_name, corr_method, trait_vals, zip(*list(normalize_values(trait_vals, target_samples_vals)))) num_overlap = len(normalized_traits_vals) except ValueError: - return + return None if num_overlap > 5: |