Skip to content

Commit

Permalink
Merge pull request #4688 from matthewturk/avoid_field_access
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Oct 5, 2023
2 parents 395f74d + 9d3c45f commit 0f36ad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt/visualization/plot_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,9 @@ def _get_plot_instance(self, field):
return self.plots[field]
axrect = self._get_axrect()

pnh = NormHandler(self.data_source, display_units=self.data_source[field].units)
pnh = NormHandler(
self.data_source, display_units=self.data_source.ds.field_info[field].units
)
finfo = self.data_source.ds._get_field_info(field)
if not finfo.take_log:
pnh.norm_type = Normalize
Expand Down

0 comments on commit 0f36ad5

Please sign in to comment.