Skip to content

Issue218 plasma2d extraction iter#280

Merged
Didou09 merged 19 commits intodevelfrom
Issue218_Plasma2DExtractionITER
Nov 26, 2019
Merged

Issue218 plasma2d extraction iter#280
Didou09 merged 19 commits intodevelfrom
Issue218_Plasma2DExtractionITER

Conversation

@Didou09
Copy link
Copy Markdown
Member

@Didou09 Didou09 commented Nov 25, 2019

Main changes:

  • Warnings when loading data from MultiIDSLoader fails for some data (in particular when using method to_Plasma2D()) is now just as informative but more concise and easier to read.

  • method MultiIDSLoader.to_Plasma2D() now more robust versus one-time-step-only data

  • Introduced the basics for handling of rectangular meshes (R, Z) for interpolation via Plasma2D (nearest interpolation only)

  • User has to define R and Z grid as '2dmeshR' and '2dmeshZ'

  • Minor bug fixes in imas2tofu introduced by latest changes, detected when testing by hand, fixed

Issues:

Fixes, in devel, issue #218

VEZINET Didier added 4 commits November 25, 2019 10:52
…up() for dradius, to handle cases with one time step only
…traction of 2d rectagular grid is not operational yet
…D() to handle 'rect' meshes (nearest interpolation)
@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Nov 25, 2019

Hello @Didou09! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-11-26 15:41:41 UTC

@Didou09
Copy link
Copy Markdown
Member Author

Didou09 commented Nov 26, 2019

Ready for merging when reviewed @lasofivec :-)

@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 26, 2019

Codecov Report

Merging #280 into devel will decrease coverage by 0.35%.
The diff coverage is 0.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel     #280      +/-   ##
==========================================
- Coverage   41.46%   41.11%   -0.36%     
==========================================
  Files          79       79              
  Lines       23229    23432     +203     
==========================================
  Hits         9633     9633              
- Misses      13596    13799     +203
Impacted Files Coverage Δ
tofu/imas2tofu/_core.py 0.71% <0%> (-0.04%) ⬇️
tofu/geom/_core.py 63.4% <0%> (-0.05%) ⬇️
tofu/data/_comp.py 20.39% <0%> (ø) ⬆️
tofu/data/_core.py 39.22% <0%> (-1.88%) ⬇️
tofu/version.py 100% <100%> (ø) ⬆️

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 18aae81...58bd9c4. Read the comment docs.

Comment thread tofu/data/_core.py Outdated
msg += " - faces.shape: %s\n"%str(dd[dk][k0]['faces'].shape)
msg += " - unique faces.shape: %s"%str(facesu.shape)
raise Exception(msg)
assert v0['type'] in ['rect', 'tri', 'quadtri'], v0['type']
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I thought you wanted to get rid of "assert" statements?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You're right, I replace it with if / raise

Comment thread tofu/imas2tofu/_core.py
except Exception as err:
msg = "Could not get data from %s"%ids
warnings.warn(msg)
if anyerror:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

shouldn't anyerror should be set to True if an Exception was found aswell ?

@Didou09 Didou09 merged commit 1bd7a6d into devel Nov 26, 2019
@Didou09 Didou09 deleted the Issue218_Plasma2DExtractionITER branch November 26, 2019 15:56
Copy link
Copy Markdown
Collaborator

@lasofivec lasofivec left a comment

Choose a reason for hiding this comment

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

Perfect !

@Didou09 Didou09 mentioned this pull request Jan 30, 2020
@Didou09 Didou09 mentioned this pull request Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants