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

Large volume of warnings when using RayFlare #41

Open
7 of 9 tasks
phoebe-p opened this issue Jan 27, 2022 · 0 comments
Open
7 of 9 tasks

Large volume of warnings when using RayFlare #41

phoebe-p opened this issue Jan 27, 2022 · 0 comments
Assignees

Comments

@phoebe-p
Copy link
Member

phoebe-p commented Jan 27, 2022

Not a specific bug, but there are a large number of warnings (deprecation warnings and others) when using some RayFlare functions. This is quite annoying, and the deprecation warnings should also be dealt with.

  • xarray/core/indexes.py:234: FutureWarning: Passing method to Float64Index.get_loc is deprecated and will raise in a future version. Use index.get_indexer([item]
  • rayflare/matrix_formalism/multiply_matrices.py:165: RuntimeWarning: invalid value encountered in true_divide
    norm = per_bin/(1-np.exp(-alphas[:, None]*d/abscos[None, :]))
    (nan and inf are produced here)
  • rayflare/matrix_formalism/multiply_matrices.py:165: RuntimeWarning: divide by zero encountered in true_divide
    norm = per_bin/(1-np.exp(-alphas[:, None]*d/abscos[None, :]))
  • rayflare/rayflare/matrix_formalism/multiply_matrices.py:170: RuntimeWarning: invalid value encountered in multiply
    a_x = ((alphas[i1]*norm[i1])/(abscos))[None,:]*np.exp(-alphas[i1]*depths[:,None]/abscos[None, :])
  • rayflare/rayflare/matrix_formalism/multiply_matrices.py:178: RuntimeWarning: invalid value encountered in true_divide
    scale = np.nan_to_num(A/check)
  • rayflare/ray_tracing/rt.py:1182: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
    corner = r_a - tri.P_0s
  • rayflare/ray_tracing/rt.py:1198: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
    intersn = r_a + t * d
  • rayflare/ray_tracing/rt.py:1182: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
    corner = r_a - tri.P_0s
  • rayflare/ray_tracing/rt.py:1198: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
    intersn = r_a + t * d
@phoebe-p phoebe-p self-assigned this Jan 27, 2022
@phoebe-p phoebe-p mentioned this issue Feb 3, 2022
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