Skip to content

Commit 16ec509

Browse files
authored
Merge pull request #174 from achael/dev
version 1.2.7
2 parents 2612ee9 + 764826c commit 16ec509

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The package contains several primary classes for loading, simulating, and manipu
1010
Installation
1111
------------
1212

13-
The latest stable version (`1.2.6 <https://github.com/achael/eht-imaging/releases/tag/v1.2.6>`_) is available on `PyPi <https://pypi.org/project/ehtim/>`_. Simply install pip and run
13+
The latest stable version (`1.2.7 <https://github.com/achael/eht-imaging/releases/tag/v1.2.7>`_) is available on `PyPi <https://pypi.org/project/ehtim/>`_. Simply install pip and run
1414

1515
.. code-block:: bash
1616
@@ -55,7 +55,7 @@ Citation
5555
--------------------------------
5656
If you use ehtim in your publication, please cite `Chael+ 2018 <http://adsabs.harvard.edu/abs/2018ApJ...857...23C>`_.
5757

58-
The latest version is also available as a static doi on `Zenodo <https://zenodo.org/badge/latestdoi/42943499Zenodo>`_.
58+
The latest version is also available as a static doi on `Zenodo <https://zenodo.org/badge/latestdoi/42943499>`_.
5959

6060
Selected publications that use ehtim
6161
------------------------------------

ehtim/const_def.py

+10-11
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,16 @@
169169

170170
def show_noblock(pause=0.001):
171171
"""helper function for image display with different matplotlib versions"""
172-
plt.show(block=False)
173-
174-
# this was required for matplotlib version 3.5
175-
# if version.parse(mpl.__version__) <= version.parse('3.2.2'):
176-
# plt.show(block=False)
177-
# else:
178-
# plt.ion()
179-
# plt.show()
180-
# plt.pause(pause)
181-
# plt.draw()
182-
# plt.pause(pause)
172+
173+
# this seems to be required for matplotlib version 3.5
174+
if version.parse(mpl.__version__) <= version.parse('3.2.2') or version.parse(mpl.__version__) > version.parse('3.6'):
175+
plt.show(block=False)
176+
else:
177+
plt.ion()
178+
plt.show()
179+
plt.pause(pause)
180+
plt.draw()
181+
plt.pause(pause)
183182

184183
FIELD_LABELS = {'time': 'Time',
185184
'time_utc': 'Time (UTC)',

ehtim/obsdata.py

-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ def unpack_bl(self, site1, site2, fields, ang_unit='deg', debias=False, timetype
716716

717717
allout.append(out)
718718

719-
#return np.array(allout, dtype=object)
720719
return np.array(allout)
721720

722721
def unpack(self, fields, mode='all', ang_unit='deg', debias=False, conj=False, timetype=False):

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def read(fname):
77
if __name__ == "__main__":
88
setup(name="ehtim",
99

10-
version = "1.2.6",
10+
version = "1.2.7",
1111

1212
author = "Andrew Chael",
1313
author_email = "achael@princeton.edu",
@@ -16,7 +16,7 @@ def read(fname):
1616
license = "GPLv3",
1717
keywords = "imaging astronomy EHT polarimetry",
1818
url = "https://github.com/achael/eht-imaging",
19-
download_url = "https://github.com/achael/eht-imaging/archive/v1.2.3.tar.gz",
19+
download_url = "https://github.com/achael/eht-imaging/archive/v1.2.7.tar.gz",
2020
packages = ["ehtim",
2121
"scripts",
2222
"ehtim.calibrating",

0 commit comments

Comments
 (0)