Skip to content

Issue faced in SModels #54

Description

@hdeka1

Dear developers of SModels,

I am writing to you regarding one of the issues I face in SModels. I generated the lhe file in MG-3.5.5 for the channel:
generate p p > bp bp~, (bp > hp2~ u, hp2~ > e- ne), (bp~ > hp2 u~, hp2 > e+ ~ne)

But, when I test the signal via ./runModels, I face the following error:

(base) hrishikesh@hrishikesh-OptiPlex-3000:~/Downloads/smodels-3.1.1$ ./runSModelS.py -f inputFiles/lhe/test.lhe -p parameters.ini -o results
INFO in databaseObj.loadBinaryFile() in 562: loading binary db file /home/hrishikesh/.cache/smodels/official311.pcl format version 214
INFO in databaseObj.loadBinaryFile() in 569: Loaded database from /home/hrishikesh/.cache/smodels/official311.pcl in 1.1 secs.
INFO in modelTester.testPoints() in 354: Running SModelS for a single file
Traceback (most recent call last):
File "/home/hrishikesh/Downloads/smodels-3.1.1/smodels/base/model.py", line 208, in getModelDataFrom
res = pyslha.readSLHAFile(inputFile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hrishikesh/anaconda3/lib/python3.11/site-packages/pyslha.py", line 1560, in readSLHAFile
return readSLHA(_read(spcfile), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hrishikesh/anaconda3/lib/python3.11/site-packages/pyslha.py", line 790, in readSLHA
sys.stderr.write("Ignoring unknown section type: %s\n" % line.split()[0])
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'write'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hrishikesh/Downloads/smodels-3.1.1/smodels/matching/modelTester.py", line 255, in runSingleFile
res = testPoint(inputFile, outputDir, parser, database)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hrishikesh/Downloads/smodels-3.1.1/smodels/matching/modelTester.py", line 126, in testPoint
model.updateParticles(inputFile=inputFile,
File "/home/hrishikesh/Downloads/smodels-3.1.1/smodels/base/model.py", line 418, in updateParticles
massDict, decaysDict, xsections = self.getModelDataFrom(inputFile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hrishikesh/Downloads/smodels-3.1.1/smodels/base/model.py", line 220, in getModelDataFrom
massDict, decaysDict = lheReader.getDictionariesFrom(inputFile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hrishikesh/Downloads/smodels-3.1.1/smodels/base/lheReader.py", line 248, in getDictionariesFrom
eventMass,eventDecays = getDictionariesFromEvent(event)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hrishikesh/Downloads/smodels-3.1.1/smodels/base/lheReader.py", line 355, in getDictionariesFromEvent
raise SModelSError("More than one parent particle found")
smodels.base.exceptions.SModelSBaseError: 'More than one parent particle found'


Will you please help me out how to resolve this issue?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions