Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Sep 26, 2024
1 parent 142930c commit 6260f99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/georegions/define.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function RectRegion(
if isID(ID,path=path,throw=false)
error("$(modulelog()) - The GeoRegion $(ID) has already been defined. Please use another identifier.")
end
lon,lat = rect2shape(N,S,E,W)
N,S,E,W = bound; lon,lat = rect2shape(N,S,E,W)
if isgeoshape(lon,lat,path=path)
oID = isgeoshape(lon,lat,path=path,returnID=true)
error("$(modulelog()) - The GeoRegion $(oID) in $path has the same shape. Use it instead.")
Expand Down
2 changes: 1 addition & 1 deletion src/georegions/remove.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function rmID(
@info "$(modulelog()) - Removing the GeoRegion $(geoID) ..."
end

rvec,fvec,tvec,dvec = listall(path); isID(geoID,rvec)
rvec,fvec,tvec,dvec = listall(path); isID(geoID,path)
ind = findall(geoID.==rvec)[1]

fdefined = ["global.txt","giorgi.txt","srex.txt","ar6.txt"]
Expand Down

0 comments on commit 6260f99

Please sign in to comment.