Skip to content

Commit

Permalink
MAINT: NumPy recarray shim
Browse files Browse the repository at this point in the history
* based on numpy/numpy#24587:
  * replace the single usage of `np.recarray` I found
    in our codebase--there are references to third-party
    libraries providing us with `recarray` that I haven't
    touched
  * similar PRs have been merged to `pandas` and `scipy`

[skip cirrus]
  • Loading branch information
tylerjereddy committed Sep 3, 2023
1 parent f50a097 commit cc29e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/MDAnalysis/analysis/hydrogenbonds/wbridge_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ def generate_table(self, output_format=None):
Returns
-------
table : numpy.recarray
table : numpy.rec.recarray
A "tidy" table with one hydrogen bond per row, labeled according to
`output_format` and containing information of atom_1, atom_2,
distance, and angle.
Expand Down Expand Up @@ -1832,7 +1832,7 @@ def generate_table(self, output_format=None):
cursor += 1
assert cursor == num_records, \
"Internal Error: Not all wb records stored"
table = out.view(np.recarray)
table = out.view(np.rec.recarray)
logger.debug(
"WBridge: Stored results as table with %(num_records)d entries.",
vars())
Expand Down

0 comments on commit cc29e8b

Please sign in to comment.