Skip to content

Commit

Permalink
fix a couple of bugs in previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Jan 16, 2024
1 parent a1826c5 commit 1251050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion py/rvspecfit/make_interpol.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def process_all(setupInfo,
dbfile=dbfile,
prefix=prefix,
wavefile=wavefile)
mapper = read_grid.ParamMapper(log_parameters)
mapper = read_grid.LogParamMapper(log_parameters)
HR, lamleft, lamright, resol_function, step, log = setupInfo

deltav = 1000. # extra padding
Expand Down
4 changes: 2 additions & 2 deletions py/rvspecfit/read_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def forward(self, vec):
ret: numpy array
The vector of transformed parameters used in interpolation
"""
vec1 = np.array(vec)
vec1 = np.array(vec, dtype=np.float64)
for i in self.log_ids:
vec1[i] = np.log10(vec1[i])
return vec1
Expand All @@ -148,7 +148,7 @@ def inverse(self, vec):
ret: numpy array
The vector of original atmospheric parameters.
"""
vec1 = np.array(vec)
vec1 = np.array(vec, dtype=np.float64)
for i in self.log_ids:
vec1[i] = 10**(vec1[i])
return vec1
Expand Down

0 comments on commit 1251050

Please sign in to comment.