Skip to content

Commit

Permalink
Should really do the automated linting...
Browse files Browse the repository at this point in the history
  • Loading branch information
vallis committed Sep 8, 2021
1 parent 8fd647b commit e92596b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions enterprise/pulsar.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,23 +549,23 @@ def _get_sunssb(self, t2pulsar):
_todeflate = ["_designmatrix", "_planetssb", "_sunssb", "_flags"]
_deflated = "pristine"

def deflate(psr): # pragma: py-lt-38
def deflate(psr): # pragma: py-lt-38
if psr._deflated == "pristine":
for attr in psr._todeflate:
if isinstance(getattr(psr, attr), np.ndarray):
setattr(psr, attr, PulsarInflater(getattr(psr, attr)))

psr._deflated = "deflated"

def inflate(psr): # pragma: py-lt-38
def inflate(psr): # pragma: py-lt-38
if psr._deflated == "deflated":
for attr in psr._todeflate:
if isinstance(getattr(psr, attr), PulsarInflater):
setattr(psr, attr, getattr(psr, attr).inflate())

psr._deflated = "inflated"

def destroy(psr): # pragma: py-lt-38
def destroy(psr): # pragma: py-lt-38
if psr._deflated == "deflated":
for attr in psr._todeflate:
if isinstance(getattr(psr, attr), PulsarInflater):
Expand Down
2 changes: 1 addition & 1 deletion enterprise/pulsar_inflate.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
from multiprocessing import shared_memory, resource_tracker
except:
# shared_memory unavailable in Python < 3.8
# shared_memory unavailable in Python < 3.8
pass


Expand Down

0 comments on commit e92596b

Please sign in to comment.