Skip to content

Commit

Permalink
gps data mode (draft), caching refactoring, refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PJDude committed Jun 3, 2024
1 parent 693d75b commit e37b74e
Show file tree
Hide file tree
Showing 5 changed files with 815 additions and 328 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ jobs:
with:
tag_name: ${{ steps.version.outputs.version }}
name: Dude ${{ steps.version.outputs.version }}
draft: false
prerelease: false
draft: true
prerelease: true
files: |
dude.${{ steps.version.outputs.version }}.linux.portable.zip
dude.${{ steps.version.outputs.version }}.linux.nuitka.portable.zip
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ pyinstaller==6.7.0
appdirs==1.4.4
send2trash==1.8.3
zstandard==0.22.0
nuitka==2.2.3
nuitka==2.3
tkinterdnd2==0.3.0
imagehash==4.3.1
pillow==10.3.0
scikit-learn==1.5.0
exifread==3.0.0
7 changes: 6 additions & 1 deletion src/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def parse_args(ver):
parser.add_argument('-ir' ,action='store_true',help='Images similarity mode process all rotations')
parser.add_argument('-imin' ,nargs=1,help='Images similarity mode minimum image size (pixels)',type=int)
parser.add_argument('-imax' ,nargs=1,help='Images similarity mode maximum image size (pixels)',type=int)
parser.add_argument('-igps' ,action='store_true',help='Images GPS proximity mode')

parser_help=parser.format_help().split('\n')
help_parts=[parser_help[0]] + parser_help[7::]
Expand Down Expand Up @@ -102,7 +103,7 @@ def parse_args(ver):
command.append('--log')
command.append(args.log)

if args.images or args.hash or args.divergence or args.rotations:
if args.images or args.ih or args.id or args.ir:
command.append('--images')

if args.ih:
Expand All @@ -124,6 +125,10 @@ def parse_args(ver):
command.append('-imax')
command.append(args.imax)

if args.igps:
command.append('-igps')
command.append(args.igps)

if args.paths:
command.extend(args.paths)

Expand Down
Loading

0 comments on commit e37b74e

Please sign in to comment.