Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peddy error - RuntimeWarning #65

Open
evagradovich opened this issue Aug 8, 2019 · 0 comments
Open

Peddy error - RuntimeWarning #65

evagradovich opened this issue Aug 8, 2019 · 0 comments

Comments

@evagradovich
Copy link

Hi, I am getting an error:

  bot = depth[depth > bot].mean() - 5 * depth[depth > bot].std()
/home/evag/.local/lib/python3.6/site-packages/numpy/core/_methods.py:140: RuntimeWarning: Degrees of freedom <= 0 for slice
  keepdims=keepdims)
Traceback (most recent call last):
  File "/data/scratch/user/evag/env-precisionhealth/bin/peddy", line 11, in <module>
    sys.exit(cli())
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/peddy/cli.py", line 209, in peddy
    in ("ped_check", "het_check", "sex_check")]):
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/peddy/cli.py", line 43, in run
    prefix=prefix, **kwargs)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/peddy/peddy.py", line 930, in het_check
    plt.scatter(depth, ratios, c=cs, edgecolors=ecs, s=s)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2841, in scatter
    None else {}), **kwargs)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/__init__.py", line 1589, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 4490, in scatter
    alpha=alpha

  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/collections.py", line 883, in __init__
    Collection.__init__(self, **kwargs)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/collections.py", line 128, in __init__
    self.set_edgecolor(edgecolors)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/collections.py", line 728, in set_edgecolor
    self._set_edgecolor(c)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/collections.py", line 712, in _set_edgecolor
    self._edgecolors = mcolors.to_rgba_array(c, self._alpha)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/colors.py", line 286, in to_rgba_array
    result[i] = to_rgba(cc, alpha)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/colors.py", line 177, in to_rgba
    rgba = _to_rgba_no_colorcycle(c, alpha)
  File "/data/scratch/user/evag/env-precisionhealth/lib/python3.6/site-packages/matplotlib/colors.py", line 238, in _to_rgba_no_colorcycle
    raise ValueError("Invalid RGBA argument: {!r}".format(orig_c))
ValueError: Invalid RGBA argument: masked```

Suppressing the warning seems to cause issues downstream. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant