Skip to content

Commit

Permalink
Post refactor dataframe (#296)
Browse files Browse the repository at this point in the history
* Add Mesh.node_ids

* Fix if evaluations in MechanicalSimulation._build_selection

* Return first principal component by default if None is asked (combination of all three is not possible yet)

* Add animation on deformed mesh

* Add Mesh._core_object and DataObject._core_object

* Add typehinting to Simulation.time_freq_support

* Add Simulation.set_ids

* Add Simulation.release_streams()

* Add DataFrame._core_object and Mesh._core_object

* Add Mesh.__str__

* Rename DataObject to DataFrame

* Add DataFrame.__str__ and remove DataFrame.to_pandas and to_numpy

* Allow import DataFrame from post

* Add display_width logic to the Dataframe string representation

* Finish renaming to DataFrame

* Add testing to DataFrame

* Update Mesh.__str__

* Update DataFrame signature

* Finish testing Mesh methods

* Fix Mesh.available_named_selections docstring

* Remove useless tests for Simulation.boundary_conditions and Simulation.loads as these properties are not implemented yet.

* Fix Codacy

* Add Index and MultiIndex

* Add ResultsIndex

* Update Index and MultiIndex APIs and update DataFrame API

* Update DataFrame._update_str

* Add DataFrame.select

* Update DataFrame.plot() to accept selection arguments.

* Add DataFrame.iselect

* Update Index classes and DataFrame creation. Refactor components treatment and DataFrame creation in result APIs

* Add component selection to DataFrame.select

* Add component selection to DataFrame.iselect

* Working DataFrame.__str__

* Working DataFrame.__str__

* First fix for harmonic

* Move all to using "set_id" axis instead of time.

* Fix component indexing for matrices

* Print elemental nodal results.

* Fix print elemental nodal results.

* Raise on element selection for elemental_nodal results

* Fix problem on post to not require fixing core
  • Loading branch information
PProfizi authored Mar 2, 2023
1 parent c27b8fc commit 6fba0f4
Show file tree
Hide file tree
Showing 15 changed files with 1,880 additions and 757 deletions.
3 changes: 2 additions & 1 deletion src/ansys/dpf/post/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""

import ansys.dpf.core as core
from ansys.dpf.core.common import locations
from ansys.dpf.core.common import locations # noqa: F401

try:
import importlib.metadata as importlib_metadata
Expand All @@ -23,6 +23,7 @@

from ansys.dpf.post import mesh, selection, tools
from ansys.dpf.post.common import Grouping as grouping
from ansys.dpf.post.dataframe import DataFrame # noqa: F401
from ansys.dpf.post.dpf_path import create_path_on_coordinates
from ansys.dpf.post.misc import Report
from ansys.dpf.post.post_utility import (
Expand Down
133 changes: 0 additions & 133 deletions src/ansys/dpf/post/data_object.py

This file was deleted.

Loading

0 comments on commit 6fba0f4

Please sign in to comment.