
from mica.stats import update_acq_stats
update_acq_stats.main()

import os
table_file = mica.stats.acq_stats.table_file
file_stat = os.stat(table_file)
if file_stat.st_size > 50e6:
    print("""
Warning: {tfile} is larger than 50MB and may need
Warning: to be manually repacked (i.e.):
Warning:
Warning: ptrepack --chunkshape=auto --propindexes --keep-source-filters {tfile} compressed.h5
Warning: cp compressed.h5 {tfile}

""".format(tfile=table_file))

import os
from mica.stats import update_acq_stats
import mica.stats.acq_stats
update_acq_stats.main()


table_file = mica.stats.acq_stats.TABLE_FILE
file_stat = os.stat(table_file)
if file_stat.st_size > 50e6:
    print("""
Warning: {tfile} is larger than 50MB and may need
Warning: to be manually repacked (i.e.):
Warning:
Warning: ptrepack --chunkshape=auto --propindexes --keep-source-filters {tfile} compressed.h5
Warning: cp compressed.h5 {tfile}

""".format(tfile=table_file))

Fix reference to acq table file in script
Fix reference to acq table file in script

- 
+ import os
  from mica.stats import update_acq_stats
+ import mica.stats.acq_stats
  update_acq_stats.main()
  
- import os
+ 
- table_file = mica.stats.acq_stats.table_file
+ table_file = mica.stats.acq_stats.TABLE_FILE
  file_stat = os.stat(table_file)
  if file_stat.st_size > 50e6:
      print("""
  Warning: {tfile} is larger than 50MB and may need
  Warning: to be manually repacked (i.e.):
  Warning:
  Warning: ptrepack --chunkshape=auto --propindexes --keep-source-filters {tfile} compressed.h5
  Warning: cp compressed.h5 {tfile}
  
  """.format(tfile=table_file))
  
Fix reference to acq table file in script
## Code Before:

from mica.stats import update_acq_stats
update_acq_stats.main()

import os
table_file = mica.stats.acq_stats.table_file
file_stat = os.stat(table_file)
if file_stat.st_size > 50e6:
    print("""
Warning: {tfile} is larger than 50MB and may need
Warning: to be manually repacked (i.e.):
Warning:
Warning: ptrepack --chunkshape=auto --propindexes --keep-source-filters {tfile} compressed.h5
Warning: cp compressed.h5 {tfile}

""".format(tfile=table_file))

## Instruction:
Fix reference to acq table file in script
## Code After:
import os
from mica.stats import update_acq_stats
import mica.stats.acq_stats
update_acq_stats.main()


table_file = mica.stats.acq_stats.TABLE_FILE
file_stat = os.stat(table_file)
if file_stat.st_size > 50e6:
    print("""
Warning: {tfile} is larger than 50MB and may need
Warning: to be manually repacked (i.e.):
Warning:
Warning: ptrepack --chunkshape=auto --propindexes --keep-source-filters {tfile} compressed.h5
Warning: cp compressed.h5 {tfile}

""".format(tfile=table_file))
