Error in reweighting with v3.4.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When trying to run a reweighting of a SMEFTsim model in v3.4.2, I get the error
```
reweight -from_cards
INFO: Extracting the banner ...
INFO: process: u u~ > h u u~ NP<=1
INFO: options: SMHLOOP=0
INFO: Running Reweighting
change rwgt_dir rwgt
launch --rwgt_name=rw_sm
INFO: detected model: SMEFTsim_
CRITICAL: Model with non QCD emission of gluon (found 14 of those).
This type of model is not fully supported within MG5aMC.
Restriction on LO dynamical scale and MLM matching/merging can occur for some processes.
Use such features with care.
CRITICAL: Model with non QCD emission of gluon (found 14 of those).
This type of model is not fully supported within MG5aMC.
Restriction on LO dynamical scale and MLM matching/merging can occur for some processes.
Use such features with care.
INFO: generating the square matrix element for reweighting
INFO: generate u u~ > h u u~ NP<=1 SMHLOOP=0 ;
INFO: Done 12.39
Command "launch" interrupted with error:
AttributeError : 'int' object has no attribute 'decode'
Please report this bug on https:/
More information is found in '/root/
Please attach this file to your report.
```
Looking at run_01_
```
Traceback (most recent call last):
File "/root/
return self.onecmd_
File "/root/
return func(arg, **opt)
File "/root/
self.
File "/root/
self.
File "/root/
original_
File "/root/
self.
File "/root/
stop = Cmd.onecmd_
File "/root/
return func(arg, **opt)
File "/root/
reweight_
File "/usr/local/
self.
File "/usr/local/
stop = Cmd.onecmd_
File "/usr/local/
return func(arg, **opt)
File "/usr/local/
out = f(self, *args, **opt)
File "/usr/local/
self.
File "/usr/local/
all_prefix = [''.join(
File "/usr/local/
all_prefix = [''.join(
File "/usr/local/
all_prefix = [''.join(
AttributeError: 'int' object has no attribute 'decode'
```
After adding a printout, I see that `mymod` is `rwgt/rw_
The issue seems to be some environment-
```
root@aa2494a3bd
>>> get_prefix()
array([b'M0_ '], dtype='|S20')
```
whereas in a working environment it is
```
array([[b'M', b'0', b'_', b' ', b' ', b' ', b' ', b' ', b' ', b' ', b' ',
b' ', b' ', b' ', b' ', b' ', b' ', b' ', b' ', b' ']],
dtype='|S1')
```
Changing the line to
```
all_prefix = [bytes(
```
seems to allow both types to be processed. Does this make sense?
summary: |
- Error in reweighting with v3.5.2 + Error in reweighting with v3.4.2 |
Changed in mg5amcnlo: | |
status: | New → Fix Committed |
In the new environment, numpy is version 1.24.2, while in the working environment it is 1.22.3.