@@ -1627,12 +1627,6 @@ def zero(self, subset=None):
1627
1627
"""Zero the data associated with this :class:`Dat`
1628
1628
1629
1629
:arg subset: A :class:`Subset` of entries to zero (optional)."""
1630
- < << << << HEAD
1631
- if subset is None :
1632
- self .data [:] = 0
1633
- else :
1634
- self .data [subset .indices ] = 0
1635
- == == == =
1636
1630
# If there is no subset we can safely zero the halo values.
1637
1631
if subset is None :
1638
1632
self ._data [:] = 0
@@ -1641,7 +1635,6 @@ def zero(self, subset=None):
1641
1635
raise MapValueError ("The subset and dataset are incompatible" )
1642
1636
else :
1643
1637
self .data [subset .owned_indices ] = 0
1644
- >> >> >> > origin / master
1645
1638
1646
1639
@collective
1647
1640
def copy (self , other , subset = None ):
@@ -1652,11 +1645,6 @@ def copy(self, other, subset=None):
1652
1645
if other is self :
1653
1646
return
1654
1647
if subset is None :
1655
- < << << << HEAD
1656
- other .data [:] = self .data_ro
1657
- else :
1658
- other .data [subset .indices ] = self .data_ro [subset .indices ]
1659
- == == == =
1660
1648
# If the current halo is valid we can also copy these values across.
1661
1649
if self .halo_valid :
1662
1650
other ._data [:] = self ._data
@@ -1667,7 +1655,6 @@ def copy(self, other, subset=None):
1667
1655
raise MapValueError ("The subset and dataset are incompatible" )
1668
1656
else :
1669
1657
other .data [subset .owned_indices ] = self .data_ro [subset .owned_indices ]
1670
- >> >> >> > origin / master
1671
1658
1672
1659
def __iter__ (self ):
1673
1660
"""Yield self when iterated over."""
@@ -1879,17 +1866,7 @@ def __imul__(self, other):
1879
1866
1880
1867
def __itruediv__ (self , other ):
1881
1868
"""Pointwise division or scaling of fields."""
1882
- < << << << HEAD
1883
- from numbers import Number
1884
- if isinstance (other , Number ):
1885
- self .data [:] /= other
1886
- else :
1887
- self ._check_shape (other )
1888
- np .true_divide (self .data [:], other .data_ro , out = self .data [:], casting = "unsafe" )
1889
- return self
1890
- == == == =
1891
1869
return self ._iop (other , operator .itruediv )
1892
- >> >> >> > origin / master
1893
1870
1894
1871
@collective
1895
1872
def global_to_local_begin (self , access_mode ):
0 commit comments