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

Merge/0.5.dev2 code fixes to remove warnings #311

Merged
merged 7 commits into from
Jul 19, 2022

Conversation

cbellot000
Copy link
Contributor

No description provided.

@cbellot000 cbellot000 marked this pull request as draft July 18, 2022 14:23
@cbellot000 cbellot000 requested a review from PProfizi July 18, 2022 14:23
@@ -37,59 +24,6 @@ def module_exists(module_name):
return module_name in (name for loader, name, ispkg in iter_modules())


class Report(ScoobyReport):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbellot000 Why remove scooby exactly? It should be replaced with the pyansys reporting tool. It was not a priority due to Scooby already being there but I guess now it is something to remember to add.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PProfizi scooby was holding a reference on some of our object (in my case the issue was with a global variable named CLIENT_CONFIGURATION which is a DataTree, the reference on it prevented it from being properly destructed)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PProfizi do you think this report was used anywhere?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbellot000 oh okay, then I guess it is okay. We needed to change to the pyansys report tool anyway.

ansys/dpf/core/data_tree.py Outdated Show resolved Hide resolved
@@ -43,9 +44,9 @@ class DataTree:

>>> from ansys.dpf import core as dpf
>>> data_tree = dpf.DataTree({"num_entities":3, "list_of_raws":[1,2,3,4], "name": "George"})
>>> data_tree.get_as("name", dpf.types.string)
>>> data_tree.get_as("name",dpf.types.string)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbellot000 I sphinx saying we should remove those spaces? I think what we end with is not PEP, we might actually want to look into the sphinx config.

ansys/dpf/core/dpf_array.py Show resolved Hide resolved
ansys/dpf/core/server_types.py Show resolved Hide resolved
@cbellot000 cbellot000 changed the title Merge/0.5.dev2 code fixes Merge/0.5.dev2 code fixes to remove warnings Jul 19, 2022
@cbellot000 cbellot000 marked this pull request as ready for review July 19, 2022 07:38
@cbellot000 cbellot000 merged commit 8e7334f into merge/0.5.dev2 Jul 19, 2022
@cbellot000 cbellot000 deleted the merge/0.5.dev2_code_fixes branch July 19, 2022 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants