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 function to convert xmls to gsds #20

Merged
merged 5 commits into from
Nov 12, 2021

Conversation

jennyfothergill
Copy link
Member

This function is useful for looking at our old data. It requires adding hoomd to environment.

@codecov
Copy link

codecov bot commented Nov 2, 2021

Codecov Report

Merging #20 (2500ce4) into master (1e3e7d8) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   99.43%   99.48%   +0.04%     
==========================================
  Files           5        5              
  Lines         178      194      +16     
==========================================
+ Hits          177      193      +16     
  Misses          1        1              
Impacted Files Coverage Δ
cmeutils/gsd_utils.py 100.00% <100.00%> (ø)

```
gsdfile = "../cmeutils/cmeutils/tests/assets/p3ht.gsd"
xmlfile = "p3ht.xml"
hoomd.context.initialize("")
system = hoomd.init.read_gsd(gsdfile, restart=gsdfile)
hoomd.deprecated.dump.xml(
    filename = xmlfile,
    period = None,
    group = hoomd.group.all(),
    all=True
)
```
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.

1 participant