-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
114 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. _acknowledge: | ||
|
||
================== | ||
How to cite signac | ||
================== | ||
|
||
Please acknowledge the use of this software within the body of your publication for example by copying or adapting the following formulation: | ||
|
||
*The computational workflow in general and data management in particular for this publication was primarily supported by the signac data management framework [1, 2].* | ||
|
||
[1] Carl S. Adorf, Paul M. Dodd, and Sharon C. Glotzer. *signac - A Simple Data Management Framework*. 2016. arXiv: 1611.03543 [cs.DB]. | ||
|
||
[2] Carl S. Adorf and Paul M. Dodd. *csadorf/signac: v0.6.1*. Dec. 2016. DOI:10.5281/zenodo.192108. URL: https://doi.org/10.5821/zenodo.192108. | ||
|
||
References for a specific release versions can be found `here <https://zenodo.org/badge/latestdoi/72946496>`_. | ||
|
||
.. tip:: | ||
|
||
You can auto-generate the first formatted reference and the corresponding BibTeX file via :py:func:`signac.cite.reference` and :py:func:`signac.cite.bibtex`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ Module contents | |
:show-inheritance: | ||
|
||
|
||
.. automodule:: signac.cite | ||
:members: | ||
|
||
Subpackages | ||
----------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
setup( | ||
name='signac', | ||
version='0.6.1', | ||
version='0.6.2', | ||
packages=find_packages(), | ||
zip_safe=True, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Copyright (c) 2016 The Regents of the University of Michigan | ||
# All rights reserved. | ||
# This software is licensed under the BSD 3-Clause License. | ||
"""Functions to support citing this software.""" | ||
import sys | ||
|
||
|
||
ARXIV_BIBTEX = """@online{signac, | ||
author = {Carl S. Adorf and Paul M. Dodd and Sharon C. Glotzer}, | ||
title = {signac - A Simple Data Management Framework}, | ||
year = {2016}, | ||
eprinttype = {arxiv}, | ||
eprintclass = {cs.DB}, | ||
eprint = {1611.03543} | ||
} | ||
""" | ||
|
||
|
||
ARXIV_REFERENCE = "Carl S. Adorf, Paul M. Dodd, and Sharon C. Glotzer. signac - A SimpleData Management Framework. 2016. arXiv:1611.03543 [cs.DB]" | ||
|
||
|
||
def bibtex(file=None): | ||
"""Generate bibtex entries for signac. | ||
The bibtex entries will be printed to screen unless a | ||
filename or a file-like object are provided, in which | ||
case they will be written to the corresponding file. | ||
.. note:: | ||
A full reference should also include the | ||
version of this software. Please refer to the | ||
documentation on how to cite a specific version. | ||
:param file: A str or file-like object. | ||
Defaults to sys.stdout. | ||
""" | ||
if file is None: | ||
file = sys.stdout | ||
elif isinstance(file, str): | ||
file = open(file, 'w') | ||
file.write(ARXIV_BIBTEX) | ||
|
||
|
||
def reference(file=None): | ||
"""Generate formatted reference entries for signac. | ||
The references will be printed to screen unless a | ||
filename or a file-like object are provided, in which | ||
case they will be written to the corresponding file. | ||
.. note:: | ||
A full reference should also include the | ||
version of this software. Please refer to the | ||
documentation on how to cite a specific version. | ||
:param file: A str or file-like object. | ||
Defaults to sys.stdout. | ||
""" | ||
if file is None: | ||
file = sys.stdout | ||
elif isinstance(file, str): | ||
file = open(file, 'w') | ||
file.write(ARXIV_REFERENCE + '\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters