Suppression of every plots if required

Open
#93 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by tracing where plots are created and displayed during the batch run, then identify the parameters intended to suppress them. Reproduce the reported QXcbConnection display error on a machine without an X display and define done as completing the run without attempting to open plots when suppression is enabled.

Written by the indexing model from the issue text.

Description

It appears that some plot are sent to output even if the parameters say not to do so.
It prevents running on batch machines.

The output is like this:

MAIN_ID RA DEC RA_PREC DEC_PREC COO_ERR_MAJA COO_ERR_MINA COO_ERR_ANGLE COO_QUAL ... PLX_QUAL PLX_BIBCODE PMRA PMDEC PM_ERR_MAJA PM_ERR_MINA PM_ERR_ANGLE Z_VALUE SCRIPT_NUMBER_ID
"hⓂ️s" "dⓂ️s" mas mas deg ... mas / yr mas / yr mas / yr mas / yr deg
----------- ------------- ------------- ------- -------- ------------ ------------ ------------- -------- ... -------- ------------------- --------- --------- ----------- ----------- ------------ --------- ----------------

  • eta01 Dor 06 06 09.3817 -66 02 22.635 14 14 0.052 0.049 90 A ... A 2020yCat.1350....0G 13.575 28.139 0.066 0.061 90 0.0000590 1
    image.shape (4072, 4000)
    2022-03-29 16:01:31 spectractor.tools fit_poly2d_outlier_removal INFO
    Model: Polynomial2D
    Inputs: ('x', 'y')
    Outputs: ('z',)
    Model set size: 1
    Degree: 1
    Parameters:
    c0_0 c1_0 c0_1
    6.798547405049041 0.05048619956994278 0.10936732041201426
    2022-03-29 16:01:33 spectractor.fit.fitter gradient_descent INFO
    Gradient descent terminated in 18 iterations because the relative change of cost is below ftol=1.25e-05.
    qt.qpa.screen: QXcbConnection: Could not connect to display localhost:28.0
    Could not connect to any X display.
    (base) /pbs/throng/lsst/users/dagoret/desc/AuxTelComm/notebookccdm_gen3/runspectractor_standalone/2022_03>
Dominant language
Python
Stars
16
Forks
9
Avg merge
19h 2m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LSSTDESC/Spectractor

All issues in LSSTDESC/Spectractor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.