Skip to content

Commit

Permalink
typos and consistency in variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Jul 16, 2019
1 parent 883fba2 commit 8e67d1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sami2py/_core_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _load_model(self):
# get neutral values
if self.outn:
denn = np.loadtxt(path.join(model_path, 'dennf.dat'))
u = np.loadtxt(path.join(model_path, 'u4f.dat'))
u4 = np.loadtxt(path.join(model_path, 'u4f.dat'))
else:
# Get Location
glat = get_unformatted_data(model_path, 'glat')
Expand All @@ -207,15 +207,15 @@ def _load_model(self):
ti = get_unformatted_data(model_path, 'ti',
dim0=dim0, dim1=dim1, reshape=True)
if self.outn:
deni = get_unformatted_data(model_path, 'denn',
denn = get_unformatted_data(model_path, 'denn',
dim0=dim0, dim1=dim1, reshape=True)

# Electron Temperatures and neutral wind have only one species
dim0 = nz*nf + 2
te = get_unformatted_data(model_path, 'te',
dim0=dim0, dim1=dim1, reshape=True)
if self.outn:
vsi = get_unformatted_data(model_path, 'u4',
u4 = get_unformatted_data(model_path, 'u4',
dim0=dim0, dim1=dim1, reshape=True)

glat = np.reshape(glat, (nz, nf), order="F")
Expand All @@ -237,8 +237,8 @@ def _load_model(self):
if self.outn:
denn = np.reshape(denn, (nz, nf, ni, nt), order="F")
self.data['denn'] = (('z', 'f', 'ion', 'ut'), denn)
u = np.reshape(u, (nz, nf, nt), order="F")
self.data['u'] = (('z', 'f', 'ut'), u)
u4 = np.reshape(u4, (nz, nf, nt), order="F")
self.data['u4'] = (('z', 'f', 'ut'), u4)

def _generate_metadata(self, namelist):
"""Reads the namelist and generates MetaData based on Parameters
Expand Down

0 comments on commit 8e67d1e

Please sign in to comment.