Skip to content

Commit a42a9f7

Browse files
committed
ORG-32418
1 parent 20a49e2 commit a42a9f7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/originpro/analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def set_param(self, p, val):
170170
self._set(p, val)
171171

172172
def set_lbound(self, p, ctrl='>', val=None):
173-
"""
173+
r"""
174174
set parameter lower bounds in NLFit.
175175
Parameters:
176176
p(str): name of a parameter
@@ -193,7 +193,7 @@ def set_lbound(self, p, ctrl='>', val=None):
193193
return self._set_bound('l', p, ctrl, val, '>', '>=')
194194

195195
def set_ubound(self, p, ctrl='<', val=None):
196-
"""
196+
r"""
197197
set parameter upper bounds in NLFit.
198198
Parameters:
199199
p(str): name of a parameter

src/originpro/project.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66
# pylint: disable=C0301,C0103,W0622
77
from typing import Union, List
8+
from collections.abc import Generator
89
from .config import po, oext
910
from .utils import get_file_ext, active_obj, path, origin_class, org_ver
1011
from .worksheet import WSheet, WBook
@@ -413,13 +414,13 @@ def graph_list(select='f', inc_embed=False) -> List[GPage]:
413414

414415
return glist
415416

416-
def pages(type_='') -> Union[WBook, MBook, GPage, IPage]:
417+
def pages(type_='') -> Generator[WBook, MBook, GPage, IPage]:
417418
"""
418419
All pages in project.
419420
Parameters:
420421
type_ (str): Page type, can be 'w', 'm', 'g', 'i'
421422
Returns:
422-
Page Objects
423+
Page Objects Generator
423424
Examples:
424425
wps=op.pages('w')
425426
w1=next(wps)

0 commit comments

Comments
 (0)