Skip to content

Commit

Permalink
Merge pull request #7 from seongsujeong/bug_fix_min_xy
Browse files Browse the repository at this point in the history
Bug fix min/max x/y order
  • Loading branch information
seongsujeong authored Dec 15, 2022
2 parents 1042999 + 3191ecf commit cf2729e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from setuptools import setup

__version__ = version = VERSION = '0.1.0'
__version__ = VERSION = '0.1.0'

LONG_DESCRIPTION = 'Burst database for OPERA SAS'

Expand All @@ -18,7 +18,7 @@

setup(
name = 'burst_db',
version = version,
version = VERSION,
description = 'Burst database for OPERA SAS',
package_dir = {'burst_db': 'src/burst_db'},
include_package_data = True,
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions src/burst_db/build_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ def main(args):
envelope_geom_tformed = list(geom_burst.GetEnvelope())

# Apply margin
envelope_geom_tformed[0] -= args.mxy[0]
envelope_geom_tformed[1] -= args.mxy[1]
envelope_geom_tformed[2] += args.mxy[0]
envelope_geom_tformed[3] += args.mxy[1]
minmax_xy = (envelope_geom_tformed[0] - args.mxy[0],
envelope_geom_tformed[2] - args.mxy[0],
envelope_geom_tformed[1] + args.mxy[1],
envelope_geom_tformed[3] + args.mxy[1])

xmin, ymin, xmax, ymax = bd.snap_extent(tuple(envelope_geom_tformed),
xmin, ymin, xmax, ymax = bd.snap_extent(minmax_xy,
args.sxy[0],
args.sxy[1])

Expand Down
File renamed without changes.

0 comments on commit cf2729e

Please sign in to comment.