Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Aug 20, 2022
1 parent 9e81b44 commit 53a371d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions deodr/differentiable_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,8 +1273,4 @@ def render_deferred(
z_buffer = np.empty((camera.height, camera.width))
renderScene(scene_2d, 0, buffers, z_buffer)

output: Dict[str, np.ndarray] = {}
for k in channels.keys():
output[k] = buffers[:, :, ranges[k][0] : ranges[k][1]]

return output
return {k: buffers[:, :, ranges[k][0] : ranges[k][1]] for k in channels}

0 comments on commit 53a371d

Please sign in to comment.