'Grid' object is not subscriptable
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 112
- Forks
- 49
- Avg merge
- 12h 52m
- Merged PRs (30d)
- 2
Description
grid = pyart.io.read_grid(grid_file)
pydda.initialization.make_wind_field_from_profile(grid)
lib\site-packages\pydda\initialization\wind_fields.py", line 365, in make_wind_field_from_profile
analysis_grid_shape = Grid[vel_field].values.shape
TypeError: 'Grid' object is not subscriptable
Why does the latest version of pydda report the aforementioned error, while version 1.5.1 does not? If I want to use pydda version 2.2.0, how should I modify the code?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the traceback with pyart.io.read_grid and pydda.initialization.make_wind_field_from_profile, then inspect pydda/initialization/wind_fields.py at line 365 and compare behavior between versions 1.5.1 and 2.2.0. Done means the reported grid input works on version 2.2.0 without the TypeError, with the required usage or compatibility change clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100