Skip to content

Commit

Permalink
Merge pull request #174 from achael/dev
Browse files Browse the repository at this point in the history
version 1.2.7
  • Loading branch information
achael authored Oct 4, 2023
2 parents 2612ee9 + 764826c commit 16ec509
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The package contains several primary classes for loading, simulating, and manipu
Installation
------------

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
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

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

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

Selected publications that use ehtim
------------------------------------
Expand Down
21 changes: 10 additions & 11 deletions ehtim/const_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,16 @@

def show_noblock(pause=0.001):
"""helper function for image display with different matplotlib versions"""
plt.show(block=False)

# this was required for matplotlib version 3.5
# if version.parse(mpl.__version__) <= version.parse('3.2.2'):
# plt.show(block=False)
# else:
# plt.ion()
# plt.show()
# plt.pause(pause)
# plt.draw()
# plt.pause(pause)

# this seems to be required for matplotlib version 3.5
if version.parse(mpl.__version__) <= version.parse('3.2.2') or version.parse(mpl.__version__) > version.parse('3.6'):
plt.show(block=False)
else:
plt.ion()
plt.show()
plt.pause(pause)
plt.draw()
plt.pause(pause)

FIELD_LABELS = {'time': 'Time',
'time_utc': 'Time (UTC)',
Expand Down
1 change: 0 additions & 1 deletion ehtim/obsdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,6 @@ def unpack_bl(self, site1, site2, fields, ang_unit='deg', debias=False, timetype

allout.append(out)

#return np.array(allout, dtype=object)
return np.array(allout)

def unpack(self, fields, mode='all', ang_unit='deg', debias=False, conj=False, timetype=False):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def read(fname):
if __name__ == "__main__":
setup(name="ehtim",

version = "1.2.6",
version = "1.2.7",

author = "Andrew Chael",
author_email = "[email protected]",
Expand All @@ -16,7 +16,7 @@ def read(fname):
license = "GPLv3",
keywords = "imaging astronomy EHT polarimetry",
url = "https://github.com/achael/eht-imaging",
download_url = "https://github.com/achael/eht-imaging/archive/v1.2.3.tar.gz",
download_url = "https://github.com/achael/eht-imaging/archive/v1.2.7.tar.gz",
packages = ["ehtim",
"scripts",
"ehtim.calibrating",
Expand Down

0 comments on commit 16ec509

Please sign in to comment.