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

Different issues/questions on fba_cmx script #278

Open
forero opened this issue Nov 12, 2020 · 0 comments
Open

Different issues/questions on fba_cmx script #278

forero opened this issue Nov 12, 2020 · 0 comments

Comments

@forero
Copy link
Member

forero commented Nov 12, 2020

From @araichoor

  1. fiberassign/bin/fba_cmx

    Lines 600 to 603 in 150d657

    if os.path.isfile(root+'-targ.fits'):
    dp = fits.open(root+'-targ.fits')[1].data
    else:
    dp = fits.open(root+'-std.fits')[1].data
    => as said, I don t see when the *targ.fits file cannot be here; would you have an example?

  2. having a log file: I didn t find a quick solution to that; currently, all outputs are printed to the prompt, so it is not stored; I guess we should at least launch the code with "python fba_cmx ... > log_filename 2>&1", with the log file being root+".log"; I would have like to avoid that (for instance, if outdir is not created yet, the python call will crash) and to make it internal to the python script, but I didn t find how to do that... => if you don t have an obvious solution here, do you think you could re-run the tiles you generated, with a log file?

  3. about the obscon: from the naming here https://github.com/forero/cmx-desi/tree/main/cmx_fiberassign/001513_bright_dithlost, I understand you ran dithlost with obscon=bright => we have to double-check with Eddie, but I think I remember he said we just don t care about obscon for dithering; in which case, we would just use "dark,bright" for dithprec and dithlost,

From @tskisner

  1. I think that overall we should consider running an autoformatter on code. I usually run black locally when working on fiberassign python code, but there are other tools out there too. Anything to make sure that the code has basic compliance to PEP8.

5 more comments here: #277 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants