Overwritte a directory fails in aMC@NLO
Bug #1158526 reported by
Olivier Mattelaer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Low
|
marco zaro |
Bug Description
Hi Marco,
I found a small bug in aMC@NLO.
when doing:
! rm -rf NEW
generate p p > t t~ [QCD]; output NEW
everything is fine but if do
! rm -rf NEW
generate p p > t t~ [QCD]; output NEW; output NEW
Then it crash.
On the same kind of error:
! rm -rf NEW
generate p p > t t~
output NEW
generate p p > t t~ [QCD]
output NEW
It crash as well (but not for the same reason).
To avoid those problem, at LO, we have change the behavior a long time ago,
in order to first fully remove the directory and then recreate it (instead of trying to clean it)
Cheers,
Olivier
Related branches
lp:~maddevelopers/mg5amcnlo/2.0.0beta4
- Olivier Mattelaer: Approve
-
Diff: 232 lines (+167/-12)4 files modifiedTemplate/LO/bin/internal/merge.pl (+6/-0)
Template/NLO/MCatNLO/HWAnalyzer/mcatnlo_hwan_rates.f (+139/-0)
Template/NLO/Utilities/check_events.f (+19/-12)
UpdateNotes.txt (+3/-0)
Changed in madgraph5: | |
importance: | Undecided → Low |
Changed in madgraph5: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Olivier,
thanks for spotting this.
I fixed it and pushed it directly to beta4 (since the fix was trivial).
Here you have the diff (it is the same as for LO MG5 now)
Cheers!
Marco
@@ -445,11 +446,13 @@
logger. info('INFO: directory %s already exists.' % self._export_dir)
timeout= self.options[ 'timeout' ])
raise self.InvalidCmd ('Stopped by user request') rmtree( self._export_ dir)
and self._export_format in ['NLO']:
# Don't ask if user already specified force or noclean
- logger.info('If you continue this directory will be cleaned')
+ logger.info('If you continue this directory will be deleted and replaced.')
answer = self.ask('Do you want to continue?', 'y', ['y','n'],
if answer != 'y':
+ else:
+ shutil.
# Make a Template Copy
if self._export_format in ['NLO']:
On 22 Mar 2013, at 00:46, Olivier Mattelaer wrote:
> ** Changed in: madgraph5 bug_reports /bugs.launchpad .net/bugs/ 1158526 /bugs.launchpad .net/madgraph5/ +bug/1158526/ +subscriptions
> Importance: Undecided => Low
>
> --
> You received this bug notification because you are a member of aMC@NLO,
> which is subscribed to MadGraph5.
> Matching subscriptions: aMCatNLO_
> https:/
>
> Title:
> Overwritte a directory fails in aMC@NLO
>
> Status in The MadGraph Matrix Element Generator version 5:
> New
>
> Bug description:
> Hi Marco,
>
> I found a small bug in aMC@NLO.
>
> when doing:
> ! rm -rf NEW
> generate p p > t t~ [QCD]; output NEW
> everything is fine but if do
> ! rm -rf NEW
> generate p p > t t~ [QCD]; output NEW; output NEW
> Then it crash.
>
> On the same kind of error:
> ! rm -rf NEW
> generate p p > t t~
> output NEW
> generate p p > t t~ [QCD]
> output NEW
>
> It crash as well (but not for the same reason).
> To avoid those problem, at LO, we have change the behavior a long time ago,
> in order to first fully remove the directory and then recreate it (instead of trying to clean it)
>
>
> Cheers,
>
> Olivier
>
> To manage notifications about this bug go to:
> https:/