From df872eecf1e2fe06411b1e05a6bd1a7d6157d539 Mon Sep 17 00:00:00 2001 From: pradal Date: Tue, 9 Dec 2025 14:40:40 +0100 Subject: [PATCH] Fix syntax warnings due to backslash chars --- src/openalea/hydroroot/conductance.py | 8 ++++---- src/openalea/hydroroot/main.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openalea/hydroroot/conductance.py b/src/openalea/hydroroot/conductance.py index b370c923..3b58729a 100644 --- a/src/openalea/hydroroot/conductance.py +++ b/src/openalea/hydroroot/conductance.py @@ -10,15 +10,15 @@ from openalea.hydroroot.length import fit_law def setting_k0_according_to_order(g, k0_pr, k0_lr): - """ + r""" Set uniform radial conductivity to roots according to their order: - to k0_pr for the primary root (order == 0), - to k0_lr otherwise :param g: (MTG) - :param k0_pr: (float) - radial donductivity (:math:`10^{-9}\\ m.MPa^{-1}.s^{-1}`) for the primary root - :param k0_lr: (float) - radial donductivity (:math:`10^{-9}\\ m.MPa^{-1}.s^{-1}`) for root of order > 0 + :param k0_pr: (float) - radial donductivity (:math:`10^{-9}\ m.MPa^{-1}.s^{-1}`) for the primary root + :param k0_lr: (float) - radial donductivity (:math:`10^{-9}\ m.MPa^{-1}.s^{-1}`) for root of order > 0 :returns: - g: (MTG) - the root architecture with k0_pr and k0_lr set """ @@ -167,7 +167,7 @@ def compute_k(g, k0 = 300.): - if k0 is a float: use this value in the calculation :param g: (MTG) - :param k0: (float or string) - "k0" or the radial conductivity in :math:`10^{-9}\ m.s^{-1}.MPa^{-1}` (Default value = 300.) + :param k0: (float or string) - "k0" or the radial conductivity in :math:`10^{-9}\\ m.s^{-1}.MPa^{-1}` (Default value = 300.) """ #print 'entering radial k fitting' diff --git a/src/openalea/hydroroot/main.py b/src/openalea/hydroroot/main.py index 6090bbbd..fbc4ce21 100644 --- a/src/openalea/hydroroot/main.py +++ b/src/openalea/hydroroot/main.py @@ -92,7 +92,7 @@ def hydroroot_flow( axial_conductivity_data=None, radial_conductivity_data=None, ): - """Flux and equivalent conductance calculation + r"""Flux and equivalent conductance calculation :param g: MTG :param segment_length: (float) - not used vertices length in hydroroot in m (Default value = 1.0e-4) #TODO not used delete it