Skip to content

Commit

Permalink
file_info needs vert info
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake committed Sep 1, 2023
1 parent 87a92e6 commit c57bdfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyaerocom/io/readgridded.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,7 @@ def _get_var_to_read(self, var_name: str) -> str:
raise VarNotAvailableError(f"Variable {var_name} could not be found")

def _eval_vert_which_and_ts_type(self, var_name, vert_which, ts_type):
breakpoint()
if all(x == "" for x in self.file_info.vert_code.values):
logger.info(
f"Deactivating file search by vertical code for {self.data_id}, "
Expand Down Expand Up @@ -1660,6 +1661,8 @@ def read_var(
if aux_vars is not None:
self.add_aux_compute(var_name, aux_vars, aux_fun)

breakpoint()

vert_which, ts_type = self._eval_vert_which_and_ts_type(var_name, vert_which, ts_type)
data = self._try_read_var(
var_name,
Expand Down
1 change: 0 additions & 1 deletion pyaerocom/plugins/tropomi/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ def __init__(self, data_id=None, data_dir=None):
data_dir = TMP_DATA_DIR
# raise Exception("Need a data_dir")
super().__init__(data_dir=data_dir, file_convention="cso")
breakpoint()

0 comments on commit c57bdfa

Please sign in to comment.