File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,9 @@ def preprocess(self, ds):
187187 coords [coord ] = ds .variables [coord ]
188188 coords ["predictor" ] = np .concatenate ((ds ["predictor" ].values , ds ["static_predictor" ].values ))
189189 if self .probabilistic_target :
190- coords ["target" ] = np .array (["mean" , "std" ], np . object )
190+ coords ["target" ] = np .array (["mean" , "std" ], object )
191191 else :
192- coords ["target" ] = np .array (["mean" ], np . object )
192+ coords ["target" ] = np .array (["mean" ], object )
193193
194194 # Copy variables from input
195195 data_vars = dict ()
Original file line number Diff line number Diff line change 22
33import climetlab as cml
44import pandas as pd
5+ import os
56
67from climetlab_maelstrom_yr .yr import Yr
78
89def test_read ():
10+ dir = os .path .join (os .path .dirname (__file__ ), "files" )
911 ds = cml .load_dataset (
1012 "maelstrom-yr" ,
1113 size = "5GB" ,
1214 dates = ["2020-03-01" , "2020-03-02" ],
13- location = "files /" ,
15+ location = f" { dir } /" ,
1416 probabilistic_target = False ,
1517 verbose = True ,
1618 )
You can’t perform that action at this time.
0 commit comments