Modify ↓
Opened 7 years ago
Last modified 7 years ago
#376 new defect
'%'-style commenting not working throughout the run card
Reported by: | silvan | Owned by: | Frank Siegert |
---|---|---|---|
Priority: | major | Milestone: | rel-2.3.0 |
Component: | Hadron Decays | Version: | 2.2.3 |
Keywords: | Cc: |
Description
The '%' seems not to work everywhere in the run card. It can be reproduced by trying to comment out the specification of BEAM parameters in any run card.
Attachments (0)
Change History (2)
comment:1 Changed 7 years ago by
Summary: | '%'-style commenting not working throughout the run car → '%'-style commenting not working throughout the run card |
---|
comment:2 Changed 7 years ago by
Note: See
TracTickets for help on using
tickets.
Hi Silvan,
I'm not sure in how far I'd consider this a bug. The default is definitely '#' (e.g. set as the default in
Read_Write_Base
), all other options scattered throughout the code are only there for confusion.In trunk, the
Default_Reader
is introduced such that the behaviour can be configured in one place for all options. It uses '#' and '!' as comment characters.On 2.2.3, a
Data_Reader
instance is used and set up with '#' and '!' inInitialization_Handler::InitializeTheModel
for reading the BEAM parameters. You could addAddComment('%')
there. But again, I'm not sure why we should support more than one comment character, and '#' is definitely the most widely used. Also, in a few months, we will transition to YAML anyway (work in progress inyamlread2
branch) ...So I think if there is a broken Example, we should migrate it to use '#', and otherwise leave everything as is for now.