Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception requesting stacked coordinates from a DataSource with unstacked native coordinates #29

Closed
jmilloy opened this issue May 15, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jmilloy
Copy link
Collaborator

jmilloy commented May 15, 2018

Steps to Reproduce

class MyNode(NumpyArray):
    source = np.arange(10000.).reshape(100, 100)

    def get_native_coordinates(self):
        return Coordinate(lat=(-25, 25, 100), lon=(-25, 25, 100), order=['lat', 'lon'])

n = MyNode()
coords = Coordinate(lat_lon=[(-20, 20), (0, 5), 100])
out = n.execute(coords)

Expected Behavior
out should contain data interpolated from MyNode.source.

Observed Behavior

Traceback (most recent call last):
  File "jxm.py", line 29, in <module>
    a_out = n.execute(coords)
  File "/home/jmilloy/Pipeline/podpac/podpac/core/data/data.py", line 108, in execute
    self.interpolate_data(data_subset, coords_subset, coordinates)
  File "/home/jmilloy/Pipeline/podpac/podpac/core/data/data.py", line 292, in interpolate_data
    grid=False)
  File "/home/jmilloy/Pipeline/podpac/podpac/core/data/data.py", line 472, in interpolate_irregular_grid
    x, y = coords_i_dst['lon']
TypeError: list indices must be integers, not unicode

Additional Notes
See also #28

@jmilloy jmilloy self-assigned this May 15, 2018
@jmilloy jmilloy added the bug Something isn't working label May 15, 2018
@jmilloy jmilloy changed the title Exeption requesting stacked coordinates from a DataSource with unstacked native coordinates Exception requesting stacked coordinates from a DataSource with unstacked native coordinates May 16, 2018
@jmilloy
Copy link
Collaborator Author

jmilloy commented May 16, 2018

At least partially implemented in 805e735.

@jmilloy jmilloy closed this as completed May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant