Project

General

Profile

Feature #23274

in fife_wrap check metadata existence before filtering it

Added by Vito Di Benedetto 6 days ago. Updated 5 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
09/13/2019
Due date:
% Done:

0%

Estimated time:
Duration:

Description

It would be useful in fife_wrap to add a check on the metadata to be filter.
This will avoid a crash in case we try to filter metadata that are not present in the json produced by sam_metadata_dumper.

Currently if in the fife_launch cfg file we have

filter_metadata_2 = art.run_type

and that metadata is not present in the file, fife_warp has the following crash:

Traceback (most recent call last):
  File "./fife_wrap", line 1950, in 
    w.copy_back()
  File "./fife_wrap", line 1473, in copy_back
    res = self.copy_back_n(i)
  File "./fife_wrap", line 1549, in copy_back_n
    metadata_d = self.do_metadata(f)
  File "./fife_wrap", line 1377, in do_metadata
    del metadata_d[ff]
KeyError: 'art.run_type'

Associated revisions

Revision e3e4bc8e (diff)
Added by Marc Mengel 5 days ago

fixes issue #23274

History

#1 Updated by Marc Mengel 5 days ago

  • Target version set to v3_3
  • Status changed from New to Resolved


Also available in: Atom PDF