Skip to content

Commit 5125dc0

Browse files
authored
Merge pull request #41 from sods/development
0.9.6
2 parents 897fb8b + d5ca8e3 commit 5125dc0

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ New
1616
1717
Fix
1818
~~~
19+
- Replace np.float with float [connorfuhrman]
20+
- Replace np.bool with bool [connorfuhrman]
1921
- Better error handling in robust optimize_restarts. [Felix Berkenkamp]
2022
- Ipywidgets. [mzwiessele]
2123
- Docs using rtd. [mzwiessele]

paramz/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.9.5"
1+
__version__ = "0.9.6"

paramz/core/parameter_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def randomize(self, rand_gen=None, *args, **kwargs):
244244
self.optimizer_array = x # makes sure all of the tied parameters get the same init (since there's only one prior object...)
245245
# now draw from prior where possible
246246
x = self.param_array.copy()
247-
unfixlist = np.ones((self.size,),dtype=np.bool)
247+
unfixlist = np.ones((self.size,),dtype=bool)
248248
unfixlist[self.constraints[__fixed__]] = False
249249
self.param_array.flat[unfixlist] = x.view(np.ndarray).ravel()[unfixlist]
250250
self.update_model(updates)

paramz/optimization/verbose_optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
def exponents(fnow, current_grad):
38-
exps = [np.abs(np.float(fnow)),
38+
exps = [np.abs(float(fnow)),
3939
1 if current_grad is np.nan else current_grad]
4040
return np.sign(exps) * np.log10(exps).astype(int)
4141

0 commit comments

Comments
 (0)