Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
leonfoks committed Jun 5, 2024
1 parent c65c0c6 commit 10d41dc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion geobipy/src/classes/data/dataset/FdemData.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def read_csv(cls, dataFilename, system):
try:
df = read_csv(dataFilename, index_col=False, usecols=channels, skipinitialspace = True)
except:
df = read_csv(dataFilename, index_col=False, usecols=channels, sep='\s+', skipinitialspace = True)
df = read_csv(dataFilename, index_col=False, usecols=channels, sep='\\s+', skipinitialspace = True)
df = df.replace('NaN',nan)

# Assign columns to variables
Expand Down
1 change: 1 addition & 0 deletions geobipy/src/classes/mesh/RectilinearMesh2D_stitched.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def pcolor(self, values, **kwargs):
y_edges = self.y_edges
y_edges = utilities._power(y_edges, self.y_log)

min_edge = min(y_edges[isfinite(y_edges)])
max_edge = max(y_edges[isfinite(y_edges)])
if npany(isinf(y_edges)):
if nanmin(y_edges) == -inf:
Expand Down
1 change: 0 additions & 1 deletion geobipy/src/classes/model/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ def prior_derivative(self, order):

if self.gradient.hasPrior:
Wz = self.mesh.gradient_operator

operator += dot(Wz.T, dot(self.gradient.priorDerivative(order=2), Wz))

return dot(operator, self.values.prior.deviation(self.values)) if order == 1 else operator
Expand Down
2 changes: 1 addition & 1 deletion geobipy/src/classes/statistics/Histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def sample(self, n_samples, log=None):
values, dum = utilities._log(values, log)
return values

def transparency(self, percent, log=None, axis=0, **kwargs):
def transparency(self, percent=95.0, log=None, axis=0, **kwargs):
"""Return a transparency value between 0 and 1 based on the difference between credible invervals of the hitmap.
Higher ranges in credibility are mapped to more transparency.
Expand Down

0 comments on commit 10d41dc

Please sign in to comment.