Opened 16 months ago

Closed 16 months ago

Last modified 11 months ago

#202 closed Defect (fixed)

Bug in flex_extract v7.0.3 public user mode

Reported by: anphi Owned by: anphi
Priority: critical Milestone:
Component: flex_extract Version:
Keywords: flex_extract_v7.0.3 Cc:

Description

I got a message from a user who reported a problem in the public user mode with the following error message:

Traceback (most recent call last):
  File "./submit.py", line 112, in <module>
    main()
  File "./submit.py", line 57, in main
    getMARSdata(args,c)
  File "/media/flexpart/FLEXPART_ROOT_TEMPLATE/scripts/flex_extract_v7.0.3/python/getMARSdata.py", line 111, in getMARSdata
    flexpart.retrieve(server, c.public, dates, times, c.inputdir)
  File "/media/flexpart/FLEXPART_ROOT_TEMPLATE/scripts/flex_extract_v7.0.3/python/FlexpartTools.py", line 979, in retrieve
    MR.dataRetrieve()
  File "/media/flexpart/FLEXPART_ROOT_TEMPLATE/scripts/flex_extract_v7.0.3/python/FlexpartTools.py", line 655, in dataRetrieve
    print 'target: ', target
UnboundLocalError: local variable 'target' referenced before assignment 

Change History (4)

comment:1 Changed 16 months ago by anphi

Solved by changing some lines in the FlexpartTools.py file! See code snipet below:

651         attrs['class'] = mclass
652        target = attrs.get('target')
653        if not int(self.public):
654            del attrs['target']
655        print 'target: ', target 

Repository is up to date!

comment:2 Changed 16 months ago by anphi

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 11 months ago by pesei

  • Component changed from FP input data to flex_extract
  • Milestone set to flex_extract_v7.1

comment:4 Changed 11 months ago by pesei

  • Milestone flex_extract_v7.1 deleted
Note: See TracTickets for help on using tickets.
hosted by ZAMG