Open AlecThomson opened 3 weeks ago
I'm not sure that helps. I used this patch:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087040
--- a/radio_beam/multiple_beams.py
+++ b/radio_beam/multiple_beams.py
@@ -334,7 +334,7 @@
self.largest_beam(includemask)]
def common_beam(self, includemask=None, method='pts', **kwargs):
- '''
+ r'''
Return the smallest common beam size. For set of two beams,
the solution is solved analytically. All larger sets solve for the
minimum volume ellipse using the
Yeah, the problem is in the latex. r'''
is probably the right solution, though I might slightly prefer to s/\e/\\e/
(replace single-escape with double-escape) for a text block this large
Gah, apologies for not reading down a few lines further! 🫤 I've added the latex escapes to the latex, if that's useful. I've gone with the double-escape version, but can go with the raw-string if that's preferred.
Hi all,
I found something interesting on (basic import) testing a new package of mine. Nox + pytest picked up the following error on trying to import radio-beam:
The offending line seems to be here https://github.com/radio-astro-tools/radio-beam/blob/f1111a4614464d46acfbb88373e7d4fa51324ac0/radio_beam/multiple_beams.py#L337.
I can't see any funky characters directly, but it also seems to highlight the (admittedly very unimportant) inconsistent docstring quotes. Would you be open to adopting a switch to
"""
for all docstrings following PEP-257?