You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# just need to import all the submodules here to register everything in the27# data_index--->29from . import (
30_basis_vectors,
31_bootstrap,
32_core,
33_curve,
34_equil,
35_field,
36_geometry,
37_metric,
38_neoclassical,
39_omnigenity,
40_profiles,
41_stability,
42_surface,
43 )
44from .data_indeximportall_kwargs, allowed_kwargs, data_index45from .geom_utilsimportrpz2xyz, rpz2xyz_vec, xyz2rpz, xyz2rpz_vec
any function defined inside A = desc/compute, called inside some directory $B \notin A$, will generate a circular import error whenever something $b \in B$ is called in $A$. This is problematic because we have general utilities inside desc/compute such as all the safedivs. We should move anything from desc/compute/utils that isn't directly related to data_index stuff to desc/utils.
To reproduce, create a compute function that uses desc/integrals/singularities or bounce integrals which both call safediv.
The text was updated successfully, but these errors were encountered:
Due to how we register things in
data_index
:any function defined inside$B \notin A$ , will generate a circular import error whenever something $b \in B$ is called in $A$ . This is problematic because we have general utilities inside
A = desc/compute
, called inside some directorydesc/compute
such as all thesafediv
s. We should move anything from desc/compute/utils that isn't directly related todata_index
stuff todesc/utils
.To reproduce, create a compute function that uses desc/integrals/singularities or bounce integrals which both call
safediv
.The text was updated successfully, but these errors were encountered: