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

tolist() implementation #581

Merged
merged 14 commits into from
Jun 16, 2020
Merged

tolist() implementation #581

merged 14 commits into from
Jun 16, 2020

Conversation

mtar
Copy link
Collaborator

@mtar mtar commented Jun 4, 2020

Description

Issue/s resolved: #579

Implentation of tolist() method for DNDarray class. Returns a copy of the DNDarray as a python list.

Changes proposed:

  • add tolist method in dndarray

Type of change

  • new feature

Due Diligence

  • All split configurations tested
  • Multiple dtypes tested in relevant functions
  • Documentation updated (if needed)
  • Updated changelog.md under the title "Pending Additions"

Does this change modify the behaviour of other functions? If so, which?

no

@codecov
Copy link

codecov bot commented Jun 4, 2020

Codecov Report

Merging #581 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #581      +/-   ##
==========================================
- Coverage   96.49%   96.48%   -0.01%     
==========================================
  Files          75       75              
  Lines       15249    15233      -16     
==========================================
- Hits        14714    14698      -16     
  Misses        535      535              
Impacted Files Coverage Δ
heat/core/dndarray.py 96.93% <100.00%> (+0.02%) ⬆️
heat/core/tests/test_dndarray.py 99.38% <100.00%> (+<0.01%) ⬆️
heat/core/trigonometrics.py 94.73% <0.00%> (-0.72%) ⬇️
heat/core/tests/test_trigonometrics.py 98.42% <0.00%> (-0.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 547d33f...fd9210b. Read the comment docs.

@mtar mtar requested review from coquelin77 and ClaudiaComito June 9, 2020 07:21
@@ -3479,6 +3479,33 @@ def tanh(self, out=None):
"""
return trigonometrics.tanh(self, out)

def tolist(self):
Copy link
Member

Choose a reason for hiding this comment

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

Return type annotation, remove the return category

heat/core/dndarray.py Show resolved Hide resolved
@Markus-Goetz Markus-Goetz merged commit 4b00106 into master Jun 16, 2020
@Markus-Goetz Markus-Goetz deleted the enhancement/579-tolist branch June 16, 2020 11:10
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.

implement tolist
2 participants