[REDMINE1D-113] [RM-7959] [linemodel] use line strID everywhere in C++ code instead of line name and type Created: 13/Jun/23  Updated: 06/Oct/23  Resolved: 06/Oct/23

Status: Done
Project: 1D Redmine
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: Redmine-Jira Migtation Assignee: Redmine-Jira Migtation
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Capture d’écran du 2023-09-29 15-10-24.png     PNG File Capture d’écran du 2023-09-29 15-25-17.png    

 Description   

Created on 2023-03-14 08:20:44 by Didier Vibert. % Done: 100

in c++ the line identification is sometime done through the linename

cf

  • CLineCatalog::Add
  • CLineCatalogsTplRatio::InitLineCorrespondingAmplitudes
  • ...

may be change @TLineVector CLineCatalog::m_List@ to be a map with line strID as key



 Comments   
Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Didier Vibert on 2023-07-07 09:23:12:
after discussions this morning:
instead of having two keys (an integer ID and the composed string str_Id), we keep inside the C++ class a unique integer key.
When we add a new line in the catalog (in C++ called by python api) we check the unicity of the str_Id, and then forget about it (we keep the list only for checking unicity in add). Then all direct access to a specific line are done via the integer id and the linecatalog will be a map instead of a vector of lines

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Didier Vibert on 2023-09-14 14:03:38:
MR: https://gitlab.lam.fr/CPF/cpf-redshift/-/merge_requests/540

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Didier Vibert on 2023-09-19 13:39:17:
gros problème d'augmentation du temps de calcul du à l'accès indirect des raies dans des std::map au lieu de std::vector

a priori revenir à un accès direct au moins dans les CElement.

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Didier Vibert on 2023-09-29 13:33:47:
le fix de l'utilisation des id des raies semble corriger un pb linemeas (cf #8248) dû à un mélange des raies dans le hybridfitter concernant la détermination des raies qui se chevauchent et donc du polynôme commun pour fitter le continu...

sur le test d'intégration sp8_linemeas_lbfgsb
avant:

après:

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Vincent Le Brun on 2023-09-29 14:25:15:
parfait... une fin de vendredi comme on les aime...

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Didier Vibert on 2023-09-29 14:43:45:
Vincent Le Brun wrote in #note-17:
> parfait... une fin de vendredi comme on les aime...

peut être que ça corrige aussi le fit foireux du QSO que tu as vu. C'était en linemodel "free" ou "ratio" ?

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Vincent Le Brun on 2023-09-29 14:44:55:
ratio. Dès que c'est en merged dans un vent je ferai un test. Mais ça n'aurait pas du arriver plus souvent ?

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Didier Vibert on 2023-09-29 14:51:50:
Vincent Le Brun wrote in #note-19:
> ratio. Dès que c'est en merged dans un vent je ferai un test. Mais ça n'aurait pas du arriver plus souvent ?

si il y avait un pb avec linemeas autour de OII depuis longtemps...

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Vincent Le Brun on 2023-09-29 15:25:26:
mais mon probleme avec le solver QSO n'a rien à voir avec OII, à moins qu'il y ait eu un mélange d'autres raies dans les linecatalog QSO. Tu as moyen de vérifier ça sur le spectre DESI?

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Didier Vibert on 2023-10-02 14:16:50:
IT full

Comment by Redmine-Jira Migtation [ 06/Oct/23 ]

Comment by Pierre-yves Chabaud on 2023-10-03 08:56:05:
Merged into @develop@ (ef67328c)

Generated at Sat Feb 10 15:29:26 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.