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

haiiliin / abqpy / 10592615446

28 Aug 2024 08:00AM UTC coverage: 74.263% (+0.2%) from 74.078%
10592615446

push

github

haiiliin
Add future annotations imports to all files

354 of 393 new or added lines in 393 files covered. (90.08%)

37 existing lines in 37 files now uncovered.

25282 of 34044 relevant lines covered (74.26%)

0.74 hits per line

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

0.0
/src/abaqus/TableCollection/TableCollectionModel.py
NEW
1
from __future__ import annotations
×
2

UNCOV
3
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
×
4

5
from ..Model.ModelBase import ModelBase
×
6
from ..UtilityAndView.abaqusConstants import NONE, STEP_TIME
×
7
from .EventSeries import EventSeries
×
8
from .EventSeriesType import EventSeriesType
×
9

10

11
@abaqus_class_doc
×
12
class TableCollectionModel(ModelBase):
×
13
    """Abaqus creates a Model object named `Model-1` when a session is started.
14

15
    .. note::
16
        This object can be accessed by::
17

18
            mdb.models[name]
19

20
    .. versionadded:: 2020
21
        The ``TableCollectionModel`` class was added.
22
    """
23

24
    @abaqus_method_doc
×
25
    def EventSeries(
×
26
        self,
27
        name: str,
28
        createStepName: str,
29
        eventSeriesType: str,
30
        transformType: str = NONE,
31
        timeSpan: str = STEP_TIME,
32
        transformations: str = "",
33
        fileName: str = "",
34
        data: str = "",
35
    ) -> EventSeries:
36
        """This method creates an EventSeries object.
37

38
        .. note::
39
            This function can be accessed by::
40

41
                mdb.models[name].EventSeriesData
42

43
        Parameters
44
        ----------
45
        name
46
            A String specifying the repository key.
47
        createStepName
48
            A string specifying the step name.
49
        eventSeriesType
50
            A string specifying the type of event series.
51
        transformType
52
            A Symbolic constant specifying the type of transformation. Possible values are NONE,
53
            BOTH, TRANSLATE, and ROTATE. The default value is NONE.
54
        timeSpan
55
            A Symbolic constant specifying time. Possible values are TOTAL_TIME and STEP_TIME. The
56
            default value is STEP_TIME.
57
        transformations
58
            An Array specifying the required transformations over event series data.
59
        fileName
60
            A String specifying the filename.
61
        data
62
            An Array of double specifying the values of fields provided in EventSeriesType.
63

64
        Returns
65
        -------
66
        EventSeries
67
            An EventSeries object.
68

69
        Raises
70
        ------
71
        RangeError
72
        """
73
        self.eventSeriesDatas[name] = eventSeries = EventSeries(
×
74
            name,
75
            createStepName,
76
            eventSeriesType,
77
            transformType,
78
            timeSpan,
79
            transformations,
80
            fileName,
81
            data,
82
        )
83
        return eventSeries
×
84

85
    @abaqus_method_doc
×
86
    def EventSeriesType(self, name: str, createStepName: str, fields: str = "") -> EventSeriesType:
×
87
        """This method creates an EventSeriesType object.
88

89
        .. note::
90
            This function can be accessed by::
91

92
                mdb.models[name].EventSeriesType
93

94
        Parameters
95
        ----------
96
        name
97
            A String specifying the repository key.
98
        createStepName
99
            A string specifying the step name.
100
        fields
101
            A String array specifying fields. The default value is an empty array.
102

103
        Returns
104
        -------
105
        EventSeriesType
106
            A EventSeriesType object.
107

108
        Raises
109
        ------
110
        RangeError
111
        """
112
        self.eventSeriesTypes[name] = eventSeriesType = EventSeriesType(name, createStepName, fields)
×
113
        return eventSeriesType
×
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