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

haiiliin / abqpy / 5910646359

19 Aug 2023 09:25AM UTC coverage: 83.152% (-0.1%) from 83.3%
5910646359

push

github

web-flow
[typing] Fix wrong mypy typing annotations (backport #4879) (#4880)

* [typing] Fix wrong mypy typing annotations (#4879)

* Fix mypy abqpy issues

* Mypy typings

* Update typing annotations for SymbolicConstants

* Fixing typings

* Add future annotations

* Use list/dict/tuple instead of List/Dict/Tuple

* Fix Optional typings

* Add future annotations

* Update xyPlot.py

* Update .pre-commit-config.yaml

* Fix list typings for Python 3.7/3.8

* Fixing more typings

* Fix more typings

* Update conf.py

* Update .pre-commit-config.yaml

* Revert "Update conf.py"

This reverts commit e8449ae0c.

* Update conf.py

* Revert "Update conf.py"

This reverts commit 3be44d0a5.

* Docs Not -W

(cherry picked from commit d7be4b472)

# Conflicts:
#	src/abaqus/BasicGeometry/Cell.py
#	src/abaqus/BasicGeometry/CellArray.py
#	src/abaqus/BasicGeometry/Face.py
#	src/abaqus/BasicGeometry/FaceArray.py
#	src/abaqus/BoundaryCondition/BoundaryConditionModel.py
#	src/abaqus/BoundaryCondition/SubmodelBC.py
#	src/abaqus/Datum/DatumCsys.py
#	src/abaqus/DisplayGroup/LeafFromConstraintNames.py
#	src/abaqus/EngineeringFeature/DataImperfection.py
#	src/abaqus/EngineeringFeature/EngineeringFeature.py
#	src/abaqus/EngineeringFeature/EngineeringFeatureBase.py
#	src/abaqus/EngineeringFeature/FileImperfection.py
#	src/abaqus/EngineeringFeature/InputImperfection.py
#	src/abaqus/FieldReport/FieldReportSession.py
#	src/abaqus/FieldReport/writeFieldReport.py
#	src/abaqus/Interaction/ContactExp.py
#	src/abaqus/Interaction/ContactStd.py
#	src/abaqus/Interaction/ExpInitialization.py
#	src/abaqus/Interaction/FluidInflatorProperty.py
#	src/abaqus/Interaction/FluidInflatorState.py
#	src/abaqus/Interaction/InteractionContactInitializationModel.py
#	src/abaqus/Interaction/InteractionModel.py
#	src/abaqus/Interaction/InteractionPropertyModel.py
#	src/abaqus/Interaction/SurfaceCrushTriggerAssignment.py
#... (continued)

3258 of 3258 new or added lines in 713 files covered. (100.0%)

24089 of 28970 relevant lines covered (83.15%)

0.83 hits per line

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

0.0
/src/abaqus/FieldReport/writeFreeBodyReport.py
1
from __future__ import annotations
×
2

3
from abqpy.decorators import abaqus_function_doc
×
4

5
from ..Odb.Odb import Odb
×
6
from ..UtilityAndView.abaqusConstants import SPECIFY, Boolean, SymbolicConstant
×
7

8
"""This command writes a free body output report to a file. 
×
9

10
"""
11

12

13
@abaqus_function_doc
×
14
def writeFreeBodyReport(
×
15
    fileName: str,
16
    append: Boolean,
17
    step: int | None = None,
18
    frame: int | None = None,
19
    stepFrame: SymbolicConstant = SPECIFY,
20
    odb: Odb | None = None,
21
):
22
    """This method writes a FreeBody object to a user-defined ASCII file.
23

24
    .. note::
25
        This function can be accessed by::
26

27
            session.writeFreeBodyReport
28

29
    Parameters
30
    ----------
31
    fileName
32
        A String specifying the name of the file to which the free body output will be written.
33
    append
34
        A Boolean specifying whether to append the free body output to an existing file. The
35
        default value is ON.
36
    step
37
        An Int identifying the step from which to obtain values. The default value is the
38
        current step.
39
    frame
40
        An Int identifying the frame from which to obtain values. The default value is the
41
        current frame.
42
    stepFrame
43
        A SymbolicConstant indicating whether to obtain the values from the specified frame or
44
        from all active frames. Possible values are SPECIFY and ALL. The default value is
45
        SPECIFY.
46
    odb
47
        An Odb object specifying the output database from which data will be read.
48

49
    Returns
50
    -------
51
    """
52
    ...
×
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