Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

It's a PITA to create a new local `Distribution`

Open
#542 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by locating local.maps.Distribution and the code paths that construct distributions from arrays. Determine how an existing distribution can provide defaults while new_shape, new_dist, and new_grid_shape override them, and check whether global communication is required. Done means a new local Distribution can be created from an existing one with those changes supported.

Written by the indexing model from the issue text.

Description

enhancement

We should make it easier to make a new local Distribution -- perhaps allow creating a new distribution from an existing distribution.

This comes up when a new local arrays are created that don't match the distribution of the originating array -- perhaps the local shape changes, or the local ndims. local.maps.Distribution could have a classmethod like from_distribution that would take an existing distribution for the defaults and allow passing in new_shape, new_dist and new_grid_shape args that would set the appropriate values. There may need to be global communication to support this.

Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from enthought/distarray

All issues in enthought/distarray

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.