Skip to content

Commit

Permalink
astrometry: fix for new api
Browse files Browse the repository at this point in the history
  • Loading branch information
juliotux committed Jun 19, 2024
1 parent 832f413 commit 09b654e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astropop/astrometry/astrometrynet.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def _parse_options(self, options):

def _get_args(self, root, fname, options, output_dir,
correspond):
args = [self._command, fname, '--dir', output_dir]
args = [fname, '--dir', output_dir]
args += self._parse_options(options)
args += ['--corr', correspond]
return args
Expand All @@ -596,7 +596,7 @@ def _run_solver(self, filename, options, output_dir=None, **kwargs):
correspond=correspond)

try:
process, _, _ = run_command(args, **kwargs)
process, _, _ = self._command.run(args, **kwargs)
# .solved file must exist and contain a binary one
with open(solved_file, 'rb') as fd:
if ord(fd.read()) != 1:
Expand Down

0 comments on commit 09b654e

Please sign in to comment.