File: 1085689-python-warnings.patch

package info (click to toggle)
r-bioc-mofa 1.6.1%2Bdfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,884 kB
  • sloc: python: 1,911; makefile: 12
file content (50 lines) | stat: -rw-r--r-- 1,613 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Description: Use raw strings to avoid SyntaxWarnings

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1085689
Forwarded: no
(upstream is abandoned)

--- a/mofapy/core/entry_point.py
+++ b/mofapy/core/entry_point.py
@@ -38,7 +38,7 @@ class entry_point():
   def print_banner(self):
     """ Method to print the MOFA banner """
 
-    banner = """
+    banner = r"""
     ###########################################################
     ###                 __  __  ___  _____ _                ### 
     ###                |  \/  |/ _ \|  ___/ \               ### 
@@ -47,7 +47,8 @@ class entry_point():
     ###                |_|  |_|\___/|_|/_/   \_\            ### 
     ###                                                     ###
     ########################################################### 
-   \n 
+   
+   
     """
 
     print(banner)
--- a/mofapy/core/nongaussian_nodes.py
+++ b/mofapy/core/nongaussian_nodes.py
@@ -141,7 +141,7 @@ class PseudoY_Seeger(PseudoY):
         return lb
 
 class Poisson_PseudoY_Seeger(PseudoY_Seeger):
-    """
+    r"""
     Class for a Poisson pseudodata node.
     Likelihood:
         p(y|x) \prop gamma(x) * e^{-gamma(x)}  (1)
--- a/mofapy/core/utils.py
+++ b/mofapy/core/utils.py
@@ -175,7 +175,7 @@ def qcData(data):
     return data
 
 def dotd(A, B, out=None):
-    """Diagonal of :math:`\mathrm A\mathrm B^\intercal`.
+    r"""Diagonal of :math:`\mathrm A\mathrm B^\intercal`.
     If ``A`` is :math:`n\times p` and ``B`` is :math:`p\times n`, it is done in :math:`O(pn)`.
     Args:
         A (array_like): Left matrix.