issues: 1422460071
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1422460071 | I_kwDOAMm_X85UyQSn | 7211 | Incorrect handle to Dagster frozenlists in Dataset object | 64480652 | closed | 0 | 4 | 2022-10-25T13:23:09Z | 2022-10-31T12:39:05Z | 2022-10-31T12:39:05Z | NONE | What happened?Dataset object could not be fetched with Dataset[variables] when variables is a frozenlist. There is some source code that can replicate this behaviour. What did you expect to happen?Dataset[variables] returning a new fetched dataset. It returns a key error. Minimal Complete Verifiable Example```Python %%from dagster import Output, asset, Field, build_op_context import numpy as np import pandas as pd import xarray as xr def retrieve_dataset(date, fct_step, lats, lons, runtime, source, variables):
@asset( description="GFS dataset fetched for NOAA Forecast data from NOAA NOMADS server.", config_schema=dict( variables=Field(list), ), output_required=True, ) def ncar_dataset(context):
test_variable = "u-component_of_wind_height_above_ground" with build_op_context( op_config={ "variables": [test_variable], } ) as context:
dataset = dataset_ast.value ``` MVCE confirmation
Relevant log output
Anything else we need to know?No response Environment
Python 3.10.4
pandas==1.5.0
xarray==0.19.0
netCDF4==1.5.7
dagster
dagit
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7211/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |