Skip to content

Commit f56c144

Browse files
Merge pull request #1172 from M3nin0/fix/mpc-stac
update grd class definition strategy
2 parents 7164ece + 5865966 commit f56c144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/api_cube.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ NULL
5454
.default = FALSE
5555
)
5656

57+
is_sar <- is_sar && !grepl("rtc", base_class, fixed = TRUE)
58+
5759
if (is_sar) {
5860
return(unique(
5961
c(base_class, "grd_cube", "sar_cube", s3_class, cube_class)
@@ -79,7 +81,7 @@ NULL
7981
.default = FALSE
8082
)
8183

82-
is_sar <- is_sar & grepl("rtc", base_class, fixed = TRUE)
84+
is_sar <- is_sar && grepl("rtc", base_class, fixed = TRUE)
8385

8486
if (is_sar) {
8587
return(unique(

0 commit comments

Comments
 (0)