Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add some missing members #5903

Merged
merged 25 commits into from
Jan 17, 2025

Conversation

Diogo-Rossi
Copy link
Collaborator

@Diogo-Rossi Diogo-Rossi commented Jan 13, 2025

Description

5 missing members are added in this PR

  • Session.View
  • abaqus.version
  • jobMessage (a basic module)
  • HEALER_PHASE (Abaqus constant)
  • FieldOutput.bulkDataBlocks

Session.View

Current situation

image

Intelissense states:

image

But one can normally access this method in Abaqus/CAE

>>> session.View.__doc__
'Session.View(name, fieldOfViewAngle, nearPlane, farPlaneMode, farPlane, width, height, projection, cameraPosition, cameraUpVector, cameraTarget, viewOffsetX, viewOffsetY, autoFit <, movieMode>) -> This method creates a \n                     View\n                     object.\n                     All dimensions and coordinates are specified in the model coordinate system.This method cannot be used to create a \n
                  View\n                           for a \n
               Layer\n                           object.\n

abaqus.version

Used to check abaqus version

abq2021 cae noGUI
Running: /.../Abaqus/2021/SIMULIA/EstProducts/2021/linux_a64/code/bin/ABQcaeK
Abaqus License Manager checked out the following license:
"cae" from Flexnet server XXXXXX
<X out of XXX licenses remain available>.
Python 2.7.15 (default, Feb  8 2020, 04:11:18)
[GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
>>> import abaqus
>>> abaqus.version
'2021'
>>>
abq2022 cae noGUI
Running: /.../Abaqus/2022/SIMULIA/EstProducts/2022/linux_a64/code/bin/ABQcaeK
Arguments: ['-cae', '-noGUI', '-lmlog', 'ON', '-tmpdir', '/tmp']
"cae" from Flexnet server XXXXXX
<X out of XXX licenses remain available>.
Python 2.7.15 (default, Jul 17 2021, 05:08:58)
[GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
>>> import abaqus
>>> abaqus.version
'2022'
>>>

jobMessage (a basic module)

Can be checked in the example simpleMonitor.py
Got with the command: abaqus fetch job=simpleMonitor

HEALER_PHASE (Abaqus constant)

It is inside jobMessage module

dir(jobMessage)

FieldOutput.bulkDataBlocks

Accessed by
odb.steps()[name].frames(i).fieldOutputs()[name].bulkDataBlocks[i]

@Diogo-Rossi
Copy link
Collaborator Author

Back ports must be done to adjust the abaqus.version constant

@Diogo-Rossi Diogo-Rossi force-pushed the add-some-missing-members branch from d2a1684 to cc727c8 Compare January 17, 2025 03:42
@Diogo-Rossi
Copy link
Collaborator Author

I reverted also the changed of #5904 to make tests pass

It seems a lot of tools doesn't support yet the new PEP 735, including pip (used by github) and read-the-docs

@haiiliin
Copy link
Owner

I am using PDM to manage dependencies in #5924

Copy link
Contributor

mergify bot commented Jan 17, 2025

@Diogo-Rossi this pull request is now in conflicts 😩

@mergify mergify bot added the conflicts Conflict with its base branch label Jan 17, 2025
@haiiliin haiiliin added the backport-to-all Backport to all branches label Jan 17, 2025
@haiiliin haiiliin merged commit 0175c73 into haiiliin:2025 Jan 17, 2025
8 checks passed
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot pushed a commit that referenced this pull request Jan 17, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hailin Wang <wanghailin@tongji.edu.cn>
Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
(cherry picked from commit 0175c73)
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
mergify bot added a commit that referenced this pull request Jan 17, 2025
Co-authored-by: Diogo <rossi.diogo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-all Backport to all branches feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants