Showing Index Error

Asked by shibasipu

ma5> import samples/ee2zh_unweighted_events.lhe.gz* as sahoo
   -> Storing the file 'ee2zh_unweighted_events.lhe.gz' in the dataset 'sahoo'.
ma5> set sahoo.backcolor = green
ma5> set sahoo.linestyle = dotted
ma5> set sahoo.linewidth = 9
ma5> set sahoo.backstyle = vline
ma5> plot PT(z) 20 0 500
ma5> submit ee2zhall
   Creating folder 'ee2zhall'...
   Copying 'SampleAnalyzer' source files...
   Inserting your selection into 'SampleAnalyzer'...
   Writing the list of datasets...
   Writing the command line history...
   Creating Makefiles...
   Compiling 'SampleAnalyzer'...
   Linking 'SampleAnalyzer'...
   Running 'SampleAnalyzer' over dataset 'sahoo'...
    *******************************************************
    * SampleAnalyzer for MadAnalysis 5 - Welcome.
    * Initializing all components
      - version: 1.1.11 (2014/09/15)
      - general: everything is default.
      - extracting the list of event samples...
      - analyzer 'MadAnalysis5job'
    * Running over files ...
    * 1/1 /home/shiba/research/madanalysis5/samples/ee2zh_unweighted_events.lhe.gz
        => file size: 365.60 ko
        => sample format: LHE file produced by MadGraph5.
        => progress: [===================================]
        => total number of events: 10000 ( analyzed: 10000 ; skipped: 0 )
    * Finalizing all components ...
    * Total number of processed events: 10000.
    * Goodbye.
    *******************************************************
   Checking SampleAnalyzer output...
   Extracting data from the output files...
   Preparing data for the reports ...
   Generating the HMTL report ...
Traceback (most recent call last):
  File "./bin/ma5", line 70, in <module>
    madanalysis.core.launcher.LaunchMA5(version, date, ma5dir)
  File "/home/shiba/research/madanalysis5/madanalysis/core/launcher.py", line 320, in LaunchMA5
    repeat = MainSession(mode,arglist,ma5dir,version,date)
  File "/home/shiba/research/madanalysis5/madanalysis/core/launcher.py", line 232, in MainSession
    interpreter.cmdloop()
  File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/home/shiba/research/madanalysis5/madanalysis/interpreter/interpreter.py", line 260, in do_submit
    self.cmd_submit.do(self.split_arg(line),self.history)
  File "/home/shiba/research/madanalysis5/madanalysis/interpreter/cmd_submit.py", line 81, in do
    return self.do_submit(args,history)
  File "/home/shiba/research/madanalysis5/madanalysis/interpreter/cmd_submit.py", line 247, in do_submit
    self.CreateReports(args,history,layout)
  File "/home/shiba/research/madanalysis5/madanalysis/interpreter/cmd_submit.py", line 266, in CreateReports
    layout.GenerateReport(history,htmlpath,ReportFormatType.HTML)
  File "/home/shiba/research/madanalysis5/madanalysis/layout/layout.py", line 814, in GenerateReport
    if not self.DoPlots(mode,output_path):
  File "/home/shiba/research/madanalysis5/madanalysis/layout/layout.py", line 152, in DoPlots
    self.plotflow.DrawAll(mode,output_path)
  File "/home/shiba/research/madanalysis5/madanalysis/layout/plotflow.py", line 153, in DrawAll
    self.Draw(histos,scales,self.main.selection[iabshisto],irelhisto,mode,output_path,preview=False)
  File "/home/shiba/research/madanalysis5/madanalysis/layout/plotflow.py", line 386, in Draw
    self.main.datasets[ind].linestyle))
  File "/home/shiba/research/madanalysis5/madanalysis/enumeration/linestyle_type.py", line 37, in convert2code
    name = self.values.keys()[color]
IndexError: list index out of range

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Best Benjamin Fuks (fuks) said :
#1

Hi,

This is a bug that I have just fixed. Please update your repository (via the bzr command)

Regards,

Benjamin

Revision history for this message
shibasipu (shibasipu) said :
#2

Hello Fuks,
                      Now it is working. Thank you very much.

Regards,
Shiba

Revision history for this message
shibasipu (shibasipu) said :
#3

Thanks Benjamin Fuks, that solved my question.