Skip to content

Commit

Permalink
Reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyuon committed Aug 1, 2024
1 parent fcdc120 commit 06eb3ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/jimgw/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,10 @@ def __init__(
}
self.inverse_transform_func = lambda x: {
name_mapping[0][i]: (
(x[name_mapping[1][i]] ** (1.0 + self.alpha) - self.xmin ** (1.0 + self.alpha))
(
x[name_mapping[1][i]] ** (1.0 + self.alpha)
- self.xmin ** (1.0 + self.alpha)
)
/ (self.xmax ** (1.0 + self.alpha) - self.xmin ** (1.0 + self.alpha))
)
for i in range(len(name_mapping[1]))
Expand Down Expand Up @@ -429,7 +432,8 @@ def __init__(
}
self.inverse_transform_func = lambda x: {
name_mapping[0][i]: (
jnp.log(x[name_mapping[1][i]] / self.xmin) / jnp.log(self.xmax / self.xmin)
jnp.log(x[name_mapping[1][i]] / self.xmin)
/ jnp.log(self.xmax / self.xmin)
)
for i in range(len(name_mapping[1]))
}

0 comments on commit 06eb3ad

Please sign in to comment.