• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haiiliin / abqpy / 6433593370

06 Oct 2023 03:30PM UTC coverage: 73.825% (-9.3%) from 83.134%
6433593370

push

github

web-flow
[feature] Add GUI Toolkit Commands (backport #5260) (#5285)

[feature] Add GUI Toolkit Commands (#5260)

* Markdown

* Delete

* Add AFXApp and AFXBoolKeyword

* Delete

* Update headings

* Create parse.py

* Update parse.py

* Unicode Spaces

* Update .pre-commit-config.yaml

* Update md types

* Update Kernel plug-in registration commands.md

* Generated python stubs

* Add class inheritance

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Revert "Update .pre-commit-config.yaml"

This reverts commit 9d3aef3cc.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix mypy errors

* Delete parse.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix return types and imports

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update AFXColumnItems.md

* Update abaqusGui.py

* Add class/global flags

* Delete flags.py

* Fix flags

* Fix

* Skip mypy

* Update abaqusGui.py

* Update constants.py

* Create kernelAccess.py

* Add plugin docs

* Revert changes by docformatter

* Delete markdown files

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit a65ff5df8)

Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>

3661 of 3661 new or added lines in 151 files covered. (100.0%)

24137 of 32695 relevant lines covered (73.82%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/abaqus/PlugInRegistration/AFXSequenceString.py
1
from __future__ import annotations
×
2

3

4
class AFXSequenceString:
×
5
    """This class supports parsing and modification of strings containing sequences of elements separated with
6
    some separator character."""
7

8
    def __init__(self):
×
9
        """Undefined copy constructor (this class has no copy semantics)."""
10

11
    def forceNumElements(self, num: int, fill: str):
×
12
        """Forces the content string to contain a tuple with the given number of elements.
13

14
        Parameters
15
        ----------
16
        num : int
17
            New number of elements.
18
        fill : str
19
            String to insert in empty spaces.
20
        """
21

22
    def getContentString(self):
×
23
        """Returns a string containing values of the sequence elements.
24

25
        Reimplemented in AFX2DArrayConstString.
26
        """
27

28
    def getElementSeparator(self):
×
29
        """Returns the element separator character."""
30

31
    def getLength(self, index: int):
×
32
        """Returns the length in characters of a sequence element.
33

34
        Parameters
35
        ----------
36
        index : int
37
            Element index.
38
        """
39

40
    def getNumElements(self):
×
41
        """Returns the number of elements in this sequence."""
42

43
    def getPosition(self, index: int):
×
44
        """Returns the position in the content string of the beginning character of the sequence element.
45

46
        Parameters
47
        ----------
48
        index : int
49
            Element index.
50
        """
51

52
    def getValue(self, index: int):
×
53
        """Returns the value of a sequence element.
54

55
        Parameters
56
        ----------
57
        index : int
58
            Element index.
59
        """
60

61
    def insert(self, index: int, numElements: int, val: str):
×
62
        """Inserts many copies of an element.
63

64
        Parameters
65
        ----------
66
        index : int
67
            Element index at which inserting begins.
68
        numElements : int
69
            Number of elements to insert.
70
        val : str
71
            Value for the new elements.
72
        """
73

74
    def isValidSequence(self):
×
75
        """Returns True if this object contains a valid sequence."""
76

77
    def remove(self, index: int, numElements: int):
×
78
        """Removes elements starting at the given index.
79

80
        Parameters
81
        ----------
82
        index : int
83
            Element index at which removal begins.
84
        numElements : int
85
            Number of elements to remove.
86
        """
87

88
    def setContentString(self, seqstr: str):
×
89
        """Resets all values for the sequence elements.
90

91
        Parameters
92
        ----------
93
        seqstr : str
94
            Sequence string with new values.
95
        """
96

97
    def setElementSeparator(self, sep: str):
×
98
        """Sets the element separator character.
99

100
        Parameters
101
        ----------
102
        sep : str
103
            Separator character.
104
        """
105

106
    def setLength(self, index: int, length: int):
×
107
        """Sets the length of the sequence element.
108

109
        Parameters
110
        ----------
111
        index : int
112
            Element index.
113
        length : int
114
            New length (in characters).
115
        """
116

117
    def setPosition(self, index: int, position: int):
×
118
        """Sets the position of the sequence element.
119

120
        Parameters
121
        ----------
122
        index : int
123
            Element index.
124
        position : int
125
            New position within the string.
126
        """
127

128
    def setValue(self, index: int, value: str, replaceAll: bool = False):
×
129
        """Sets the value of a sequence element.
130

131
        Parameters
132
        ----------
133
        index : int
134
            Element index.
135
        value : str
136
            New value.
137
        replaceAll : bool
138
            If False (default), leading and trailing spaces will be preserved, otherwise, all space between separators will be replaced with the new value.
139
        """
140

141
    def trimWhiteSpace(self, index: int):
×
142
        """Adjusts the position and length of the element to trim leading and trailing white spaces.
143

144
        Parameters
145
        ----------
146
        index : int
147
            Element index.
148
        """
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc