Skip to content

Commit

Permalink
Fix instantiating metric from metric instance
Browse files Browse the repository at this point in the history
This commit fixes dfm#127
  • Loading branch information
StijnDebackere committed Jul 22, 2020
1 parent 4481968 commit 302783a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions george/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ def __init__(self,
self.metric_type = metric.metric_type
self.parameter_names = metric.parameter_names
self.unfrozen_mask = metric.unfrozen_mask
self.set_parameter_vector(
metric.get_parameter_vector(include_frozen=True),
include_frozen=True)
self.parameter_vector = metric.get_parameter_vector(include_frozen=True)
self.parameter_bounds = metric.parameter_bounds
self.ndim = metric.ndim
self.axes = metric.axes
Expand Down

0 comments on commit 302783a

Please sign in to comment.