Skip to content

Commit

Permalink
Merge pull request #1386 from pllim/brimful-of-percentile-on-the-95
Browse files Browse the repository at this point in the history
Change default image viewer percentile to 95%
  • Loading branch information
kecnry authored Jun 10, 2022
2 parents 8c3d3e7 + e1a0278 commit b91701b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Specviz
API Changes
-----------

- Default percentile for all image viewers is now 95%, not min/max. [#1386]

Cubeviz
^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def _update_selected_data_items(self, viewer_id, selected_items):

[data] = [x for x in self.data_collection if x.label == label]

viewer.add_data(data)
viewer.add_data(data, percentile=95)

add_data_message = AddDataMessage(data, viewer,
viewer_id=viewer_id,
Expand Down

0 comments on commit b91701b

Please sign in to comment.