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

haiiliin / abqpy / 10592831335

28 Aug 2024 08:14AM UTC coverage: 74.12% (+0.2%) from 73.933%
10592831335

push

github

haiiliin
Add future annotations imports for all files

339 of 375 new or added lines in 375 files covered. (90.4%)

34 existing lines in 34 files now uncovered.

24507 of 33064 relevant lines covered (74.12%)

0.74 hits per line

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

0.0
/src/abaqus/UtilityAndView/Repository.py
NEW
1
from __future__ import annotations
×
2

UNCOV
3
from typing import Dict
×
4

5
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
×
6

7

8
@abaqus_class_doc
×
9
class Repository(Dict):
×
10
    """Repositories are containers that store a particular type of object; for example, the steps repository
11
    contains all the steps defined in the model. An Abaqus Scripting Interface Repository maps a key to a value.
12
    The key is usually a String, and the value is any Python object, usually an Abaqus object. A repository is
13
    similar to a Python dictionary; however, only a constructor can add an object to a repository. In addition,
14
    all of the objects in a repository are of the same base type. For more information, see Repositories. A
15
    Repository has no constructor. Abaqus creates empty repositories when you import a module. For example,
16
    Abaqus creates an empty parts repository when you import the part module. The following methods of the
17
    Repository object are standard Python dictionary methods and are not described here:
18

19
    The Repository object is derived from the dict object.
20
    - has_key
21
    - items
22
    - keys
23
    - values
24
    -
25
    [changeKey(...)](https://help.3ds.com/2022/english/DSSIMULIA_Established/SIMACAEKERRefMap/simaker-c-utlrepositorypyc.htm?ContextScope=all#simaker-utlrepositorychangekeypyc)
26
    """
27

28
    @abaqus_method_doc
×
29
    def changeKey(self, fromName: str, toName: str):
×
30
        """This method changes the name of a key in a repository and the **name** member of the value object.
31

32
        Parameters
33
        ----------
34
        fromName
35
            A String specifying the old name of the repository key.
36
        toName
37
            A String specifying the new name of the repository key.
38
        """
39
        ...
×
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