Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code isn't finding the mflats #3

Open
joedurbak opened this issue Oct 23, 2024 · 0 comments
Open

Code isn't finding the mflats #3

joedurbak opened this issue Oct 23, 2024 · 0 comments

Comments

@joedurbak
Copy link
Collaborator

When I run the following command in the refactoring_cmd branch, the code doesn't find the flats:

~/prime-photometry/bin/photometrus pipeline -date 2024-10-22 -band J -target field17660 -parent /mnt/d/PRIME_photometry_test_files/EP241021a/J/ -chip 3 -rot_val 48

I get the following traceback error:

  Traceback (most recent call last):
File "/home/prime/prime-photometry/bin/photometrus", line 18, in <module>
  multi_master.main()
File "/home/prime/prime-photometry/photomitrus/multi_master.py", line 164, in main
  multi_master(args.parent, args.target, args.date, args.band, args.chip, args.rot_val, args.no_shift, args.astromnet,
File "/home/prime/prime-photometry/photomitrus/multi_master.py", line 142, in multi_master
  shiftprocess(parentdir, f, band, rot_val)
File "/home/prime/prime-photometry/photomitrus/multi_master.py", line 52, in shiftprocess
  master(parentdir=parentdir, chip=chip, band=band, sigma=sigma, rot_val=rot_val)
File "/home/prime/prime-photometry/photomitrus/master.py", line 273, in master
  flatfielding(astromdir, FFdir, band, chip)
File "/home/prime/prime-photometry/photomitrus/master.py", line 97, in flatfielding
  flatpath = gen_mflat_file_name(band, chip)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/prime/prime-photometry/photomitrus/settings.py", line 39, in gen_mflat_file_name
  for f in sorted(os.listdir(base_dir+'/mflats/')):
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/prime/prime-photometry/photomitrus/mflats/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant