original_docstring: 
      Read in 21cmFast power spectrum files and order correctly
      
docstring: Read in 21cmFast power spectrum files and order correctly
docstring_tokens: Read in 21cmFast power spectrum files and order correctly
code: def pk_boxes_list_from_files(basedir, fieldflag = 'tb'):
      """
      Read in 21cmFast power spectrum files and order correctly
      """
  
      ext = "Output_files/Deldel_T_power_spec/"
      prefix = "ps_no_halos"
      
      filenames=os.listdir(os.path.join(basedir, ext))
      box_files=[]
      longdict={}
      for filename in filenames:
  
          #identify the files of interest by looking for prefix at beginning
          if filename.find(prefix) == 0:
              match=re.search('_z([0-9.]+)',filename)
              z = float(match.group(1))
  
              longdict[z] = os.path.join(ext, filename)
      return longdict
code_tokens: def pk_boxes_list_from_files ( basedir , fieldflag = 'tb' ) : ext = "Output_files/Deldel_T_power_spec/" prefix = "ps_no_halos" filenames = os . listdir ( os . path . join ( basedir , ext ) ) box_files = [ ] longdict = { } for filename in filenames : if filename . find ( prefix ) == 0 : match = re . search ( '_z([0-9.]+)' , filename ) z = float ( match . group ( 1 ) ) longdict [ z ] = os . path . join ( ext , filename ) return longdict
short_docstring: Read in 21cmFast power spectrum files and order correctly
short_docstring_tokens: Read in 21cmFast power spectrum files and order correctly
comment: """
      Read in 21cmFast power spectrum files and order correctly
      """$SEP$#identify the files of interest by looking for prefix at beginning
  