Skip to content
Open
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
12a8e53
Switch compute from recursive to looped
f0uriest Feb 2, 2025
0732219
Merge branch 'master' into rc/compute_tiers
dpanici Mar 26, 2025
75a72cf
Merge branch 'master' into rc/compute_tiers
dpanici Apr 9, 2026
e0fff1d
Merge branch 'master' into rc/compute_tiers
YigitElma Apr 17, 2026
6a66f85
use topological order computed in build_data_index instead of tiers
YigitElma Apr 17, 2026
a75ec0c
fix _compute, remove set_tiers
YigitElma Apr 17, 2026
e5916d2
move topo_order to data_index
YigitElma Apr 17, 2026
ab47753
remove recursion in _get_deps, remove redundant deps, fix data issue …
YigitElma Apr 19, 2026
1a959bc
remove _get_deps_1_key and other redundant functions, data_index will…
YigitElma Apr 19, 2026
abff730
minor comments
YigitElma Apr 19, 2026
377a30e
skip extra get_data_deps calls, remove redundant functions
YigitElma Apr 19, 2026
662b157
Merge branch 'master' into rc/compute_tiers
YigitElma Apr 19, 2026
293bcba
Merge branch 'master' into rc/compute_tiers
YigitElma Apr 19, 2026
1a49974
Merge branch 'master' into rc/compute_tiers
YigitElma Apr 30, 2026
54efa1b
Merge branch 'master' into rc/compute_tiers
YigitElma May 2, 2026
5b4ee74
Merge branch 'master' into rc/compute_tiers
YigitElma May 4, 2026
be2728b
try more interesting objective
YigitElma May 14, 2026
2151b83
try to fix the test
YigitElma May 28, 2026
e3473a6
Merge branch 'master' into rc/compute_tiers
YigitElma May 28, 2026
329032f
Merge branch 'master' into rc/compute_tiers
YigitElma Jun 10, 2026
0fb61d9
Merge branch 'master' into rc/compute_tiers
daniel-dudt Jun 25, 2026
e104579
Merge branch 'master' into rc/compute_tiers
YigitElma Jul 1, 2026
3a6e8c7
Merge branch 'master' into rc/compute_tiers
YigitElma Jul 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 8 additions & 27 deletions desc/compute/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,39 +184,20 @@ def _compute(
if data is None:
data = {}

for name in names:
names += get_data_deps(
Comment thread
YigitElma marked this conversation as resolved.
Outdated
names, parameterization, has_axis=transforms["grid"].axis.size
)
names_tiers = [(data_index[parameterization][name]["tier"], name) for name in names]
names_tiers = sorted(list(set(names_tiers)))

for _, name in names_tiers:
if name in data:
# don't compute something that's already been computed
continue
if not has_data_dependencies(
parameterization, name, data, transforms["grid"].axis.size
):
# then compute the missing dependencies
data = _compute(
parameterization,
data_index[parameterization][name]["dependencies"]["data"],
params=params,
transforms=transforms,
profiles=profiles,
data=data,
**kwargs,
)
if transforms["grid"].axis.size:
data = _compute(
parameterization,
data_index[parameterization][name]["dependencies"][
"axis_limit_data"
],
params=params,
transforms=transforms,
profiles=profiles,
data=data,
**kwargs,
)
# now compute the quantity
data = data_index[parameterization][name]["fun"](
params=params, transforms=transforms, profiles=profiles, data=data, **kwargs
)

return data


Expand Down
Loading