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

Add ASCII gaussian cube data GaussianCubeReader #5967

Merged
merged 91 commits into from May 5, 2024

Conversation

tkoyama010
Copy link
Member

@tkoyama010 tkoyama010 commented Apr 24, 2024

Overview

Add ASCII gaussian cube data GaussianCubeReader.

    >>> import pyvista as pv
    >>> from pyvista import examples
    >>> filename = examples.download_m4_total_density(load=False)
    >>> reader = pv.get_reader(filename)
    >>> reader.hb_scale = 1.1
    >>> reader.b_scale = 10.0
    >>> grid = reader.read()
    >>> poly = reader.read(grid=False)

    >>> pl = pv.Plotter()
    >>> outline = pl.add_mesh(grid.outline(), color="black")
    >>> volume = pl.add_volume(grid)

    >>> atoms = pl.add_mesh(poly.glyph(geom=pv.Sphere()), color="red")
    >>> bonds = pl.add_mesh(poly.tube(), color="white")
    >>> pl.show(cpos="zx")

image

Details

@pyvista-bot pyvista-bot added the enhancement Changes that enhance the library label Apr 24, 2024
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.94%. Comparing base (7971af8) to head (0033eff).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5967   +/-   ##
=======================================
  Coverage   96.94%   96.94%           
=======================================
  Files         140      140           
  Lines       24386    24409   +23     
=======================================
+ Hits        23641    23664   +23     
  Misses        745      745           

@pyvista-bot
Copy link
Contributor

@tkoyama010
Copy link
Member Author

@pyvista-bot preview

@tkoyama010
Copy link
Member Author

@pyvista-bot preview

@tkoyama010
Copy link
Member Author

@pyvista-bot preview

@tkoyama010 tkoyama010 enabled auto-merge (squash) May 3, 2024 03:28
@pyvista-bot
Copy link
Contributor

@pyvista-bot
Copy link
Contributor

@pyvista-bot
Copy link
Contributor

@tkoyama010
Copy link
Member Author

LGTM
image

@tkoyama010
Copy link
Member Author

@pyvista-bot LGTM

pyvista-bot
pyvista-bot previously approved these changes May 5, 2024
Copy link
Contributor

@pyvista-bot pyvista-bot left a comment

Choose a reason for hiding this comment

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

✅ Approving this PR because tkoyama010 said so in here :shipit:

@tkoyama010
Copy link
Member Author

pre-commit.ci autofix

@tkoyama010
Copy link
Member Author

@pyvista-bot LGTM

Copy link
Contributor

@pyvista-bot pyvista-bot left a comment

Choose a reason for hiding this comment

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

✅ Approving this PR because tkoyama010 said so in here :shipit:

@tkoyama010 tkoyama010 merged commit 1b7ded5 into main May 5, 2024
30 checks passed
@tkoyama010 tkoyama010 deleted the feat/add-gaussian-cube-reader branch May 5, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes that enhance the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants