Ignore:
Timestamp:
03/13/19 03:17:46 (6 years ago)
Author:
bdef
Message:

pep8 compliance of NTs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test2001.py

    r21585 r23793  
    11#Test Name: SquareSheetConstrainedGia2d
    22import numpy as np
    3 import copy
    43from model import *
    54from socket import gethostname
     
    1110
    1211
    13 #Define a model 
    14 md=model()
    15 md=triangle(md,'../Exp/Square.exp',100000.)
    16 md=setmask(md,'','')
    17 md=parameterize(md,'../Par/SquareSheetConstrained.py')
     12#Define a model
     13md = model()
     14md = triangle(md, '../Exp/Square.exp', 100000.)
     15md = setmask(md, '', '')
     16md = parameterize(md, '../Par/SquareSheetConstrained.py')
    1817
    19 #Indicate what you want to compute 
    20 md.gia.cross_section_shape=1    # for square-edged x-section
     18#Indicate what you want to compute
     19md.gia.cross_section_shape = 1    # for square-edged x-section
    2120
    2221#Define loading history (see test2001.m for the description)
    23 md.timestepping.start_time=2400000 # 2,400 kyr
    24 md.timestepping.final_time=2500000 # 2,500 kyr
    25 md.geometry.thickness=np.vstack((np.hstack((md.geometry.thickness*0.0, 0.0)),
    26                                                                                                                                  np.hstack((md.geometry.thickness/2.0, 0.1)),
    27                                                                                                                                 np.hstack((md.geometry.thickness, 0.2)),
    28                                                                                                                                 np.hstack((md.geometry.thickness, 1.0)),
    29                                                                                                                                 np.hstack((md.geometry.thickness, md.timestepping.start_time)))).T
     22md.timestepping.start_time = 2400000  # 2, 400 kyr
     23md.timestepping.final_time = 2500000  # 2, 500 kyr
     24md.geometry.thickness = np.vstack((np.hstack((md.geometry.thickness * 0.0, 0.0)),
     25                                   np.hstack((md.geometry.thickness / 2.0, 0.1)),
     26                                  np.hstack((md.geometry.thickness, 0.2)),
     27                                  np.hstack((md.geometry.thickness, 1.0)),
     28                                  np.hstack((md.geometry.thickness, md.timestepping.start_time)))).T
    3029
    31 #Solve for GIA deflection 
    32 md.cluster=generic('name',gethostname(),'np',3)
    33 md=solve(md,'Gia')
     30#Solve for GIA deflection
     31md.cluster = generic('name', gethostname(), 'np', 3)
     32md = solve(md, 'Gia')
    3433
    3534#Fields and tolerances to track changes
    36 field_names     =['GiaW','GiadWdt']
    37 field_tolerances=[1e-13,1e-13]
    38 field_values    =[md.results.GiaSolution.GiaW,
    39                                                                         md.results.GiaSolution.GiadWdt]
    40 
     35field_names = ['GiaW', 'GiadWdt']
     36field_tolerances = [1e-13, 1e-13]
     37field_values = [md.results.GiaSolution.GiaW,
     38                md.results.GiaSolution.GiadWdt]
Note: See TracChangeset for help on using the changeset viewer.