@@ -556,7 +556,8 @@ def _finalise(self):
556
556
UM = "UM" in self .unique_dataset_categories
557
557
558
558
# ----------------------------------------------------------------
559
- # Select matching fields from non-UM files (before aggregation)
559
+ # Select matching constructs from non-UM files (before
560
+ # aggregation)
560
561
# ----------------------------------------------------------------
561
562
select = self .select
562
563
if select and not UM :
@@ -585,8 +586,8 @@ def _finalise(self):
585
586
del f ._custom ["standard_name" ]
586
587
587
588
# ----------------------------------------------------------------
588
- # Select matching fields from UM files (post setting of their
589
- # standard names)
589
+ # Select matching constructs from UM files (after setting
590
+ # their standard names)
590
591
# ----------------------------------------------------------------
591
592
if select and UM :
592
593
self .constructs = self .constructs .select_by_identity (* select )
@@ -679,7 +680,7 @@ def _read(self, dataset):
679
680
# ------------------------------------------------------------
680
681
super ()._read (dataset )
681
682
682
- if self .dataset_contents :
683
+ if self .dataset_contents is not None :
683
684
return
684
685
685
686
# ------------------------------------------------------------
@@ -694,13 +695,13 @@ def _read(self, dataset):
694
695
um_kwargs = {
695
696
key : kwargs [key ]
696
697
for key in (
697
- "verbose" ,
698
698
"height_at_top_of_model" ,
699
699
"squeeze" ,
700
700
"unsqueeze" ,
701
701
"domain" ,
702
- "file_type " ,
702
+ "dataset_type " ,
703
703
"unpack" ,
704
+ "verbose" ,
704
705
)
705
706
}
706
707
um_kwargs ["set_standard_name" ] = False
@@ -725,14 +726,14 @@ def _read(self, dataset):
725
726
# Successfully read the dataset
726
727
self .unique_dataset_categories .add ("UM" )
727
728
728
- if self .dataset_contents :
729
+ if self .dataset_contents is not None :
729
730
return
730
731
731
732
# ------------------------------------------------------------
732
733
# Try to read as a GRIB dataset
733
- # ------------------------------------------------------------
734
- # Not yet available! The framework will be:
735
734
#
735
+ # Not yet available! The framework will be:
736
+ # ------------------------------------------------------------
736
737
# if dataset_type is None or dataset_type.intersection(
737
738
# self.GRIB_dataset_types
738
739
# ):
@@ -743,19 +744,19 @@ def _read(self, dataset):
743
744
# <ADD SOME CODE HERE>
744
745
# }
745
746
#
746
- # self.um_read = partial(
747
+ # self.grib_read = partial(
747
748
# GRIBRead(self.implementation).read, **grib_kwargs
748
749
# )
749
750
#
750
751
# try:
751
752
# # Try to read the dataset
752
- # self.dataset_contents = self.grid_read (dataset)
753
+ # self.dataset_contents = self.grib_read (dataset)
753
754
# except DatasetTypeError as error:
754
755
# if dataset_type is None:
755
756
# self.dataset_format_errors.append(error)
756
757
# else:
757
758
# # Successfully read the dataset
758
759
# self.unique_dataset_categories.add("GRIB")
759
760
#
760
- # if self.dataset_contents:
761
+ # if self.dataset_contents is not None :
761
762
# return
0 commit comments