Skip to content

Commit

Permalink
Removed print statments from profile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 10, 2019
1 parent d610d78 commit a13e385
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sharppy/sharptab/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def __init__(self, **kwargs):
def copy(cls, prof, strictQC=False, **kwargs):
'''
Copies a profile object.
'''
'''
new_kwargs = dict( (k, prof.__dict__[k]) for k in [ 'pres', 'hght', 'tmpc', 'dwpc', 'omeg', 'location', 'date', 'latitude', 'strictQC', 'missing' ])

if prof.u is not None and prof.v is not None:
Expand Down Expand Up @@ -192,7 +192,7 @@ def qc(val):
snd_loc = (" " * (4 - len(self.location))) + self.location

now = datetime.utcnow()
print(now, self.date)
#print(now, self.date)
user = getpass.getuser()
snd_file.write("%TITLE%\n")
#snd_file.write("%s %s\n Saved by user: %s on %s UTC\n" % (snd_loc, self.date.strftime("%y%m%d/%H%M"), user, now.strftime('%Y%m%d/%H%M')))
Expand All @@ -209,7 +209,6 @@ def qc(val):
snd_file.close()

def checkDataIntegrity(self):

if not qc_tools.isHGHTValid(self.hght):
qc_tools.raiseError("Invalid height data. Data has repeat height values or height does not increase as pressure decreases.", qc_tools.DataQualityException)
if not qc_tools.isTMPCValid(self.tmpc):
Expand Down

0 comments on commit a13e385

Please sign in to comment.