Skip to content

Commit

Permalink
Some more issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugomartinez committed May 31, 2024
1 parent e439335 commit 5568fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opendrift/readers/operators/readerops.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def covers_positions(self, lon, lat):
def covers_time(self, time):
return self.a.covers_time(time) and self.b.covers_time(time)

def get_variables_interpolated(self, variables, shape = None, profiles=None, profiles_depth=None,time=None,lon=None, lat=None, z=None,rotate_to_proj=None):
def get_variables_interpolated(self, variables, profiles=None, profiles_depth=None,time=None,lon=None, lat=None, z=None,rotate_to_proj=None):
assert set(variables).issubset(self.variables), f"{variables} is not subset of {self.variables}"

env_a, env_profiles_a = self.a.get_variables_interpolated(variables, time=time,lon=lon, lat=lat, z=z)
Expand Down Expand Up @@ -105,7 +105,7 @@ def get_variables(self, requested_variables, time=None,
X = X.flatten()
Y = Y.flatten()

variables, _ = self.get_variables_interpolated(requested_variables, shape = shape, lon = X, lat = Y, time = time, z = z)
variables, _ = self.get_variables_interpolated(requested_variables, lon = X, lat = Y, time = time, z = z)
for key in variables.keys():
variables[key] = np.reshape(variables[key], shape)
variables['x'] = x
Expand Down

0 comments on commit 5568fa5

Please sign in to comment.