[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jun 29 11:20:35 PDT 2016
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/98a176b1620f/
Changeset: 98a176b1620f
Branch: yt
User: xarthisius
Date: 2016-06-24 21:09:53+00:00
Summary: Remove unused domain_iwidth attribute
Affected #: 1 file
diff -r 27783a435b496c47db10e1a1f5f5f1485ab2bcf1 -r 98a176b1620fe42827fe74cb057cc402fc628dee yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -537,8 +537,6 @@
self._use_pbar = use_pbar
self.global_startindex = np.rint(
(self.left_edge-self.ds.domain_left_edge)/self.dds).astype('int64')
- self.domain_width = np.rint((self.ds.domain_right_edge -
- self.ds.domain_left_edge)/self.dds).astype('int64')
self._setup_data_source()
self.get_data(fields)
@@ -833,7 +831,6 @@
current_level = None
global_startindex = None
old_global_startindex = None
- domain_iwidth = None
fields = None
data_source = None
@@ -982,8 +979,6 @@
ls.left_edge = ls.global_startindex * ls.current_dx \
+ self.ds.domain_left_edge.d
ls.right_edge = ls.left_edge + ls.current_dims * ls.current_dx
- ls.domain_iwidth = np.rint((self.ds.domain_right_edge -
- self.ds.domain_left_edge)/ls.current_dx).astype('int64')
ls.fields = [np.zeros(idims, dtype="float64")-999 for field in fields]
self._setup_data_source(ls)
return ls
@@ -1022,7 +1017,6 @@
ls.left_edge = ls.global_startindex * ls.current_dx \
+ self.ds.domain_left_edge.d
ls.right_edge = ls.left_edge + ls.current_dims * ls.current_dx
- ls.domain_iwidth = np.rint(ls.domain_width/ls.current_dx).astype('int64')
input_left = (level_state.old_global_startindex) * rf + 1
new_fields = []
for input_field in level_state.fields:
https://bitbucket.org/yt_analysis/yt/commits/fa42596221ae/
Changeset: fa42596221ae
Branch: yt
User: xarthisius
Date: 2016-06-24 21:10:17+00:00
Summary: Remove noop assignment
Affected #: 1 file
diff -r 98a176b1620fe42827fe74cb057cc402fc628dee -r fa42596221aeaabd7f4b5a524e0706fa564a642f yt/geometry/selection_routines.pyx
--- a/yt/geometry/selection_routines.pyx
+++ b/yt/geometry/selection_routines.pyx
@@ -831,7 +831,6 @@
for i in range(3):
region_width[i] = RE[i] - LE[i]
p[i] = dobj.ds.periodicity[i]
- DW[i] = DW[i]
if region_width[i] <= 0:
raise RuntimeError(
"Region right edge[%s] < left edge: width = %s" % (
https://bitbucket.org/yt_analysis/yt/commits/f44aacc05874/
Changeset: f44aacc05874
Branch: yt
User: jzuhone
Date: 2016-06-29 18:20:21+00:00
Summary: Merged in xarthisius/yt (pull request #2250)
Remove some unused attributes and noop statements
Affected #: 2 files
diff -r 9efdcadc7c8b049c62c3d953921ff504bdd80b66 -r f44aacc05874d84296ec4ffbe53f4f0a66d425b2 yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -537,8 +537,6 @@
self._use_pbar = use_pbar
self.global_startindex = np.rint(
(self.left_edge-self.ds.domain_left_edge)/self.dds).astype('int64')
- self.domain_width = np.rint((self.ds.domain_right_edge -
- self.ds.domain_left_edge)/self.dds).astype('int64')
self._setup_data_source()
self.get_data(fields)
@@ -833,7 +831,6 @@
current_level = None
global_startindex = None
old_global_startindex = None
- domain_iwidth = None
fields = None
data_source = None
@@ -982,8 +979,6 @@
ls.left_edge = ls.global_startindex * ls.current_dx \
+ self.ds.domain_left_edge.d
ls.right_edge = ls.left_edge + ls.current_dims * ls.current_dx
- ls.domain_iwidth = np.rint((self.ds.domain_right_edge -
- self.ds.domain_left_edge)/ls.current_dx).astype('int64')
ls.fields = [np.zeros(idims, dtype="float64")-999 for field in fields]
self._setup_data_source(ls)
return ls
@@ -1022,7 +1017,6 @@
ls.left_edge = ls.global_startindex * ls.current_dx \
+ self.ds.domain_left_edge.d
ls.right_edge = ls.left_edge + ls.current_dims * ls.current_dx
- ls.domain_iwidth = np.rint(ls.domain_width/ls.current_dx).astype('int64')
input_left = (level_state.old_global_startindex) * rf + 1
new_fields = []
for input_field in level_state.fields:
diff -r 9efdcadc7c8b049c62c3d953921ff504bdd80b66 -r f44aacc05874d84296ec4ffbe53f4f0a66d425b2 yt/geometry/selection_routines.pyx
--- a/yt/geometry/selection_routines.pyx
+++ b/yt/geometry/selection_routines.pyx
@@ -831,7 +831,6 @@
for i in range(3):
region_width[i] = RE[i] - LE[i]
p[i] = dobj.ds.periodicity[i]
- DW[i] = DW[i]
if region_width[i] <= 0:
raise RuntimeError(
"Region right edge[%s] < left edge: width = %s" % (
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list