code: def update_member_names(oldasndict, pydr_input):
      
  
      omembers = oldasndict['members'].copy()
      nmembers = {}
      translated_names = [f.split('.fits')[0] for f in pydr_input]
  
      newkeys = [fileutil.buildNewRootname(file) for file in pydr_input]
      keys_map = list(zip(newkeys, pydr_input))
  
      for okey, oval in list(omembers.items()):
          if okey in newkeys:
              nkey = pydr_input[newkeys.index(okey)]
              nmembers[nkey.split('.fits')[0]] = oval
  
      oldasndict.pop('members')
      # replace should be always True to cover the case when flt files were removed
      # and the case when names were translated
  
      oldasndict.update(members=nmembers, replace=True)
      oldasndict['order'] = translated_names
      return oldasndict
docs: Update names in a member dictionary.
  
      Given an association dictionary with rootnames and a list of full
      file names, it will update the names in the member dictionary to
      contain '_*' extension. For example a rootname of 'u9600201m' will
      be replaced by 'u9600201m_c0h' making sure that a MEf file is passed
      as an input and not the corresponding GEIS file.