Changeset 2951


Ignore:
Timestamp:
May 23, 2006, 5:16:54 PM (19 years ago)
Author:
sexton
Message:

update to sww2timeseries for report generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/util.py

    r2933 r2951  
    787787        label_id1 = label_id.replace(sep,'')
    788788        label_id2 = label_id1.replace('_','')
    789         texfile = 'latexoutput%s' %(label_id2)
     789        texdir = getcwd()+sep+'report'+sep
     790        if access(texdir,F_OK) == 0:
     791            mkdir (texdir)
     792        texfile = texdir+'latexoutput%s' %(label_id2)
    790793        texfilename = texfile + '.tex'
    791794        if verbose: print '\n Latex output printed to %s \n' %texfilename
     
    906909                graphname_latex = '%sgauge%s%s%s' %(latex_file_loc, gaugeloc2, which_quantity, label_id2)
    907910                # giving location in latex output file
    908                 graphname_report = '%sgauge%s%s%s' %('report_figures'+altsep, gaugeloc2, which_quantity, label_id2)
     911                graphname_report = '%sgauge%s%s%s' %('..'+altsep+'report_figures'+altsep, gaugeloc2, which_quantity, label_id2)
    909912                       
    910913                label = '%s%sgauge%s' %(label_id2, which_quantity, gaugeloc2)
Note: See TracChangeset for help on using the changeset viewer.