Submitting author: @connorourke (Conn O'Rourke)
Repository: https://github.com/connorourke/crystal_torture
Version: v.1.0.08
Editor: @katyhuff
Reviewers: @mkhorton, @katyhuff
Archive: 10.5281/zenodo.3254426
Status badge code:
HTML: <a href="http://joss.theoj.org/papers/c3d8e702ecfee04f16a0ad6f14d96419"><img src="http://joss.theoj.org/papers/c3d8e702ecfee04f16a0ad6f14d96419/status.svg"></a>
Markdown: [](http://joss.theoj.org/papers/c3d8e702ecfee04f16a0ad6f14d96419)
Reviewers and authors:
Please avoid lengthy details of difficulties in the review thread. Instead, please create a new issue in the target repository and link to those issues (especially acceptance-blockers) in the review thread below. (For completists: if the target issue tracker is also on GitHub, linking the review thread in the issue or vice versa will create corresponding breadcrumb trails in the link target.)
@vahtras & @mkhorton, please carry out your review in this issue by updating the checklist below. If you cannot edit the checklist please:
The reviewer guidelines are available here: https://joss.theoj.org/about#reviewer_guidelines. Any questions/concerns please let @katyhuff know.
✨ Please try and complete your review in the next two weeks ✨
paper.md
file include a list of authors with their affiliations?Hello human, I'm @whedon, a robot that can help you with some common editorial tasks. @vahtras, it looks like you're currently assigned as the reviewer for this paper :tada:.
:star: Important :star:
If you haven't already, you should seriously consider unsubscribing from GitHub notifications for this (https://github.com/openjournals/joss-reviews) repository. As a reviewer, you're probably currently watching this repository which means for GitHub's default behaviour you will receive notifications (emails) for all reviews 😿
To fix this do the following two things:
For a list of things I can do to help you, just type:
@whedon commands
Attempting PDF compilation. Reticulating splines etc...
@vahtras This submission is waiting on your review. What is your status?
@mkhorton - It looks like this review may have stalled mid-stream. Are there installation issues holding up progress? Thank you!
Hi @katyhuff, thanks for following up/for the reminder! There were installation and test issues (see https://github.com/connorourke/crystal_torture/issues/3 and https://github.com/connorourke/crystal_torture/issues/4) but these have been resolved and I am now continuing with the review.
@connorourke, just a small note that your PyPI formatting doesn't seem to be working correctly, see here. @katyhuff, regarding the "version number" list item, does JOSS require a formal GitHub release that matches the PyPI version, or is this simply a check to make sure that the version being reviewed from the repository matches the version in PyPI?
@connorourke the only other checklist item missing is a guideline for contributions.
From a functionality point of view, I'm happy to recommend this software, and all functionality seems to be present and correct. I think this will be a very useful tool for the community (and, indeed, having studied percolation myself in the past, wish I had had this tool available!)
From a code point of view, I would have a few recommendations that, under my understanding of the JOSS guidelines, have no bearing on the review but I include here just as suggestions:
Code generally looks to be of a good quality, but is not PEP8 compliant. I would recommend passing it through a tool such as Black to re-format appropriately.
The correct usage of this code requires explicitly running graph.torture()
before other commands such as graph.minimal_clusters
can be run. I would strongly recommend adding appropriate error messages so that if a user tries to run graph.minimal_clusters
before graph.torture()
it will give a hint that they need to do this (currently it gives 'NoneType' object is not iterable
).
The paper/examples would be greatly improved if they generated a known-true example from literature. From my understanding, the output will be very dependent on the size of supercell used, and extrapolation of multiple supercell values will be needed to get correct values for an infinite cell? This has no bearing on this code itself which, as far as I can tell, correctly calculates clusters and tortuosity for the cells provided, but is relevant for the broader application of this code.
There is a concept in pymatgen of transformations including, for example, an OrderDisorderTransformation to create ordered (not random) supercells. The more idiomatic (from a pymatgen point of view) way to construct the supercell for your spinel example would be to first create a disordered structure, i.e. to replace Mg with {'Mg':0.9, 'Li': 0.05, 'Al': 0.05}
. To create a random supercell would then require creating a new RandomOrderDisorderTransformation
class or similar (something pymatgen is definitely in need of). I only mention this to say that using site property labels to perform the doping is perfectly fine, but there might be a better/more idiomatic way of doing it that would also be useful for the broader community of people who use pymatgen.
A cut-off radius approach for calculating the graph is not sufficient for all structures. There are always edge cases; this is especially true for, for example, the output of MD simulations. There's a whole collection of different NearNeighbor
classes in pymatgen that determine whether two sites should be 'connected', and also a StructureGraph
class to construct graphs using these strategies. However, in your case, I think the use of cut-off radius makes sense because it's fast (the pymatgen classes NearNeighbor classes are probably too slow for your use case). I only mention this point just because I've encountered issues myself before related to cut-off radii approaches that ultimately led to incorrect analysis outputs.
In summary however, I'm very excited about this code, and really look forward to see how it develops going forwards. I will add an additional comment to this thread to formally complete the review once all checklist items are completed.
@mkhorton,
Thanks for taking the time to do such a thorough review of the code, and for the useful suggestions. I'll make the changes you suggested, sort out the PyPi formatting issue and cross off the final checklist items asap.
I'd agree that the examples would benefit from a known-true example being included - and you are right that the results are dependent upon the size of supercell being used. We are currently preparing a publication which uses the code, and this is a point which we discuss within it - once it is published we will update the examples in the repo accordingly.
Thanks!
Great! Looking forward to seeing it :)
Just to re-iterate, the additional comments don't have a bearing on my JOSS review (as I understand the JOSS guidelines). It's really the user's responsibility if they correctly extrapolate with supercell size etc. As long as the code itself works, is tested, documented, etc. and fulfills the other JOSS criteria, which it looks like it does, then I'm happy to recommend publication. The known-true example would be good however.
@mkhorton - I've added some brief community guidelines (as well as sorting out the other issues you pointed out. Thanks for the tip on Black
- found that very useful)
@katyhuff @vahtras,
I was wondering if you guys have any update on the status of this review?
Thanks!
Thank you for your patience @connorourke .
Reviewer @vahtras : Can you please confirm that you still intend to conduct this review?
I will begin a detailed review, just in case. It should go quickly as I've already read the paper and looked over the repository.
paper.md
file include a list of authors with their affiliations?@whedon generate pdf
Attempting PDF compilation. Reticulating splines etc...
@whedon check references
Attempting to check references...
```Reference check summary:
OK DOIs
MISSING DOIs
INVALID DOIs
@connorourke I apologize again for the delay in this process. In my review I have found a couple of issues:
Once these two issues are solve, we can move forward with this submission. Thank you for your patience.
@whedon remove @vahtras as reviewer
OK, @vahtras is no longer a reviewer
@whedon add @katyhuff as reviewer
OK, @katyhuff is now a reviewer
👋 @connorourke - Any news on the needed changes?
Thanks for the reminder @danielskatz. Yes - I'll make the required changes toward the end of this week.
@katyhuff @danielskatz - the latest commit should address the paper changes requested in https://github.com/openjournals/joss-reviews/issues/1306#issuecomment-498647832
@whedon generate pdf
Attempting PDF compilation. Reticulating splines etc...
@whedon check references
Attempting to check references...
```Reference check summary:
OK DOIs
MISSING DOIs
INVALID DOIs
Thank you @mkhorton for your review -- we couldn't do this without you.
Thank you @connorourke for a strong submission and for engaging actively in the review process! I have looked over the paper, double-checked all the DOI links, and have conducted a high-level review of the code itself. Everything looks ship-shape to me. At this point, please double-check the paper yourself, review any lingering details in your code/readme/etc., and then make an archive of the reviewed software in Zenodo/figshare/other service. Please be sure that the DOI metadata (title, authors, etc.) matches this JOSS submission. Once that's complete, please update this thread with the DOI of the archive, and I'll move forward with accepting the submission. Until then, now is your moment for final touchups!
I've archived the code in Zenodo - DOI: 10.5281/zenodo.3253650
Thanks for taking the time to review @katyhuff & @mkhorton.
@connorourke No problem, glad to see this code available to use!
@whedon set 10.5281/zenodo.3253650 as archive
OK. 10.5281/zenodo.3253650 is the archive.
@connorourke : The metadata in the DOI must match the JOSS metadata. Currently, the title of your DOI is "connorourke/crystal_torture: JOSS reviewed release" and the JOSS submission title is "crystal-torture: A crystal tortuosity module". You should be able to edit the zenodo metadata.. Could you please be sure that the DOI metadata (title, authors, etc.) matches this JOSS submission and let me know when that's complete?
Hi @katyhuff - the metadata should match now. Thanks
@connorourke I see there's a new version, and the subtitle has changed in that version, but the title seems to have remained the same. This is clear from the heading on the landing page as well as the title in the bibtex export.
@misc{conn_o_rourke_2019_3254426,
author = {Conn O'Rourke and
Benjamin Morgan},
title = {connorourke/crystal_torture: JOSS review release},
month = jun,
year = 2019,
doi = {10.5281/zenodo.3254426},
url = {https://doi.org/10.5281/zenodo.3254426}
}
Hi @katyhuff - metadata should now be correct on version:
https://doi.org/10.5281/zenodo.3254426
Let me know if there any more issues.
@whedon set 10.5281/zenodo.3254426 as archive
OK. 10.5281/zenodo.3254426 is the archive.
@connorourke : Is v1.0.08 the desired version?
Hi @katyhuff, yes v1.0.08 is the correct version. There have been a few changes from the review, so the version has bumped.
Thanks
@whedon set v.1.0.08 as version
OK. v.1.0.08 is the version.
@whedon accept
Attempting dry run of processing paper acceptance...
```Reference check summary:
OK DOIs
MISSING DOIs
INVALID DOIs
PDF failed to compile for issue #1306 with the following error:
sh: 54: Syntax error: newline unexpected
Looks like we failed to compile the Crossref XML
@openjournals/jose-eics This is ready to accept, but I'm not sure what this crossref xml error is about ^^ .
Hmm I can't see any issues with the paper that are obvious to me—it compiled ok a few days ago. @arfon ?
@whedon generate pdf
Attempting PDF compilation. Reticulating splines etc...
Ah, so it appears the issue is just with CrossRef.
@whedon accept
Attempting dry run of processing paper acceptance...
```Reference check summary:
OK DOIs
MISSING DOIs
INVALID DOIs
PDF failed to compile for issue #1306 with the following error:
sh: 54: Syntax error: newline unexpected
Looks like we failed to compile the Crossref XML
Just a heads up that I'm working on this. It looks like Crossref is having some issues right now and I'm processing the acceptance manually.
@kyleniemeyer - this looks to be fixed now.
@mkhorton, @katyhuff - many thanks for your reviews and to @katyhuff for editing this one too ✨
@connorourke - your paper is now accepted into JOSS :zap::rocket::boom:
:tada::tada::tada: Congratulations on your paper acceptance! :tada::tada::tada:
If you would like to include a link to your paper from your README use the following code snippets:
Markdown:
[](https://doi.org/10.21105/joss.01306)
HTML:
<a style="border-width:0" href="https://doi.org/10.21105/joss.01306">
<img src="http://joss.theoj.org/papers/10.21105/joss.01306/status.svg" alt="DOI badge" >
</a>
reStructuredText:
.. image:: http://joss.theoj.org/papers/10.21105/joss.01306/status.svg
:target: https://doi.org/10.21105/joss.01306
This is how it will look in your documentation:
We need your help!
Journal of Open Source Software is a community-run journal and relies upon volunteer effort. If you'd like to support us please consider doing either one (or both) of the the following:
Most helpful comment
@kyleniemeyer - this looks to be fixed now.
@mkhorton, @katyhuff - many thanks for your reviews and to @katyhuff for editing this one too ✨
@connorourke - your paper is now accepted into JOSS :zap::rocket::boom: