Skip to content

Instantly share code, notes, and snippets.

@ngoldbaum
Created September 10, 2013 20:02
Show Gist options
  • Save ngoldbaum/6514792 to your computer and use it in GitHub Desktop.
Save ngoldbaum/6514792 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
diff -r 079e456c38a8 -r 2d06aa201903 COPYING.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/COPYING.txt Mon Sep 09 14:13:42 2013 -0400
@@ -0,0 +1,81 @@
+===============================
+ The yt project licensing terms
+===============================
+
+yt is licensed under the terms of the Modified BSD License (also known as New
+or Revised BSD), as follows:
+
+Copyright (c) 2013-, yt Development Team
+Copyright (c) 2006-2013, Matthew Turk <matthewturk@gmail.com>
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this
+list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this
+list of conditions and the following disclaimer in the documentation and/or
+other materials provided with the distribution.
+
+Neither the name of the yt Development Team nor the names of its
+contributors may be used to endorse or promote products derived from this
+software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+About the yt Development Team
+-----------------------------
+
+Matthew Turk began yt in 2006 and remains the project lead. Over time yt has
+grown to include contributions from a large number of individuals from many
+diverse institutions, scientific, and technical backgrounds.
+
+Until the fall of 2013, yt was licensed under the GPLv3. However, with consent
+from all developers and on a public mailing list, yt has been relicensed under
+the BSD 3-clause under a shared copyright model. For more information, see:
+http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/2013-July/003239.html
+All versions of yt prior to this licensing change are available under the
+GPLv3; all subsequent versions are available under the BSD 3-clause license.
+
+The yt Development Team is the set of all contributors to the yt project. This
+includes all of the yt subprojects.
+
+The core team that coordinates development on BitBucket can be found here:
+http://bitbucket.org/yt_analysis/
+
+
+Our Copyright Policy
+--------------------
+
+yt uses a shared copyright model. Each contributor maintains copyright
+over their contributions to yt. But, it is important to note that these
+contributions are typically only changes to the repositories. Thus, the yt
+source code, in its entirety is not the copyright of any single person or
+institution. Instead, it is the collective copyright of the entire yt
+Development Team. If individual contributors want to maintain a record of what
+changes/contributions they have specific copyright on, they should indicate
+their copyright in the commit message of the change, when they commit the
+change to one of the yt repositories.
+
+With this in mind, the following banner should be used in any source code file
+to indicate the copyright and license terms:
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 CREDITS
--- a/CREDITS Mon Sep 09 11:46:51 2013 -0400
+++ b/CREDITS Mon Sep 09 14:13:42 2013 -0400
@@ -1,51 +1,55 @@
-YT is a group effort.
+yt is a group effort.
-Contributors: Tom Abel (tabel@stanford.edu)
- David Collins (dcollins@physics.ucsd.edu)
- Brian Crosby (crosby.bd@gmail.com)
- Andrew Cunningham (ajcunn@gmail.com)
- Nathan Goldbaum (goldbaum@ucolick.org)
- Markus Haider (markus.haider@uibk.ac.at)
- Cameron Hummels (chummels@gmail.com)
- Christian Karch (chiffre@posteo.de)
- Ji-hoon Kim (me@jihoonkim.org)
- Steffen Klemer (sklemer@phys.uni-goettingen.de)
- Kacper Kowalik (xarthisius.kk@gmail.com)
- Michael Kuhlen (mqk@astro.berkeley.edu)
- Eve Lee (elee@cita.utoronto.ca)
- Yuan Li (yuan@astro.columbia.edu)
- Chris Malone (chris.m.malone@gmail.com)
- Josh Maloney (joshua.moloney@colorado.edu)
- Chris Moody (cemoody@ucsc.edu)
- Andrew Myers (atmyers@astro.berkeley.edu)
- Jeff Oishi (jsoishi@gmail.com)
- Jean-Claude Passy (jcpassy@uvic.ca)
- Mark Richardson (Mark.L.Richardson@asu.edu)
- Thomas Robitaille (thomas.robitaille@gmail.com)
- Anna Rosen (rosen@ucolick.org)
- Anthony Scopatz (scopatz@gmail.com)
- Devin Silvia (devin.silvia@colorado.edu)
- Sam Skillman (samskillman@gmail.com)
- Stephen Skory (s@skory.us)
- Britton Smith (brittonsmith@gmail.com)
- Geoffrey So (gsiisg@gmail.com)
- Casey Stark (caseywstark@gmail.com)
- Elizabeth Tasker (tasker@astro1.sci.hokudai.ac.jp)
- Stephanie Tonnesen (stonnes@gmail.com)
- Matthew Turk (matthewturk@gmail.com)
- Rich Wagner (rwagner@physics.ucsd.edu)
- John Wise (jwise@physics.gatech.edu)
- John ZuHone (jzuhone@gmail.com)
+Contributors:
+ Tom Abel (tabel@stanford.edu)
+ David Collins (dcollins@physics.ucsd.edu)
+ Brian Crosby (crosby.bd@gmail.com)
+ Andrew Cunningham (ajcunn@gmail.com)
+ Hilary Egan (hilaryye@gmail.com)
+ John Forces (jforbes@ucolick.org)
+ Nathan Goldbaum (goldbaum@ucolick.org)
+ Markus Haider (markus.haider@uibk.ac.at)
+ Cameron Hummels (chummels@gmail.com)
+ Christian Karch (chiffre@posteo.de)
+ Ji-hoon Kim (me@jihoonkim.org)
+ Steffen Klemer (sklemer@phys.uni-goettingen.de)
+ Kacper Kowalik (xarthisius.kk@gmail.com)
+ Michael Kuhlen (mqk@astro.berkeley.edu)
+ Eve Lee (elee@cita.utoronto.ca)
+ Sam Leitner (sam.leitner@gmail.com)
+ Yuan Li (yuan@astro.columbia.edu)
+ Chris Malone (chris.m.malone@gmail.com)
+ Josh Maloney (joshua.moloney@colorado.edu)
+ Chris Moody (cemoody@ucsc.edu)
+ Andrew Myers (atmyers@astro.berkeley.edu)
+ Jill Naiman (jnaiman@ucolick.org)
+ Kaylea Nelson (kaylea.nelson@yale.edu)
+ Jeff Oishi (jsoishi@gmail.com)
+ Jean-Claude Passy (jcpassy@uvic.ca)
+ Mark Richardson (Mark.L.Richardson@asu.edu)
+ Thomas Robitaille (thomas.robitaille@gmail.com)
+ Anna Rosen (rosen@ucolick.org)
+ Douglas Rudd (drudd@uchicago.edu)
+ Anthony Scopatz (scopatz@gmail.com)
+ Noel Scudder (noel.scudder@stonybrook.edu)
+ Devin Silvia (devin.silvia@colorado.edu)
+ Sam Skillman (samskillman@gmail.com)
+ Stephen Skory (s@skory.us)
+ Britton Smith (brittonsmith@gmail.com)
+ Geoffrey So (gsiisg@gmail.com)
+ Casey Stark (caseywstark@gmail.com)
+ Elizabeth Tasker (tasker@astro1.sci.hokudai.ac.jp)
+ Stephanie Tonnesen (stonnes@gmail.com)
+ Matthew Turk (matthewturk@gmail.com)
+ Rich Wagner (rwagner@physics.ucsd.edu)
+ Andrew Wetzel (andrew.wetzel@yale.edu)
+ John Wise (jwise@physics.gatech.edu)
+ John ZuHone (jzuhone@gmail.com)
-We also include the Delaunay Triangulation module written by Robert Kern of
-Enthought, the cmdln.py module by Trent Mick, and the progressbar module by
+Several items included in the yt/extern directory were written by other
+individuals and may bear their own license, including the progressbar module by
Nilton Volpato. The PasteBin interface code (as well as the PasteBin itself)
-was written by the Pocoo collective (pocoo.org). The RamsesRead++ library was
-developed by Oliver Hahn. yt also includes a slightly-modified version of
-libconfig (http://www.hyperrealm.com/libconfig/) and an unmodified version of
-several routines from HEALpix (http://healpix.jpl.nasa.gov/).
-
-Large parts of development of yt were guided by discussions with Tom Abel, Ralf
-Kaehler, Mike Norman and Greg Bryan.
+was written by the Pocoo collective (pocoo.org).
+developed by Oliver Hahn.
Thanks to everyone for all your contributions!
diff -r 079e456c38a8 -r 2d06aa201903 FUNDING
--- a/FUNDING Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-The development of yt has benefited from funding from many different sources
-and institutions. Here is an incomplete list of these sources:
-
- * NSF grant OCI-1048505
- * NSF grant AST-0239709
- * NSF grant AST-0707474
- * NSF grant AST-0708960
- * NSF grant AST-0808184
- * NSF grant AST-0807215
- * NSF grant AST-0807312
- * NSF grant AST-0807075
- * NSF grant AST-0908199
- * NSF grant AST-0908553
- * NASA grant ATFP NNX08-AH26G
- * NASA grant ATFP NNX09-AD80G
- * NASA grant ATFP NNZ07-AG77G
- * DOE Computational Science Graduate Fellowship under grant number DE-FG02-97ER25308
-
-Additionally, development of yt has benefited from the hospitality and hosting
-of the following institutions:
-
- * Columbia University
- * Harvard-Smithsonian Center for Astrophysics
- * Institute for Advanced Study
- * Kavli Institute for Particle Astrophysics and Cosmology
- * Kavli Institute for Theoretical Physics
- * Los Alamos National Lab
- * Michigan State University
- * Princeton University
- * Stanford University
- * University of California High-Performance Astro-Computing Center
- * University of California at Berkeley
- * University of California at San Diego
- * University of California at Santa Cruz
- * University of Colorado at Boulder
diff -r 079e456c38a8 -r 2d06aa201903 LICENSE.txt
--- a/LICENSE.txt Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,674 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- <program> Copyright (C) <year> <name of author>
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff -r 079e456c38a8 -r 2d06aa201903 doc/how_to_develop_yt.txt
--- a/doc/how_to_develop_yt.txt Mon Sep 09 11:46:51 2013 -0400
+++ b/doc/how_to_develop_yt.txt Mon Sep 09 14:13:42 2013 -0400
@@ -25,7 +25,7 @@
Licenses
--------
-All code in yt should be under the GPL-3 (preferred) or a compatible license.
+All code in yt should be under the BSD 3-clause license.
How To Get The Source Code
--------------------------
diff -r 079e456c38a8 -r 2d06aa201903 setup.py
--- a/setup.py Mon Sep 09 11:46:51 2013 -0400
+++ b/setup.py Mon Sep 09 14:13:42 2013 -0400
@@ -248,7 +248,7 @@
classifiers=["Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
- "License :: OSI Approved :: GNU General Public License (GPL)",
+ "License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: AIX",
"Operating System :: POSIX :: Linux",
@@ -269,7 +269,7 @@
author="Matthew J. Turk",
author_email="matthewturk@gmail.com",
url="http://yt-project.org/",
- license="GPL-3",
+ license="BSD",
configuration=configuration,
zip_safe=False,
data_files=REASON_FILES,
diff -r 079e456c38a8 -r 2d06aa201903 yt/__init__.py
--- a/yt/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -60,27 +60,20 @@
All broadly useful code that doesn't clearly fit in one of the other
categories goes here.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
__version__ = "2.5-dev"
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/absorption_spectrum/__init__.py
--- a/yt/analysis_modules/absorption_spectrum/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/absorption_spectrum/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,24 +1,17 @@
"""
Import stuff for light cone generator.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/absorption_spectrum/absorption_line.py
--- a/yt/analysis_modules/absorption_spectrum/absorption_line.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/absorption_spectrum/absorption_line.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Absorption line generating functions.
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/absorption_spectrum/absorption_spectrum.py
--- a/yt/analysis_modules/absorption_spectrum/absorption_spectrum.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/absorption_spectrum/absorption_spectrum.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
AbsorptionSpectrum class and member functions.
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/absorption_spectrum/api.py
--- a/yt/analysis_modules/absorption_spectrum/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/absorption_spectrum/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for absorption_spectrum
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .absorption_spectrum import \
AbsorptionSpectrum
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/api.py
--- a/yt/analysis_modules/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.analysis_modules
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .absorption_spectrum.api import \
AbsorptionSpectrum
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/coordinate_transformation/api.py
--- a/yt/analysis_modules/coordinate_transformation/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/coordinate_transformation/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,22 @@
"""
API for coordinate_transformation
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .transforms import \
spherical_regrid
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/coordinate_transformation/transforms.py
--- a/yt/analysis_modules/coordinate_transformation/transforms.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/coordinate_transformation/transforms.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Transformations between coordinate systems
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: JS Oishi <jsoishi@astro.berkeley.edu>
-Organization: UC Berkeley
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk, J. S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * JS Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
from yt.funcs import *
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/api.py
--- a/yt/analysis_modules/cosmological_observation/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
API for cosmology analysis.
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .cosmology_splice import \
CosmologySplice
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/cosmology_splice.py
--- a/yt/analysis_modules/cosmological_observation/cosmology_splice.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/cosmology_splice.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
CosmologyTimeSeries class and member functions.
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2012 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_cone/__init__.py
--- a/yt/analysis_modules/cosmological_observation/light_cone/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_cone/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,24 +1,17 @@
"""
Import stuff for light cone generator.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_cone/api.py
--- a/yt/analysis_modules/cosmological_observation/light_cone/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_cone/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for lightcone
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .light_cone import \
LightCone
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_cone/common_n_volume.py
--- a/yt/analysis_modules/cosmological_observation/light_cone/common_n_volume.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_cone/common_n_volume.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
Function to calculate volume in common between two n-cubes, with optional
periodic boundary conditions.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_cone/halo_mask.py
--- a/yt/analysis_modules/cosmological_observation/light_cone/halo_mask.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_cone/halo_mask.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Light cone halo mask functions.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import copy
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_cone/light_cone.py
--- a/yt/analysis_modules/cosmological_observation/light_cone/light_cone.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_cone/light_cone.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
LightCone class and member functions.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2012 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import copy
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_cone/light_cone_projection.py
--- a/yt/analysis_modules/cosmological_observation/light_cone/light_cone_projection.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_cone/light_cone_projection.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Create randomly centered, tiled projections to be used in light cones.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import copy
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_cone/unique_solution.py
--- a/yt/analysis_modules/cosmological_observation/light_cone/unique_solution.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_cone/unique_solution.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Functions to generate unique light cone solutions.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import copy
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_ray/api.py
--- a/yt/analysis_modules/cosmological_observation/light_ray/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_ray/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,22 @@
"""
API for light_ray
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .light_ray import \
LightRay
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
--- a/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
LightRay class and member functions.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2012 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import copy
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/api.py
--- a/yt/analysis_modules/halo_finding/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for halo_finding
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from halo_objects import \
Halo, \
HOPHalo, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/fof/EnzoFOF.c
--- a/yt/analysis_modules/halo_finding/fof/EnzoFOF.c Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/fof/EnzoFOF.c Mon Sep 09 14:13:42 2013 -0400
@@ -1,22 +1,10 @@
-/************************************************************************
-* Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
-*
-* This file is part of yt.
-*
-* yt is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-************************************************************************/
+/*******************************************************************************
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+*******************************************************************************/
//
// EnzoFOF
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/halo_objects.py
--- a/yt/analysis_modules/halo_finding/halo_objects.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/halo_objects.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,31 +1,22 @@
"""
HOP-output data handling
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Stephen Skory <s@skory.us>
-Affiliation: UCSD Physics/CASS
-Author: Geoffrey So <gsiisg@gmail.com> (Ellipsoidal functions)
-Affiliation: UCSD Physics/CASS
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * Stephen Skory
+ * Geoffrey So
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import gc
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/hop/EnzoHop.c
--- a/yt/analysis_modules/halo_finding/hop/EnzoHop.c Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/hop/EnzoHop.c Mon Sep 09 14:13:42 2013 -0400
@@ -1,22 +1,10 @@
-/************************************************************************
-* Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
-*
-* This file is part of yt.
-*
-* yt is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-************************************************************************/
+/*******************************************************************************
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+*******************************************************************************/
//
// EnzoHop
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py
--- a/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
A implementation of the HOP algorithm that runs in parallel.
-Author: Stephen Skory <s@skory.us>
-Affiliation: UCSD/CASS
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Stephen Skory. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from collections import defaultdict
import itertools, sys
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/rockstar/api.py
--- a/yt/analysis_modules/halo_finding/rockstar/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/rockstar/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,19 @@
"""
API for Rockstar halo finding
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .rockstar import RockstarHaloFinder
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/rockstar/rockstar.py
--- a/yt/analysis_modules/halo_finding/rockstar/rockstar.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/rockstar/rockstar.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Operations to get Rockstar loaded up
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt.enzotools.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.mods import *
from yt.utilities.parallel_tools.parallel_analysis_interface import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_finding/rockstar/rockstar_interface.pyx
--- a/yt/analysis_modules/halo_finding/rockstar/rockstar_interface.pyx Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_finding/rockstar/rockstar_interface.pyx Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Particle operations for Lagrangian Volume
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt.enzotools.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import os, sys
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_mass_function/api.py
--- a/yt/analysis_modules/halo_mass_function/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_mass_function/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for halo_mass_function
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .halo_mass_function import \
HaloMassFcn, \
TransferFunction, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_mass_function/halo_mass_function.py
--- a/yt/analysis_modules/halo_mass_function/halo_mass_function.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_mass_function/halo_mass_function.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
halo_mass_function - Halo Mass Function and supporting functions.
-Author: Stephen Skory <s@skory.us>
-Affiliation: UC San Diego / CASS
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Stephen Skory (and others). All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import math, time
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_merger_tree/api.py
--- a/yt/analysis_modules/halo_merger_tree/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_merger_tree/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for halo_merger_tree
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .merger_tree import \
DatabaseFunctions, \
MergerTree, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_merger_tree/enzofof_merger_tree.py
--- a/yt/analysis_modules/halo_merger_tree/enzofof_merger_tree.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_merger_tree/enzofof_merger_tree.py Mon Sep 09 14:13:42 2013 -0400
@@ -3,31 +3,22 @@
catalogs, either output by Enzo or output by yt's FOF halo finder, and then
compare parent/child relationships.
-Author: Matthew J. Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Author: John H. Wise <jwise@astro.princeton.edu>
-Affiliation: Princeton
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Arizona
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew J. Turk
+ * John H. Wise
+ * Cameron Hummels
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
# plot_halo_evolution() gives a good full example of how to use the framework
# First pass at a simplified merger tree
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_merger_tree/merger_tree.py
--- a/yt/analysis_modules/halo_merger_tree/merger_tree.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_merger_tree/merger_tree.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
MergerTree class and member functions.
-Author: Stephen Skory <s@skory.us>
-Affiliation: CASS/UC San Diego, CA
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Stephen Skory. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import os, glob, time, gc, md5, sys
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_profiler/api.py
--- a/yt/analysis_modules/halo_profiler/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_profiler/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for halo_profiler
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .halo_filters import \
VirialFilter
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_profiler/centering_methods.py
--- a/yt/analysis_modules/halo_profiler/centering_methods.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_profiler/centering_methods.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
HaloProfiler re-centering functions.
-Author: Stephen Skory <s@skory.us>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Stephen Skory. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_profiler/halo_filters.py
--- a/yt/analysis_modules/halo_profiler/halo_filters.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_profiler/halo_filters.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Halo filters to be used with the HaloProfiler.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from copy import deepcopy
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_profiler/multi_halo_profiler.py
--- a/yt/analysis_modules/halo_profiler/multi_halo_profiler.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_profiler/multi_halo_profiler.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
HaloProfiler class and member functions.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import gc
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/halo_profiler/standard_analysis.py
--- a/yt/analysis_modules/halo_profiler/standard_analysis.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/halo_profiler/standard_analysis.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
This module contains a near-replacement for enzo_anyl
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/hierarchy_subset/api.py
--- a/yt/analysis_modules/hierarchy_subset/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/hierarchy_subset/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for hierarchy_subset
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .hierarchy_subset import \
ConstructedRootGrid, \
AMRExtractedGridProxy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/hierarchy_subset/hierarchy_subset.py
--- a/yt/analysis_modules/hierarchy_subset/hierarchy_subset.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/hierarchy_subset/hierarchy_subset.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
A means of extracting a subset of the hierarchy
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py, os.path
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/level_sets/api.py
--- a/yt/analysis_modules/level_sets/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/level_sets/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for level_sets
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .contour_finder import \
coalesce_join_tree, \
identify_contours
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/level_sets/clump_handling.py
--- a/yt/analysis_modules/level_sets/clump_handling.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/level_sets/clump_handling.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,20 @@
"""
Clump finding helper classes
-Author: Britton Smith <Britton.Smith@colorado.edu>
-Affiliation: University of Colorado at Boulder
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import copy
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/level_sets/clump_tools.py
--- a/yt/analysis_modules/level_sets/clump_tools.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/level_sets/clump_tools.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Clump tools for use with the yt Clump object
-Author: David Collins <dcollins@physics.ucsd.edu>
-Affiliation: Center for Astrophysics and Space Sciences, U C San Diego
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2009 David Collins. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * David Collins
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
nar = np.array
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/level_sets/contour_finder.py
--- a/yt/analysis_modules/level_sets/contour_finder.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/level_sets/contour_finder.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
This module contains a routine to search for topologically connected sets
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from itertools import chain
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/list_modules.py
--- a/yt/analysis_modules/list_modules.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/list_modules.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
A mechanism for listing available analysis modules.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import sys
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/radial_column_density/api.py
--- a/yt/analysis_modules/radial_column_density/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/radial_column_density/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,19 @@
"""
API for radial_column_density
-Author: Stephen Skory <s@skory.us>
-Affiliation: CU Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Stephen Skory. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .radial_column_density import RadialColumnDensity
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/radial_column_density/radial_column_density.py
--- a/yt/analysis_modules/radial_column_density/radial_column_density.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/radial_column_density/radial_column_density.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Calculate the radial column density around a point.
-Author: Stephen Skory <s@skory.us>
-Affiliation: CU Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Stephen Skory. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.mods import *
import yt.visualization.volume_rendering.camera as camera
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/radmc3d_export/RadMC3DInterface.py
--- a/yt/analysis_modules/radmc3d_export/RadMC3DInterface.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/radmc3d_export/RadMC3DInterface.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Code to export from yt to RadMC3D
-Author: Andrew Myers <atmyers2@gmail.com>
-Affiliation: UCB
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2013 Andrew Myers. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Andrew Myers
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from yt.mods import *
from yt.utilities.lib.write_array import \
write_3D_array, write_3D_vector_array
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/radmc3d_export/api.py
--- a/yt/analysis_modules/radmc3d_export/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/radmc3d_export/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,30 +1,21 @@
"""
API for RadMC3D Export code
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: Andrew Myers <atmyers2@gmail.com>
-Affiliation: UCB
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * Andrew Myers
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .RadMC3DInterface import \
RadMC3DWriter
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/spectral_integrator/api.py
--- a/yt/analysis_modules/spectral_integrator/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/spectral_integrator/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for spectral_integrator
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .spectral_frequency_integrator import \
EmissivityIntegrator, \
add_xray_emissivity_field, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/spectral_integrator/spectral_frequency_integrator.py
--- a/yt/analysis_modules/spectral_integrator/spectral_frequency_integrator.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/spectral_integrator/spectral_frequency_integrator.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,29 +2,21 @@
Integrator classes to deal with interpolation and integration of input spectral
bins. Currently only supports Cloudy-style data.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: Michigan State University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from exceptions import IOError
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/star_analysis/api.py
--- a/yt/analysis_modules/star_analysis/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/star_analysis/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for star_analysis
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .sfr_spectrum import \
StarFormationRate, \
SpectrumBuilder, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/star_analysis/sfr_spectrum.py
--- a/yt/analysis_modules/star_analysis/sfr_spectrum.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/star_analysis/sfr_spectrum.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
StarAnalysis - Functions to analyze stars.
-Author: Stephen Skory <s@skory.us>
-Affiliation: UC San Diego / CASS
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Stephen Skory (and others). All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/sunrise_export/api.py
--- a/yt/analysis_modules/sunrise_export/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/sunrise_export/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,20 @@
"""
API for Sunrise Export code
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .sunrise_exporter import \
export_to_sunrise
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/sunrise_export/sunrise_exporter.py
--- a/yt/analysis_modules/sunrise_export/sunrise_exporter.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/sunrise_export/sunrise_exporter.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,31 +1,22 @@
"""
Code to export from yt to Sunrise
-Author: Chris Moody <juxtaposicion@gmail.com>
-Affiliation: UCSC
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Chris Moody
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
try:
import pyfits
except ImportError:
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/two_point_functions/api.py
--- a/yt/analysis_modules/two_point_functions/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/two_point_functions/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for two_point_functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .two_point_functions import \
TwoPointFunctions, \
FcnSet
diff -r 079e456c38a8 -r 2d06aa201903 yt/analysis_modules/two_point_functions/two_point_functions.py
--- a/yt/analysis_modules/two_point_functions/two_point_functions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/analysis_modules/two_point_functions/two_point_functions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Two Point Functions Framework.
-Author: Stephen Skory <s@skory.us>
-Affiliation: UCSD Physics/CASS
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Stephen Skory. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Stephen Skory
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
from yt.mods import *
diff -r 079e456c38a8 -r 2d06aa201903 yt/api.py
--- a/yt/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/arraytypes.py
--- a/yt/arraytypes.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/arraytypes.py Mon Sep 09 14:13:42 2013 -0400
@@ -5,27 +5,20 @@
This is all probably overly-complicated, and should be removed at first
opportunity to ditch numarray.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import numpy.core.records as rec
diff -r 079e456c38a8 -r 2d06aa201903 yt/config.py
--- a/yt/config.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/config.py Mon Sep 09 14:13:42 2013 -0400
@@ -3,27 +3,20 @@
we have written for yt.
Everything will be returned in a global config dictionary: ytcfg
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import ConfigParser, os, os.path, types
diff -r 079e456c38a8 -r 2d06aa201903 yt/convenience.py
--- a/yt/convenience.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/convenience.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Some convenience functions, objects, and iterators
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import glob
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/analyzer_objects.py
--- a/yt/data_objects/analyzer_objects.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/analyzer_objects.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Analyzer objects for time series datasets
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import inspect
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/api.py
--- a/yt/data_objects/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.data_objects
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from grid_patch import \
AMRGridPatch
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/data_containers.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,23 @@
"""
Various non-grid data containers.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <Britton.Smith@colorado.edu>
-Affiliation: University of Colorado at Boulder
-Author: Geoffrey So <gsiisg@gmail.com>
-Affiliation: UCSD Physics/CASS
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
-
- This file is part of yt.
-
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Authors:
+ * Matthew Turk
+ * Britton Smith
+ * Geoffrey So
+
+
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
data_object_registry = {}
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/derived_quantities.py
--- a/yt/data_objects/derived_quantities.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/derived_quantities.py Mon Sep 09 14:13:42 2013 -0400
@@ -3,27 +3,20 @@
arguments. (Standard arguments -- such as the center of a distribution of
points -- are excluded here, and left to the EnzoDerivedFields.)
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/field_info_container.py
--- a/yt/data_objects/field_info_container.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/field_info_container.py Mon Sep 09 14:13:42 2013 -0400
@@ -3,27 +3,20 @@
universal, are the means by which we access fields across YT, both derived and
native.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import types
import inspect
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/grid_patch.py
--- a/yt/data_objects/grid_patch.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/grid_patch.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Python-based grid handler, not to be confused with the SWIG-handler
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt.enzotools.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import exceptions
import pdb
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/hierarchy.py
--- a/yt/data_objects/hierarchy.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/hierarchy.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
AMR hierarchy container class
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/image_array.py
--- a/yt/data_objects/image_array.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/image_array.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,18 @@
"""
ImageArray Class
-Authors: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
+Authors:
+ * Samuel Skillman
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Samuel Skillman. All Rights Reserved.
+"""
- This file is part of yt.
-
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- """
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import h5py as h5
@@ -397,4 +387,3 @@
self.write_hdf5("%s.h5" % filename)
__doc__ += np.ndarray.__doc__
-
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/object_finding_mixin.py
--- a/yt/data_objects/object_finding_mixin.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/object_finding_mixin.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
AMR hierarchy container class
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/particle_io.py
--- a/yt/data_objects/particle_io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/particle_io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
The particle-IO handler
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2009 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/particle_trajectories.py
--- a/yt/data_objects/particle_trajectories.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/particle_trajectories.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,25 +1,19 @@
"""
-Author: John ZuHone <jzuhone@gmail.com>
-Affiliation: NASA/GSFC
-License:
- Copyright (C) 2012 John ZuHone All Rights Reserved.
- This file is part of yt.
+Authors:
+ * John ZuHone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from yt.data_objects.data_containers import YTFieldData
from yt.data_objects.time_series import TimeSeriesData
from yt.utilities.lib import sample_field_at_positions
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/profiles.py
--- a/yt/data_objects/profiles.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/profiles.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Profile classes, to deal with generating and obtaining profiles
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Samuel Skillman <samskillman@gmail.com>
-Affiliation: CASA, University of Colorado at Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * Samuel Skillman
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/static_output.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
Generalized Enzo output objects, both static and time-series.
Presumably at some point EnzoRun will be absorbed into here.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk, J. S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import string, re, gc, time, os, os.path, weakref
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/tests/test_pickle.py
--- a/yt/data_objects/tests/test_pickle.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/tests/test_pickle.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Testsuite for pickling yt objects.
-Author: Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp>
-Affiliation: Hokkaido University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2013 Elizabeth Tasker. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Elizabeth Tasker
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import cPickle
import os
import tempfile
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/tests/test_slice.py
--- a/yt/data_objects/tests/test_slice.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/tests/test_slice.py Mon Sep 09 14:13:42 2013 -0400
@@ -3,28 +3,20 @@
Authors: Samuel Skillman <samskillman@gmail.com>
Affiliation: University of Colorado at Boulder
-Author: Kacper Kowalik <xarthisius.kk@gmail.com>
-Affiliation: CA UMK
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Samuel Skillman. All Rights Reserved.
- Copyright (C) 2013 Kacper Kowalik. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Kacper Kowalik
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import numpy as np
import tempfile
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/time_series.py
--- a/yt/data_objects/time_series.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/time_series.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Time series analysis functions.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import inspect, functools, weakref, glob, types
diff -r 079e456c38a8 -r 2d06aa201903 yt/data_objects/universal_fields.py
--- a/yt/data_objects/universal_fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/data_objects/universal_fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -3,27 +3,20 @@
universal, are the means by which we access fields across YT, both derived and
native.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import types
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/_skeleton/__init__.py
--- a/yt/frontends/_skeleton/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/_skeleton/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,25 +1,17 @@
"""
API for yt.frontends.skeleton
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/_skeleton/api.py
--- a/yt/frontends/_skeleton/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/_skeleton/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
API for yt.frontends._skeleton
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
SkeletonGrid, \
SkeletonHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/_skeleton/data_structures.py
--- a/yt/frontends/_skeleton/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/_skeleton/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Skeleton data structures
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import stat
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/_skeleton/fields.py
--- a/yt/frontends/_skeleton/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/_skeleton/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Skeleton-specific fields
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/_skeleton/io.py
--- a/yt/frontends/_skeleton/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/_skeleton/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Skeleton-specific IO functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/api.py
--- a/yt/frontends/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/art/__init__.py
--- a/yt/frontends/art/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/art/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends.art
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/art/api.py
--- a/yt/frontends/art/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/art/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.art
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
ARTGrid, \
ARTHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/art/data_structures.py
--- a/yt/frontends/art/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/art/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
ART-specific data structures
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: Christopher Moody <cemoody@ucsc.edu>
-Affiliation: UCSC
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * Christopher Moody
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import os.path
import glob
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/art/definitions.py
--- a/yt/frontends/art/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/art/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,30 +1,21 @@
"""
Definitions specific to ART
-Author: Christopher E. Moody <cemoody@ucsc.edu>
-Affiliation: UC Santa Cruz
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Christopher E. Moody. All Rights
- Reserved.
- This file is part of yt.
+Authors:
+ * Christopher E. Moody
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
fluid_fields= [
'Density',
'TotalEnergy',
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/art/fields.py
--- a/yt/frontends/art/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/art/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
ART-specific fields
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/art/io.py
--- a/yt/frontends/art/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/art/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
ART-specific IO
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import struct
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/athena/api.py
--- a/yt/frontends/athena/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/athena/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.athena
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from .data_structures import \
AthenaGrid, \
AthenaHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/athena/data_structures.py
--- a/yt/frontends/athena/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/athena/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,35 +1,23 @@
"""
Data structures for Athena.
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: John ZuHone <jzuhone@gmail.com>
-Affiliation: NASA/Goddard Space Flight Center
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2013 Samuel W. Skillman, Matthew Turk, J. S. Oishi.,
- John ZuHone.
- All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * Matthew Turk
+ * J. S. Oishi
+ * John ZuHone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/athena/definitions.py
--- a/yt/frontends/athena/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/athena/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,25 +1,17 @@
"""
Various definitions for various other modules and routines
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J.S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/athena/fields.py
--- a/yt/frontends/athena/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/athena/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,22 @@
"""
Athena-specific fields
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: John A. ZuHone <jzuhone@gmail.com>
-Affiliation: NASA/Goddard Space Flight Center
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Samuel W. Skillman, Matthew Turk, J. S. Oishi.
- All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * J. S. Oishi
+ * John A. ZuHone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
from yt.data_objects.field_info_container import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/athena/io.py
--- a/yt/frontends/athena/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/athena/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,30 +1,22 @@
"""
The data-file handling functions
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.utilities.io_handler import \
BaseIOHandler
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/castro/__init__.py
--- a/yt/frontends/castro/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/castro/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends.castro
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/castro/api.py
--- a/yt/frontends/castro/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/castro/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.castro
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
CastroGrid, \
CastroHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/castro/data_structures.py
--- a/yt/frontends/castro/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/castro/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Data structures for Castro.
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2010 J. S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import re
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/castro/definitions.py
--- a/yt/frontends/castro/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/castro/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,20 @@
"""
Various definitions for various other modules and routines
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2010 J.S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.funcs import *
def boxlib_bool_to_int(v):
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/castro/fields.py
--- a/yt/frontends/castro/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/castro/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Castro-specific fields
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: UC Berkeley
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2010 J. S. Oishi, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
FieldInfo, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/castro/io.py
--- a/yt/frontends/castro/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/castro/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,21 @@
"""
Castro data-file handling functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2010 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/chombo/api.py
--- a/yt/frontends/chombo/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/chombo/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.chombo
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt.Chombotools.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
ChomboGrid, \
ChomboHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/chombo/data_structures.py
--- a/yt/frontends/chombo/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/chombo/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,21 @@
"""
Data structures for Chombo.
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk, J. S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import re
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/chombo/definitions.py
--- a/yt/frontends/chombo/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/chombo/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Various definitions for various other modules and routines
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J.S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
parameterDict = {"CosmologyCurrentRedshift": float,
"CosmologyComovingBoxSize": float,
"CosmologyOmegaMatterNow": float,
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/chombo/fields.py
--- a/yt/frontends/chombo/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/chombo/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Chombo-specific fields
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2009-2011 J. S. Oishi, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/chombo/io.py
--- a/yt/frontends/chombo/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/chombo/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,21 @@
"""
The data-file handling functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import os
import re
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/chombo/tests/test_outputs.py
--- a/yt/frontends/chombo/tests/test_outputs.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/chombo/tests/test_outputs.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Chombo frontend tests
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2013 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.testing import *
from yt.utilities.answer_testing.framework import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/answer_testing_support.py
--- a/yt/frontends/enzo/answer_testing_support.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/answer_testing_support.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Answer Testing support for Enzo.
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.testing import *
from yt.config import ytcfg
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/api.py
--- a/yt/frontends/enzo/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.enzo
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
EnzoGrid, \
EnzoGridInMemory, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Data structures for Enzo
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import weakref
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/definitions.py
--- a/yt/frontends/enzo/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,20 @@
"""
Definitions specific to Enzo
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
+Authors:
+ * Matthew Turk
- This file is part of yt.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
+"""
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
parameterDict = {"CosmologyCurrentRedshift": float,
"CosmologyComovingBoxSize": float,
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/fields.py
--- a/yt/frontends/enzo/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Fields specific to Enzo
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/io.py
--- a/yt/frontends/enzo/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Enzo-specific IO functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from collections import defaultdict
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/misc.py
--- a/yt/frontends/enzo/misc.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/misc.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,25 +1,18 @@
"""
Miscellaneous functions that are Enzo-specific
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/simulation_handling.py
--- a/yt/frontends/enzo/simulation_handling.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/simulation_handling.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
EnzoSimulation class and member functions.
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2012 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.funcs import *
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/enzo/tests/test_outputs.py
--- a/yt/frontends/enzo/tests/test_outputs.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/enzo/tests/test_outputs.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Enzo frontend tests using moving7
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.testing import *
from yt.utilities.answer_testing.framework import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/flash/__init__.py
--- a/yt/frontends/flash/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/flash/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends.flash
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/flash/api.py
--- a/yt/frontends/flash/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/flash/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.flash
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
FLASHGrid, \
FLASHHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/flash/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
FLASH-specific data structures
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import stat
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/flash/fields.py
--- a/yt/frontends/flash/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/flash/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
FLASH-specific fields
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2012 Matthew Turk, John ZuHone, Anthony Scopatz. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
from yt.utilities.exceptions import *
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/flash/io.py
--- a/yt/frontends/flash/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/flash/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
FLASH-specific IO functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/flash/tests/test_outputs.py
--- a/yt/frontends/flash/tests/test_outputs.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/flash/tests/test_outputs.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
FLASH frontend tests
-Author: John ZuHone <jzuhone@gmail.com>
-Affiliation: NASA/Goddard Space Flight Center
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 John ZuHone. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * John ZuHone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.testing import *
from yt.utilities.answer_testing.framework import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gadget/__init__.py
--- a/yt/frontends/gadget/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gadget/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends.gadget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gadget/api.py
--- a/yt/frontends/gadget/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gadget/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.gadget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
GadgetGrid, \
GadgetHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gadget/data_structures.py
--- a/yt/frontends/gadget/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gadget/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Data structures for Gadget.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: Chris Moody <cemoody@ucsc.edu>
-Affiliation: UCSC
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * Chris Moody
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gadget/fields.py
--- a/yt/frontends/gadget/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gadget/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Gadget-specific fields
-Author: Christopher E Moody <juxtaposicion@gmail.com>
-Affiliation: UC Santa Cruz
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Christopher E Moody, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Christopher E Moody
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gadget/io.py
--- a/yt/frontends/gadget/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gadget/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Gadget-specific data-file handling function
-Author: Christopher E Moody <juxtaposicion@gmail.com>
-Affiliation: UC Santa Cruz
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Christopher E Moody, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Christopher E Moody
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gdf/api.py
--- a/yt/frontends/gdf/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gdf/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.gdf
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from .data_structures import \
GDFGrid, \
GDFHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gdf/data_structures.py
--- a/yt/frontends/gdf/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gdf/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,31 +1,22 @@
"""
Data structures for GDF.
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Samuel W. Skillman, Matthew Turk, J. S. Oishi.
- All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gdf/definitions.py
--- a/yt/frontends/gdf/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gdf/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,25 +1,17 @@
"""
Various definitions for various other modules and routines
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J.S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gdf/fields.py
--- a/yt/frontends/gdf/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gdf/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,30 +1,21 @@
"""
GDF-specific fields
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Samuel W. Skillman, Matthew Turk, J. S. Oishi.
- All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/gdf/io.py
--- a/yt/frontends/gdf/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/gdf/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,30 +1,22 @@
"""
The data-file handling functions
-Author: Samuel W. Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel W. Skillman
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.utilities.io_handler import \
BaseIOHandler
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/maestro/__init__.py
--- a/yt/frontends/maestro/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/maestro/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,31 +1,20 @@
"""
API for yt.frontends.maestro
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Chris Malone <chris.m.malone@gmail.com>
-Affiliation: SUNY Stony Brook
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
+ * Chris Malone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/maestro/api.py
--- a/yt/frontends/maestro/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/maestro/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,35 +1,24 @@
"""
API for yt.frontends.maestro
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Chris Malone <chris.m.malone@gmail.com>
-Affiliation: SUNY Stony Brook
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
+ * Chris Malone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
MaestroGrid, \
MaestroHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/maestro/data_structures.py
--- a/yt/frontends/maestro/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/maestro/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Data structures for Maestro - borrows heavily from Orion frontend.
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Chris Malone <chris.m.malone@gmail.com>
-Affiliation: SUNY Stony Brook
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J. S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
+ * Chris Malone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import re
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/maestro/definitions.py
--- a/yt/frontends/maestro/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/maestro/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,30 +2,21 @@
Various definitions for various other modules and routines - modified
from Orion frontend.
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Chris Malone <chris.m.malone@gmail.com>
-Affiliation: SUNY Stony Brook
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J.S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
+ * Chris Malone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.funcs import *
parameterTypes = {"dimensionality": int,
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/maestro/fields.py
--- a/yt/frontends/maestro/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/maestro/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Maestro-specific fields - borrows heavily from Orion frontend.
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: UC Berkeley
-Author: Chris Malone <chris.m.malone@gmail.com>
-Affiliation: SUNY Stony Brook
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J. S. Oishi, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
+ * Chris Malone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.utilities.physical_constants import \
mh, kboltz
from yt.data_objects.field_info_container import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/maestro/io.py
--- a/yt/frontends/maestro/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/maestro/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,30 +2,22 @@
Maestro data-file handling functions - identical to Orion frontend,
but with all instances of "orion" changed to "maestro".
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Chris Malone <chris.m.malone@gmail.com>
-Affiliation: SUNY Stony Brook
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J. S. Oishi
+ * Chris Malone
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/nyx/api.py
--- a/yt/frontends/nyx/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/nyx/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
API for yt.frontends.nyx
-Author: Casey W. Stark <caseywstark@gmail.com>
-Affiliation: UC Berkeley
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Casey W. Stark, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Casey W. Stark
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import NyxGrid, NyxHierarchy, NyxStaticOutput
from .fields import NyxFieldInfo, KnownNyxFields, add_nyx_field
from .io import IOHandlerNative
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/nyx/data_structures.py
--- a/yt/frontends/nyx/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/nyx/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,22 @@
"""
Data structures for Nyx.
-Author: Casey W. Stark <caseywstark@gmail.com>
-Affiliation: UC Berkeley
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Casey W. Stark, J. S. Oishi, Matthew Turk. All Rights
- Reserved.
- This file is part of yt.
+Authors:
+ * Casey W. Stark
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from collections import defaultdict
import itertools
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/nyx/definitions.py
--- a/yt/frontends/nyx/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/nyx/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,22 @@
"""
Definitions specific to Nyx
-Author: Casey W. Stark <caseywstark@gmail.com>
-Affiliation: UC Berkeley
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Casey W. Stark, J. S. Oishi, Matthew Turk. All Rights
- Reserved.
- This file is part of yt.
+Authors:
+ * Casey W. Stark
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from utils import boxlib_bool_to_int
# This gives the type of each parameter we want, used to cast with a ``map()``
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/nyx/fields.py
--- a/yt/frontends/nyx/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/nyx/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,22 @@
"""
Field specifications for Nyx
-Author: Casey W. Stark <caseywstark@gmail.com>
-Affiliation: UC Berkeley
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Casey W. Stark, J. S. Oishi, Matthew Turk. All Rights
- Reserved.
- This file is part of yt.
+Authors:
+ * Casey W. Stark
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
import yt.data_objects.universal_fields
from yt.data_objects.field_info_container import FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/nyx/io.py
--- a/yt/frontends/nyx/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/nyx/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,30 +1,22 @@
"""
Nyx data-file handling functions (basically a boxlib reader)
-Author: Casey W. Stark <caseywstark@gmail.com>
-Affiliation: UC Berkeley
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Casey W. Stark, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Casey W. Stark
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/nyx/utils.py
--- a/yt/frontends/nyx/utils.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/nyx/utils.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Utilities for dealing with Nyx data
-Author: Casey W. Stark <caseywstark@gmail.com>
-Affiliation: UC Berkeley
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Casey W. Stark, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Casey W. Stark
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
def boxlib_bool_to_int(v):
try:
return int(v)
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/orion/__init__.py
--- a/yt/frontends/orion/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/orion/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends.orion
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/orion/api.py
--- a/yt/frontends/orion/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/orion/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.orion
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
OrionGrid, \
OrionHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/orion/data_structures.py
--- a/yt/frontends/orion/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/orion/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Data structures for Orion.
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J. S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import re
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/orion/definitions.py
--- a/yt/frontends/orion/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/orion/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,20 @@
"""
Various definitions for various other modules and routines
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J.S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.funcs import *
# TODO: get rid of enzo parameters we do not need
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/orion/fields.py
--- a/yt/frontends/orion/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/orion/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Orion-specific fields
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: UC Berkeley
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J. S. Oishi, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/orion/io.py
--- a/yt/frontends/orion/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/orion/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,21 @@
"""
Orion data-file handling functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/orion/tests/test_outputs.py
--- a/yt/frontends/orion/tests/test_outputs.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/orion/tests/test_outputs.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Orion frontend tests
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2013 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.testing import *
from yt.utilities.answer_testing.framework import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/pluto/api.py
--- a/yt/frontends/pluto/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/pluto/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.pluto
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt.Chombotools.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
PlutoGrid, \
PlutoHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/pluto/data_structures.py
--- a/yt/frontends/pluto/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/pluto/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,21 @@
"""
Data structures for Pluto.
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk, J. S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import re
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/pluto/definitions.py
--- a/yt/frontends/pluto/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/pluto/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Various definitions for various other modules and routines
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 J.S. Oishi. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
parameterDict = {"CosmologyCurrentRedshift": float,
"CosmologyComovingBoxSize": float,
"CosmologyOmegaMatterNow": float,
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/pluto/fields.py
--- a/yt/frontends/pluto/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/pluto/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Pluto-specific fields
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2009-2011 J. S. Oishi, Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/pluto/io.py
--- a/yt/frontends/pluto/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/pluto/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,21 @@
"""
The data-file handling functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Author: J. S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J. S. Oishi
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import h5py
import os
import re
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/__init__.py
--- a/yt/frontends/ramses/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/ramses/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends.ramses
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/_ramses_reader.pyx
--- a/yt/frontends/ramses/_ramses_reader.pyx Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1155 +0,0 @@
-"""
-Wrapping code for Oliver Hahn's RamsesRead++
-
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: Oliver Hahn <ohahn@stanford.edu>
-Affiliation: KIPAC / Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
-
- This file is part of yt.
-
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-# Cython wrapping code for Oliver Hahn's RAMSES reader
-from cython.operator cimport dereference as deref, preincrement as inc
-from libc.stdlib cimport malloc, free, abs, calloc, labs
-
-import numpy as np
-cimport numpy as np
-cimport cython
-
-cdef extern from "math.h":
- double ceil(double x)
- double log2(double x)
-
-cdef inline np.int64_t i64max(np.int64_t i0, np.int64_t i1):
- if i0 > i1: return i0
- return i1
-
-cdef inline np.int64_t i64min(np.int64_t i0, np.int64_t i1):
- if i0 < i1: return i0
- return i1
-
-cdef extern from "<vector>" namespace "std":
- cdef cppclass vector[T]:
- cppclass iterator:
- T operator*()
- iterator operator++()
- bint operator==(iterator)
- bint operator!=(iterator)
- vector()
- void push_back(T&)
- T& operator[](int)
- T& at(int)
- iterator begin()
- iterator end()
-
-cdef extern from "<map>" namespace "std":
- cdef cppclass map[A,B]:
- pass
-
-cdef extern from "string" namespace "std":
- cdef cppclass string:
- string(char *cstr)
- char *c_str()
- string operator*()
-
-cdef extern from "RAMSES_typedefs.h":
- pass
-
-cdef extern from "RAMSES_info.hh" namespace "RAMSES":
- enum codeversion:
- version1
- version2
- version3
-
- cdef cppclass snapshot:
- string m_filename
- codeversion m_version
- cppclass info_data:
- unsigned ncpu
- unsigned ndim
- unsigned levelmin
- unsigned levelmax
- unsigned ngridmax
- unsigned nstep_coarse
- double boxlen
- double time
- double aexp
- double H0
- double omega_m
- double omega_l
- double omega_k
- double omega_b
- double unit_l
- double unit_d
- double unit_t
-
- info_data m_header
- vector[double] ind_min
- vector[double] ind_max
-
- snapshot(string info_filename, codeversion ver)
-
- unsigned get_snapshot_num()
- unsigned getdomain_bykey( double key )
-
- #void hilbert3d(vector[double] &x, vector[double] &y, vector[double] &z,
- # vector[double] &order, unsigned bit_length)
-
-cdef extern from "RAMSES_amr_data.hh" namespace "RAMSES::AMR":
- cdef cppclass vec[real_t]:
- real_t x, y, z
- vec( real_t x_, real_t y_, real_t z_)
- vec ( vec& v)
- vec ( )
-
- # This class definition is out of date. I have unrolled the template
- # below.
- cdef cppclass cell_locally_essential[id_t, real_t]:
- id_t m_neighbor[6]
- id_t m_father
- id_t m_son[8]
- real_t m_xg[3]
- id_t m_cpu
-
- char m_pos
-
- cell_locally_essential()
-
- bint is_refined(int ison)
-
- cdef cppclass RAMSES_cell:
- unsigned m_neighbour[6]
- unsigned m_father
- unsigned m_son[8]
- float m_xg[3]
- unsigned m_cpu
-
- char m_pos
-
- RAMSES_cell()
-
- bint is_refined(int ison)
-
- cdef cppclass cell_simple[id_t, real_t]:
- id_t m_son[1]
- real_t m_xg[3]
- id_t m_cpu
-
- char m_pos
- cell_simple()
- bint is_refined(int ison)
-
- # AMR level implementation
-
- # This class definition is out of date. I have unrolled the template
- # below.
- cdef cppclass level[Cell_]:
- unsigned m_ilevel
- vector[Cell_] m_level_cells
- double m_xc[8]
- double m_yc[8]
- double m_zc[8]
-
- # I skipped the typedefs here
-
- double m_dx
- unsigned m_nx
- level (unsigned ilevel)
-
- void register_cell( Cell_ cell )
- vector[Cell_].iterator begin()
- vector[Cell_].iterator end()
-
- Cell_& operator[]( unsigned i)
- unsigned size()
-
- cdef cppclass RAMSES_level:
- unsigned m_ilevel
- vector[RAMSES_cell] m_level_cells
- double m_xc[8]
- double m_yc[8]
- double m_zc[8]
-
- # I skipped the typedefs here
-
- double m_dx
- unsigned m_nx
- RAMSES_level (unsigned ilevel)
-
- void register_cell( RAMSES_cell cell )
- vector[RAMSES_cell].iterator begin()
- vector[RAMSES_cell].iterator end()
-
- RAMSES_cell& operator[]( unsigned i)
- unsigned size()
-
- # This class definition is out of date. I have unrolled the template
- # below.
- cdef cppclass tree[Cell_, Level_]:
- cppclass header:
- vector[int] nx
- vector[int] nout
- vector[int] nsteps
- int ncpu
- int ndim
- int nlevelmax
- int ngridmax
- int nboundary
- int ngrid_current
- double boxlen
- vector[double] tout
- vector[double] aout
- vector[double] dtold
- vector[double] dtnew
- vector[double] cosm
- vector[double] timing
- double t
- double mass_sph
-
- vector[Level_] m_AMR_levels
- vector[unsigned] mheadl, m_numbl, m_taill
-
- int m_cpu
- int m_minlevel
- int m_maxlevel
- string m_fname
- unsigned m_ncoarse
- header m_header
-
- # This is from later on in the .hh file ... I don't think we need them
- # typedef proto_iterator<const tree*> const_iterator;
- # typedef proto_iterator<tree *> iterator;
-
- tree (snapshot &snap, int cpu, int maxlevel, int minlevel = 1)
-
- cppclass tree_iterator "RAMSES::AMR::RAMSES_tree::iterator":
- tree_iterator operator*()
- RAMSES_cell operator*()
- tree_iterator begin()
- tree_iterator end()
- tree_iterator to_parent()
- tree_iterator get_parent()
- void next()
- bint operator!=(tree_iterator other)
- unsigned get_cell_father()
- bint is_finest(int ison)
- int get_absolute_position()
- int get_domain()
-
- cdef cppclass RAMSES_tree:
- # This is, strictly speaking, not a header. But, I believe it is
- # going to work alright.
- cppclass header:
- vector[int] nx
- vector[int] nout
- vector[int] nsteps
- int ncpu
- int ndim
- int nlevelmax
- int ngridmax
- int nboundary
- int ngrid_current
- double boxlen
- vector[double] tout
- vector[double] aout
- vector[double] dtold
- vector[double] dtnew
- vector[double] cosm
- vector[double] timing
- double t
- double mass_sph
-
- vector[RAMSES_level] m_AMR_levels
- vector[unsigned] mheadl, m_numbl, m_taill
-
- int m_cpu
- int m_minlevel
- int m_maxlevel
- string m_fname
- unsigned m_ncoarse
- header m_header
-
- unsigned size()
-
- # This is from later on in the .hh file ... I don't think we need them
- # typedef proto_iterator<const tree*> const_iterator;
- # typedef proto_iterator<tree *> iterator;
-
- RAMSES_tree(snapshot &snap, int cpu, int maxlevel, int minlevel)
- void read()
-
- tree_iterator begin(int ilevel)
- tree_iterator end(int ilevel)
-
- tree_iterator begin()
- tree_iterator end()
-
- vec[double] cell_pos_double "cell_pos<double>" (tree_iterator it, unsigned ind)
- vec[double] grid_pos_double "grid_pos<double>" (tree_iterator it)
- vec[float] cell_pos_float "cell_pos<float>" (tree_iterator it, unsigned ind)
- vec[float] grid_pos_float "grid_pos<float>" (tree_iterator it)
-
-cdef extern from "RAMSES_amr_data.hh" namespace "RAMSES::HYDRO":
- enum hydro_var:
- density
- velocity_x
- velocity_y
- velocity_z
- pressure
- metallicit
-
- char ramses_hydro_variables[][64]
-
- # There are a number of classes here that we could wrap and utilize.
- # However, I will only wrap the methods I know we need.
-
- # I have no idea if this will work.
- cdef cppclass TreeTypeIterator[TreeType_]:
- pass
-
- # This class definition is out of date. I have unrolled the template
- # below.
- cdef cppclass data[TreeType_, Real_]:
- cppclass header:
- unsigned ncpu
- unsigned nvar
- unsigned ndim
- unsigned nlevelmax
- unsigned nboundary
- double gamma
- string m_fname
- header m_header
-
- # I don't want to implement proto_data, so we put this here
- Real_& cell_value(TreeTypeIterator[TreeType_] &it, int ind)
-
- unsigned m_nvars
- vector[string] m_varnames
- map[string, unsigned] m_var_name_map
-
- data(TreeType_ &AMRtree)
- #_OutputIterator get_var_names[_OutputIterator](_OutputIterator names)
- void read(string varname)
-
- cdef cppclass RAMSES_hydro_data:
- cppclass header:
- unsigned ncpu
- unsigned nvar
- unsigned ndim
- unsigned nlevelmax
- unsigned nboundary
- double gamma
- string m_fname
- header m_header
-
- # I don't want to implement proto_data, so we put this here
- double cell_value (tree_iterator &it, int ind)
-
- unsigned m_nvars
- vector[string] m_varnames
- map[string, unsigned] m_var_name_map
-
- RAMSES_hydro_data(RAMSES_tree &AMRtree)
- #_OutputIterator get_var_names[_OutputIterator](_OutputIterator names)
- void read(string varname)
-
- vector[vector[double]] m_var_array
-
-cdef class RAMSES_tree_proxy:
- cdef string *snapshot_name
- cdef snapshot *rsnap
-
- cdef RAMSES_tree** trees
- cdef RAMSES_hydro_data*** hydro_datas
-
- cdef int **loaded
-
- cdef public object field_ind
- cdef public object field_names
-
- # We will store this here so that we have a record, independent of the
- # header, of how many things we have allocated
- cdef int ndomains, nfields
-
- def __cinit__(self, char *fn):
- cdef int idomain, ifield, ii
- cdef RAMSES_tree *local_tree
- cdef RAMSES_hydro_data *local_hydro_data
- self.snapshot_name = new string(fn)
- self.rsnap = new snapshot(deref(self.snapshot_name), version3)
- # We now have to get our field names to fill our array
- self.trees = <RAMSES_tree**>\
- malloc(sizeof(RAMSES_tree*) * self.rsnap.m_header.ncpu)
- for ii in range(self.ndomains): self.trees[ii] = NULL
- self.hydro_datas = <RAMSES_hydro_data ***>\
- malloc(sizeof(RAMSES_hydro_data**) * self.rsnap.m_header.ncpu)
- self.ndomains = self.rsnap.m_header.ncpu
-
- # Note we don't do ncpu + 1
- for idomain in range(self.rsnap.m_header.ncpu):
- # we don't delete local_tree
- local_tree = new RAMSES_tree(deref(self.rsnap), idomain + 1,
- self.rsnap.m_header.levelmax, 0)
- local_tree.read()
- local_hydro_data = new RAMSES_hydro_data(deref(local_tree))
- self.hydro_datas[idomain] = <RAMSES_hydro_data **>\
- malloc(sizeof(RAMSES_hydro_data*) * local_hydro_data.m_nvars)
- for ii in range(local_hydro_data.m_nvars):
- self.hydro_datas[idomain][ii] = \
- new RAMSES_hydro_data(deref(local_tree))
- self.trees[idomain] = local_tree
- # We do not delete the final snapshot, which we'll use later
- #if idomain + 1 < self.rsnap.m_header.ncpu:
- # del local_hydro_data
- # Only once, we read all the field names
- self.nfields = local_hydro_data.m_nvars
- cdef string *field_name
- self.field_names = []
- self.field_ind = {}
- self.loaded = <int **> malloc(sizeof(int*) * self.ndomains)
- for idomain in range(self.ndomains):
- self.loaded[idomain] = <int *> malloc(
- sizeof(int) * local_hydro_data.m_nvars)
- for ifield in range(local_hydro_data.m_nvars):
- self.loaded[idomain][ifield] = 0
- for ifield in range(local_hydro_data.m_nvars):
- field_name = &(local_hydro_data.m_varnames[ifield])
- # Does this leak?
- self.field_names.append(field_name.c_str())
- self.field_ind[self.field_names[-1]] = ifield
- # This all needs to be cleaned up in the deallocator
-
- def get_domain_boundaries(self):
- bounds = []
- for i in range(self.rsnap.m_header.ncpu):
- bounds.append((self.rsnap.ind_min[i],
- self.rsnap.ind_max[i]))
- return bounds
-
- def __dealloc__(self):
- cdef int idomain, ifield
- # To ensure that 'delete' is used, not 'free',
- # we allocate temporary variables.
- cdef RAMSES_tree *temp_tree
- cdef RAMSES_hydro_data *temp_hdata
- for idomain in range(self.ndomains):
- for ifield in range(self.nfields):
- temp_hdata = self.hydro_datas[idomain][ifield]
- del temp_hdata
- temp_tree = self.trees[idomain]
- del temp_tree
- free(self.loaded[idomain])
- free(self.hydro_datas[idomain])
- free(self.trees)
- free(self.hydro_datas)
- free(self.loaded)
- if self.snapshot_name != NULL: del self.snapshot_name
- if self.rsnap != NULL: del self.rsnap
-
- @cython.boundscheck(False)
- @cython.wraparound(False)
- def count_zones(self):
- # We need to do simulation domains here
-
- cdef unsigned idomain, ilevel
- cdef RAMSES_tree *local_tree
- cdef RAMSES_hydro_data *local_hydro_data
- cdef RAMSES_level *local_level
- cdef tree_iterator grid_it, grid_end
-
- # All the loop-local pointers must be declared up here
-
- cdef np.ndarray[np.int64_t, ndim=1] cell_count
- cell_count = np.zeros(self.rsnap.m_header.levelmax + 1, 'int64')
- cdef int local_count = 0
- cdef int tree_count
- for idomain in range(1, self.rsnap.m_header.ncpu + 1):
- local_tree = self.trees[idomain - 1]
- for ilevel in range(local_tree.m_maxlevel + 1):
- local_count = 0
- tree_count = 0
- local_level = &local_tree.m_AMR_levels[ilevel]
- grid_it = local_tree.begin(ilevel)
- grid_end = local_tree.end(ilevel)
- while grid_it != grid_end:
- local_count += (grid_it.get_domain() == idomain)
- tree_count += 1
- grid_it.next()
- cell_count[ilevel] += local_count
-
- return cell_count
-
- cdef ensure_loaded(self, char *varname, int domain_index, int varindex = -1):
- # this domain_index must be zero-indexed
- if varindex == -1: varindex = self.field_ind[varname]
- if self.loaded[domain_index][varindex] == 1:
- return
- cdef string *field_name = new string(varname)
- print "READING FROM DISK", varname, domain_index, varindex
- self.hydro_datas[domain_index][varindex].read(deref(field_name))
- self.loaded[domain_index][varindex] = 1
- del field_name
-
- def clear_tree(self, char *varname, int domain_index):
- # this domain_index must be zero-indexed
- # We delete and re-create
- cdef int varindex = self.field_ind[varname]
- cdef string *field_name = new string(varname)
- cdef RAMSES_hydro_data *temp_hdata
- if self.loaded[domain_index][varindex] == 1:
- temp_hdata = self.hydro_datas[domain_index][varindex]
- del temp_hdata
- self.hydro_datas[domain_index][varindex] = \
- new RAMSES_hydro_data(deref(self.trees[domain_index]))
- self.loaded[domain_index][varindex] = 0
- del field_name
-
- def get_file_info(self):
- header_info = {}
- header_info["ncpu"] = self.rsnap.m_header.ncpu
- header_info["ndim"] = self.rsnap.m_header.ndim
- header_info["levelmin"] = self.rsnap.m_header.levelmin
- header_info["levelmax"] = self.rsnap.m_header.levelmax
- header_info["ngridmax"] = self.rsnap.m_header.ngridmax
- header_info["nstep_coarse"] = self.rsnap.m_header.nstep_coarse
- header_info["boxlen"] = self.rsnap.m_header.boxlen
- header_info["time"] = self.rsnap.m_header.time
- header_info["aexp"] = self.rsnap.m_header.aexp
- header_info["H0"] = self.rsnap.m_header.H0
- header_info["omega_m"] = self.rsnap.m_header.omega_m
- header_info["omega_l"] = self.rsnap.m_header.omega_l
- header_info["omega_k"] = self.rsnap.m_header.omega_k
- header_info["omega_b"] = self.rsnap.m_header.omega_b
- header_info["unit_l"] = self.rsnap.m_header.unit_l
- header_info["unit_d"] = self.rsnap.m_header.unit_d
- header_info["unit_t"] = self.rsnap.m_header.unit_t
-
- # Now we grab some from the trees
- cdef np.ndarray[np.int32_t, ndim=1] top_grid_dims = np.zeros(3, "int32")
- cdef int i
- for i in range(3):
- # Note that nx is really boundary conditions. We always have 2.
- top_grid_dims[i] = self.trees[0].m_header.nx[i]
- top_grid_dims[i] = 2
- header_info["nx"] = top_grid_dims
-
- return header_info
-
- @cython.cdivision(True)
- @cython.boundscheck(False)
- @cython.wraparound(False)
- def fill_hierarchy_arrays(self,
- np.ndarray[np.int32_t, ndim=1] top_grid_dims,
- np.ndarray[np.float64_t, ndim=2] left_edges,
- np.ndarray[np.float64_t, ndim=2] right_edges,
- np.ndarray[np.int32_t, ndim=2] grid_levels,
- np.ndarray[np.int64_t, ndim=2] grid_file_locations,
- np.ndarray[np.uint64_t, ndim=1] grid_hilbert_indices,
- np.ndarray[np.int32_t, ndim=2] child_mask,
- np.ndarray[np.float64_t, ndim=1] domain_left,
- np.ndarray[np.float64_t, ndim=1] domain_right):
- # We need to do simulation domains here
-
- cdef unsigned idomain, ilevel
-
- # All the loop-local pointers must be declared up here
- cdef RAMSES_tree *local_tree
- cdef RAMSES_hydro_data *local_hydro_data
- cdef unsigned father
-
- cdef tree_iterator grid_it, grid_end, father_it
- cdef vec[double] gvec
- cdef int grid_ind = 0, grid_aind = 0
- cdef unsigned parent_ind
- cdef bint ci
- cdef double pos[3]
- cdef double grid_half_width
- cdef unsigned long rv
-
- cdef np.int32_t rr
- cdef int i
- cdef np.ndarray[np.int64_t, ndim=1] level_cell_counts
- level_cell_counts = np.zeros(self.rsnap.m_header.levelmax + 1, 'int64')
- for idomain in range(1, self.rsnap.m_header.ncpu + 1):
- local_tree = self.trees[idomain - 1]
- for ilevel in range(local_tree.m_maxlevel + 1):
- # this gets overwritten for every domain, which is okay
- level_cell_counts[ilevel] = grid_ind
- #grid_half_width = self.rsnap.m_header.boxlen / \
- grid_half_width = 1.0 / \
- (2**(ilevel) * top_grid_dims[0])
- grid_it = local_tree.begin(ilevel)
- grid_end = local_tree.end(ilevel)
- while grid_it != grid_end:
- if grid_it.get_domain() != idomain:
- grid_ind += 1
- grid_it.next()
- continue
- gvec = local_tree.grid_pos_double(grid_it)
- left_edges[grid_aind, 0] = pos[0] = gvec.x - grid_half_width
- left_edges[grid_aind, 1] = pos[1] = gvec.y - grid_half_width
- left_edges[grid_aind, 2] = pos[2] = gvec.z - grid_half_width
- for i in range(3):
- pos[i] = (pos[i] - domain_left[i]) / (domain_right[i] - domain_left[i])
- right_edges[grid_aind, 0] = gvec.x + grid_half_width
- right_edges[grid_aind, 1] = gvec.y + grid_half_width
- right_edges[grid_aind, 2] = gvec.z + grid_half_width
- grid_levels[grid_aind, 0] = ilevel
- # Now the harder part
- father_it = grid_it.get_parent()
- grid_file_locations[grid_aind, 0] = <np.int64_t> idomain
- grid_file_locations[grid_aind, 1] = grid_ind - level_cell_counts[ilevel]
- parent_ind = father_it.get_absolute_position()
- if ilevel > 0:
- # We calculate the REAL parent index
- grid_file_locations[grid_aind, 2] = \
- level_cell_counts[ilevel - 1] + parent_ind
- else:
- grid_file_locations[grid_aind, 2] = -1
- for ci in range(8):
- rr = <np.int32_t> grid_it.is_finest(ci)
- child_mask[grid_aind, ci] = rr
- grid_ind += 1
- grid_aind += 1
- grid_it.next()
-
- def read_oct_grid(self, char *field, int level, int domain, int grid_id):
-
- self.ensure_loaded(field, domain - 1)
- cdef int varindex = self.field_ind[field]
- cdef int i
-
- cdef np.ndarray[np.float64_t, ndim=3] tr = np.empty((2,2,2), dtype='float64',
- order='F')
- cdef tree_iterator grid_it, grid_end
- cdef double* data = <double*> tr.data
-
- cdef RAMSES_tree *local_tree = self.trees[domain - 1]
- cdef RAMSES_hydro_data *local_hydro_data = self.hydro_datas[domain - 1][varindex]
-
- #inline ValueType_& cell_value( const typename TreeType_::iterator& it,
- # int ind )
- #{
- # unsigned ipos = it.get_absolute_position();
- # unsigned ilevel = it.get_level();//-m_minlevel;
- # return (m_var_array[ilevel])[m_twotondim*ipos+ind];
- #}
-
- for i in range(8):
- data[i] = local_hydro_data.m_var_array[level][8*grid_id+i]
- return tr
-
- @cython.cdivision(True)
- @cython.boundscheck(False)
- @cython.wraparound(False)
- def read_grid(self, int varindex, char *field,
- np.ndarray[np.int64_t, ndim=1] start_index,
- np.ndarray[np.int32_t, ndim=1] grid_dims,
- np.ndarray[np.float64_t, ndim=3] data,
- np.ndarray[np.int32_t, ndim=3] filled,
- int level, int ref_factor,
- np.ndarray[np.int64_t, ndim=2] component_grid_info):
- cdef RAMSES_tree *local_tree = NULL
- cdef RAMSES_hydro_data *local_hydro_data = NULL
-
- cdef int gi, i, j, k, domain, offset
- cdef int ir, jr, kr
- cdef int n
- cdef int offi, offj, offk, odind
- cdef np.int64_t di, dj, dk
- cdef np.int32_t og_start_index[3]
- cdef np.float64_t temp_data
- cdef np.int64_t end_index[3]
- cdef int to_fill = 0
- # Note that indexing into a cell is:
- # (k*2 + j)*2 + i
- for i in range(3):
- end_index[i] = start_index[i] + grid_dims[i]
- for gi in range(component_grid_info.shape[0]):
- domain = component_grid_info[gi,0]
- if domain == 0: continue
- self.ensure_loaded(field, domain - 1, varindex)
- local_tree = self.trees[domain - 1]
- local_hydro_data = self.hydro_datas[domain - 1][varindex]
- offset = component_grid_info[gi,1]
- for n in range(3): og_start_index[n] = component_grid_info[gi,3+n]
- for i in range(2*ref_factor):
- di = i + og_start_index[0] * ref_factor
- if di < start_index[0] or di >= end_index[0]: continue
- ir = <int> (i / ref_factor)
- for j in range(2 * ref_factor):
- dj = j + og_start_index[1] * ref_factor
- if dj < start_index[1] or dj >= end_index[1]: continue
- jr = <int> (j / ref_factor)
- for k in range(2 * ref_factor):
- dk = k + og_start_index[2] * ref_factor
- if dk < start_index[2] or dk >= end_index[2]: continue
- kr = <int> (k / ref_factor)
- offi = di - start_index[0]
- offj = dj - start_index[1]
- offk = dk - start_index[2]
- #print offi, filled.shape[0],
- #print offj, filled.shape[1],
- #print offk, filled.shape[2]
- if filled[offi, offj, offk] == 1: continue
-
- odind = (kr*2 + jr)*2 + ir
- temp_data = local_hydro_data.m_var_array[
- level][8*offset + odind]
- data[offi, offj, offk] = temp_data
- filled[offi, offj, offk] = 1
- to_fill += 1
- return to_fill
-
-cdef class ProtoSubgrid:
- cdef np.int64_t *signature[3]
- cdef np.int64_t left_edge[3]
- cdef np.int64_t right_edge[3]
- cdef np.int64_t dimensions[3]
- cdef public np.float64_t efficiency
- cdef np.int64_t *sigs[3]
- cdef public object grid_file_locations
- cdef public object dd
-
- @cython.boundscheck(False)
- @cython.wraparound(False)
- def __cinit__(self,
- np.ndarray[np.int64_t, ndim=1] left_index,
- np.ndarray[np.int64_t, ndim=1] dimensions,
- np.ndarray[np.int64_t, ndim=2] left_edges,
- np.ndarray[np.int64_t, ndim=2] grid_file_locations):
- # This also includes the shrinking step.
- cdef int i, ci, ng = left_edges.shape[0]
- cdef np.ndarray temp_arr
- cdef int l0, r0, l1, r1, l2, r2, i0, i1, i2
- cdef np.int64_t temp_l[3], temp_r[3], ncells
- cdef np.float64_t efficiency
- for i in range(3):
- temp_l[i] = left_index[i] + dimensions[i]
- temp_r[i] = left_index[i]
- self.signature[i] = NULL
- for gi in range(ng):
- if left_edges[gi,0] > left_index[0]+dimensions[0] or \
- left_edges[gi,0] + 2 < left_index[0] or \
- left_edges[gi,1] > left_index[1]+dimensions[1] or \
- left_edges[gi,1] + 2 < left_index[1] or \
- left_edges[gi,2] > left_index[2]+dimensions[2] or \
- left_edges[gi,2] + 2 < left_index[2]:
- #print "Skipping grid", gi, "which lies outside out box"
- continue
- for i in range(3):
- temp_l[i] = i64min(left_edges[gi,i], temp_l[i])
- temp_r[i] = i64max(left_edges[gi,i] + 2, temp_r[i])
- for i in range(3):
- self.left_edge[i] = i64max(temp_l[i], left_index[i])
- self.right_edge[i] = i64min(temp_r[i], left_index[i] + dimensions[i])
- self.dimensions[i] = self.right_edge[i] - self.left_edge[i]
- if self.dimensions[i] <= 0:
- self.efficiency = -1.0
- return
- self.sigs[i] = <np.int64_t *> malloc(
- sizeof(np.int64_t) * self.dimensions[i])
- for gi in range(self.dimensions[i]): self.sigs[i][gi] = 0
-
- # My guess is that this whole loop could be done more efficiently.
- # However, this is clear and straightforward, so it is a good first
- # pass.
- cdef np.int64_t *sig0, *sig1, *sig2
- sig0 = self.sigs[0]
- sig1 = self.sigs[1]
- sig2 = self.sigs[2]
- efficiency = 0.0
- cdef int used
- cdef np.ndarray[np.int32_t, ndim=1] mask
- mask = np.zeros(ng, 'int32')
- used = 0
- for gi in range(ng):
- for l0 in range(2):
- i0 = left_edges[gi, 0] + l0
- if i0 < self.left_edge[0]: continue
- if i0 >= self.right_edge[0]: break
- for l1 in range(2):
- i1 = left_edges[gi, 1] + l1
- if i1 < self.left_edge[1]: continue
- if i1 >= self.right_edge[1]: break
- for l2 in range(2):
- i2 = left_edges[gi, 2] + l2
- if i2 < self.left_edge[2]: continue
- if i2 >= self.right_edge[2]: break
- i = i0 - self.left_edge[0]
- sig0[i] += 1
- i = i1 - self.left_edge[1]
- sig1[i] += 1
- i = i2 - self.left_edge[2]
- sig2[i] += 1
- efficiency += 1
- mask[gi] = 1
- used += mask[gi]
- cdef np.ndarray[np.int64_t, ndim=2] gfl
- gfl = np.zeros((used, 6), 'int64')
- used = 0
- self.grid_file_locations = gfl
- for gi in range(ng):
- if mask[gi] == 1:
- grid_file_locations[gi,3] = left_edges[gi,0]
- grid_file_locations[gi,4] = left_edges[gi,1]
- grid_file_locations[gi,5] = left_edges[gi,2]
- for i in range(6):
- gfl[used, i] = grid_file_locations[gi,i]
- used += 1
-
- self.dd = np.ones(3, dtype='int64')
- for i in range(3):
- efficiency /= self.dimensions[i]
- self.dd[i] = self.dimensions[i]
- #print "Efficiency is %0.3e" % (efficiency)
- self.efficiency = efficiency
-
- def __dealloc__(self):
- free(self.sigs[0])
- free(self.sigs[1])
- free(self.sigs[2])
-
- @cython.boundscheck(False)
- @cython.wraparound(False)
- cdef void find_split(self, int *tr,):
- # First look for zeros
- cdef int i, center, ax
- cdef np.ndarray[ndim=1, dtype=np.int64_t] axes
- cdef np.int64_t strength, zcstrength, zcp
- axes = np.argsort(self.dd)[::-1]
- cdef np.int64_t *sig
- for axi in range(3):
- ax = axes[axi] #iterate over domain dimensions
- center = self.dimensions[ax] / 2
- sig = self.sigs[ax] #an array for the dimension, number of cells along that dim
- for i in range(self.dimensions[ax]):
- if sig[i] == 0 and i > 0 and i < self.dimensions[ax] - 1:
- #print "zero: %s (%s)" % (i, self.dimensions[ax])
- tr[0] = 0; tr[1] = ax; tr[2] = i
- return
- zcstrength = 0
- zcp = 0
- zca = -1
- cdef int temp
- cdef np.int64_t *sig2d
- for axi in range(3):
- ax = axes[axi]
- sig = self.sigs[ax]
- sig2d = <np.int64_t *> malloc(sizeof(np.int64_t) * self.dimensions[ax])
- sig2d[0] = sig2d[self.dimensions[ax]-1] = 0
- for i in range(1, self.dimensions[ax] - 1):
- sig2d[i] = sig[i-1] - 2*sig[i] + sig[i+1]
- for i in range(1, self.dimensions[ax] - 1):
- if sig2d[i] * sig2d[i+1] <= 0:
- strength = labs(sig2d[i] - sig2d[i+1])
- if (strength > zcstrength) or \
- (strength == zcstrength and (abs(center - i) <
- abs(center - zcp))):
- zcstrength = strength
- zcp = i
- zca = ax
- free(sig2d)
- #print "zcp: %s (%s)" % (zcp, self.dimensions[ax])
- tr[0] = 1; tr[1] = ax; tr[2] = zcp
- return
-
- @cython.wraparound(False)
- cdef void find_split_center(self, int *tr,):
- # First look for zeros
- cdef int i, center, ax
- cdef int flip
- cdef np.ndarray[ndim=1, dtype=np.int64_t] axes
- cdef np.int64_t strength, zcstrength, zcp
- axes = np.argsort(self.dd)[::-1]
- cdef np.int64_t *sig
- for axi in range(3):
- ax = axes[axi] #iterate over domain dimensions
- center = self.dimensions[ax] / 2
- sig = self.sigs[ax] #an array for the dimension, number of cells along that dim
- #frequently get stuck with many zeroes near the edge of the grid
- #let's start from the middle, working out
- for j in range(self.dimensions[ax]/2):
- flip = 1
- i = self.dimensions[ax]/2+j
- if sig[i] == 0 and i > 0 and i < self.dimensions[ax] - 1:
- #print "zero: %s (%s)" % (i, self.dimensions[ax])
- tr[0] = 0; tr[1] = ax; tr[2] = i
- return
- i = self.dimensions[ax]/2-j
- if sig[i] == 0 and i > 0 and i < self.dimensions[ax] - 1:
- #print "zero: %s (%s)" % (i, self.dimensions[ax])
- tr[0] = 0; tr[1] = ax; tr[2] = i
- return
-
-
- zcstrength = 0
- zcp = 0
- zca = -1
- cdef int temp
- cdef np.int64_t *sig2d
- for axi in range(3):
- ax = axes[axi]
- sig = self.sigs[ax]
- sig2d = <np.int64_t *> malloc(sizeof(np.int64_t) * self.dimensions[ax])
- sig2d[0] = sig2d[self.dimensions[ax]-1] = 0
- for i in range(1, self.dimensions[ax] - 1):
- sig2d[i] = sig[i-1] - 2*sig[i] + sig[i+1]
- for i in range(1, self.dimensions[ax] - 1):
- if sig2d[i] * sig2d[i+1] <= 0:
- strength = labs(sig2d[i] - sig2d[i+1])
- if (strength > zcstrength) or \
- (strength == zcstrength and (abs(center - i) <
- abs(center - zcp))):
- zcstrength = strength
- zcp = i
- zca = ax
- free(sig2d)
- #print "zcp: %s (%s)" % (zcp, self.dimensions[ax])
- tr[0] = 1; tr[1] = ax; tr[2] = zcp
- return
-
- @cython.boundscheck(False)
- @cython.wraparound(False)
- def get_properties(self):
- cdef np.ndarray[np.int64_t, ndim=2] tr = np.empty((3,3), dtype='int64')
- cdef int i
- for i in range(3):
- tr[0,i] = self.left_edge[i]
- tr[1,i] = self.right_edge[i]
- tr[2,i] = self.dimensions[i]
- return tr
-
-@cython.cdivision
-cdef np.int64_t graycode(np.int64_t x):
- return x^(x>>1)
-
-@cython.cdivision
-cdef np.int64_t igraycode(np.int64_t x):
- cdef np.int64_t i, j
- if x == 0:
- return x
- m = <np.int64_t> ceil(log2(x)) + 1
- i, j = x, 1
- while j < m:
- i = i ^ (x>>j)
- j += 1
- return i
-
-@cython.cdivision
-cdef np.int64_t direction(np.int64_t x, np.int64_t n):
- #assert x < 2**n
- if x == 0:
- return 0
- elif x%2 == 0:
- return tsb(x-1, n)%n
- else:
- return tsb(x, n)%n
-
-@cython.cdivision
-cdef np.int64_t tsb(np.int64_t x, np.int64_t width):
- #assert x < 2**width
- cdef np.int64_t i = 0
- while x&1 and i <= width:
- x = x >> 1
- i += 1
- return i
-
-@cython.cdivision
-cdef np.int64_t bitrange(np.int64_t x, np.int64_t width,
- np.int64_t start, np.int64_t end):
- return x >> (width-end) & ((2**(end-start))-1)
-
-@cython.cdivision
-cdef np.int64_t rrot(np.int64_t x, np.int64_t i, np.int64_t width):
- i = i%width
- x = (x>>i) | (x<<width-i)
- return x&(2**width-1)
-
-@cython.cdivision
-cdef np.int64_t lrot(np.int64_t x, np.int64_t i, np.int64_t width):
- i = i%width
- x = (x<<i) | (x>>width-i)
- return x&(2**width-1)
-
-@cython.cdivision
-cdef np.int64_t transform(np.int64_t entry, np.int64_t direction,
- np.int64_t width, np.int64_t x):
- return rrot((x^entry), direction + 1, width)
-
-@cython.cdivision
-cdef np.int64_t entry(np.int64_t x):
- if x == 0: return 0
- return graycode(2*((x-1)/2))
-
-@cython.cdivision
-def get_hilbert_indices(int order, np.ndarray[np.int64_t, ndim=2] left_index):
- # This is inspired by the scurve package by user cortesi on GH.
- cdef int o, i
- cdef np.int64_t x, w, h, e, d, l, b
- cdef np.int64_t p[3]
- cdef np.ndarray[np.int64_t, ndim=1] hilbert_indices
- hilbert_indices = np.zeros(left_index.shape[0], 'int64')
- for o in range(left_index.shape[0]):
- p[0] = left_index[o, 0]
- p[1] = left_index[o, 1]
- p[2] = left_index[o, 2]
- h = e = d = 0
- for i in range(order):
- l = 0
- for x in range(3):
- b = bitrange(p[3-x-1], order, i, i+1)
- l |= (b<<x)
- l = transform(e, d, 3, l)
- w = igraycode(l)
- e = e ^ lrot(entry(w), d+1, 3)
- d = (d + direction(w, 3) + 1)%3
- h = (h<<3)|w
- hilbert_indices[o] = h
- return hilbert_indices
-
-
-@cython.boundscheck(False)
-@cython.wraparound(False)
-def get_array_indices_lists(np.ndarray[np.int64_t, ndim=1] ind,
- np.ndarray[np.int64_t, ndim=1] uind,
- np.ndarray[np.int64_t, ndim=2] lefts,
- np.ndarray[np.int64_t, ndim=2] files):
- #ind are the hilbert indices
- #uind are the unique hilbert indices
- #count[n] track of how many times the nth index of uind occurs in ind
-
- cdef np.ndarray[np.int64_t, ndim=1] count = np.zeros(uind.shape[0], 'int64')
- cdef int n, i
- cdef np.int64_t mi, mui
-
- #fill in the count array
- for i in range(ind.shape[0]):
- mi = ind[i]
- for n in range(uind.shape[0]):
- if uind[n] == mi:
- count[n] += 1
- break
-
- cdef np.int64_t **alefts
- cdef np.int64_t **afiles
- afiles = <np.int64_t **> malloc(sizeof(np.int64_t *) * uind.shape[0])
- alefts = <np.int64_t **> malloc(sizeof(np.int64_t *) * uind.shape[0])
- cdef int *li = <int *> malloc(sizeof(int) * uind.shape[0])
- cdef np.ndarray[np.int64_t, ndim=2] locations
- cdef np.ndarray[np.int64_t, ndim=2] left
- all_locations = []
- all_lefts = []
-
- #having measure the repetition of each hilbert index,
- #we can know declare how much memory we will use
- for n in range(uind.shape[0]):
- locations = np.zeros((count[n], 6), 'int64')
- left = np.zeros((count[n], 3), 'int64')
- all_locations.append(locations)
- all_lefts.append(left)
- afiles[n] = <np.int64_t *> locations.data
- alefts[n] = <np.int64_t *> left.data
- li[n] = 0
-
- cdef int fi
- #now arrange all_locations and all_lefts sequentially
- #such that when they return to python
- #the 1d array mutates into a list of lists?
- for i in range(ind.shape[0]):
- mi = ind[i]
- for n in range(uind.shape[0]):
- if uind[n] == mi:
- for fi in range(3):
- alefts[n][li[n] * 3 + fi] = lefts[i, fi]
- for fi in range(6):
- afiles[n][li[n] * 6 + fi] = files[i, fi]
- li[n] += 1
- break
- free(afiles)
- free(alefts)
- return all_locations, all_lefts
-
-def recursive_patch_splitting(ProtoSubgrid psg,
- np.ndarray[np.int64_t, ndim=1] dims,
- np.ndarray[np.int64_t, ndim=1] ind,
- np.ndarray[np.int64_t, ndim=2] left_index,
- np.ndarray[np.int64_t, ndim=2] fl,
- int num_deep = 0,
- float min_eff = 0.1,
- int use_center=0,
- long split_on_vol = 0):
- cdef ProtoSubgrid L, R
- cdef np.ndarray[np.int64_t, ndim=1] dims_l, li_l
- cdef np.ndarray[np.int64_t, ndim=1] dims_r, li_r
- cdef int tt, ax, fp, i, j, k, gi
- cdef int tr[3]
- cdef long volume =0
- cdef int max_depth = 40
- volume = dims[0]*dims[1]*dims[2]
- if split_on_vol>0:
- if volume < split_on_vol:
- return [psg]
- if num_deep > max_depth:
- psg.efficiency = min_eff
- return [psg]
- if (psg.efficiency > min_eff or psg.efficiency < 0.0):
- return [psg]
- if not use_center:
- psg.find_split(tr) #default
- else:
- psg.find_split_center(tr)
-
- tt = tr[0]
- ax = tr[1]
- fp = tr[2]
- if (fp % 2) != 0:
- if dims[ax] != fp + 1:
- fp += 1
- else:
- fp -= 1
- dims_l = dims.copy()
- dims_l[ax] = fp
- li_l = ind.copy()
- for i in range(3):
- if dims_l[i] <= 0: return [psg]
- dims_r = dims.copy()
- dims_r[ax] -= fp
- li_r = ind.copy()
- li_r[ax] += fp
- for i in range(3):
- if dims_r[i] <= 0: return [psg]
- L = ProtoSubgrid(li_l, dims_l, left_index, fl)
- if L.efficiency > 1.0: raise RuntimeError
- if L.efficiency <= 0.0: rv_l = []
- elif L.efficiency < min_eff:
- rv_l = recursive_patch_splitting(L, dims_l, li_l,
- left_index, fl, num_deep + 1, min_eff,use_center,split_on_vol)
- else:
- rv_l = [L]
- R = ProtoSubgrid(li_r, dims_r, left_index, fl)
- if R.efficiency > 1.0: raise RuntimeError
- if R.efficiency <= 0.0: rv_r = []
- elif R.efficiency < min_eff:
- rv_r = recursive_patch_splitting(R, dims_r, li_r,
- left_index, fl, num_deep + 1, min_eff,use_center,split_on_vol)
- else:
- rv_r = [R]
- return rv_r + rv_l
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/api.py
--- a/yt/frontends/ramses/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/ramses/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.ramses
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
RAMSESGrid, \
RAMSESHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/data_structures.py
--- a/yt/frontends/ramses/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/ramses/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
RAMSES-specific data structures
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
import stat
@@ -298,6 +291,10 @@
def __init__(self, filename, data_style='ramses',
storage_filename = None):
# Here we want to initiate a traceback, if the reader is not built.
+ print "Hi there! RAMSES support in yt-2.X is currently very poor."
+ print "We don't recommend you use it. However, in yt-3.0, we've"
+ print "improved it considerably! So please give that a whirl instead."
+ raise NotImplementedError
import _ramses_reader
StaticOutput.__init__(self, filename, data_style)
self.storage_filename = storage_filename
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/fields.py
--- a/yt/frontends/ramses/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/ramses/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
RAMSES-specific fields
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/io.py
--- a/yt/frontends/ramses/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/ramses/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
RAMSES-specific IO
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from collections import defaultdict
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/FortranUnformatted_IO.hh
--- a/yt/frontends/ramses/ramses_headers/FortranUnformatted_IO.hh Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,291 +0,0 @@
-/*
- FortranUnformatted_IO.hh
- This file contains a C++ class for access to FORTRAN unformatted files
-
- Copyright (C) 2008 Oliver Hahn, ojha@gmx.de
-
- It is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- Foobar is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Foobar. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __FORTRAN_UNFORMATTED_HH
-#define __FORTRAN_UNFORMATTED_HH
-
-#include <fstream>
-#include <iostream>
-#include <iomanip>
-#include <vector>
-#include <stdexcept>
-#include <iterator>
-
-#define DEFAULT_ADDLEN 4
-
-//! A class to perform IO on FORTRAN unformatted files
-/*! FortranUnformatted provides sequential read access to FORTRAN
- unformatted files.
- */
-class FortranUnformatted{
-
-protected:
- std::string m_filename; //!< the file name
- std::fstream m_ifs; //!< STL ifstream object
- int m_addlen; //!< number of bytes in pre-/suffix data of FORTRAN unformatted data
-
-public:
-
- //! constructor for FortranUnformatted
- /*! simple constructor for FortranUnformatted
- * @param filename the name of the FORTRAN unformatted file to be opened for IO
- * @param mode a combination of std::ios_base::openmode determining the mode in which the files are openend
- * @param addlen the number of bytes which are pre- & postpended to unformatted arrays giving their size (default=4)
- */
- explicit FortranUnformatted( std::string filename, std::ios_base::openmode mode = std::ios_base::in, int addlen=DEFAULT_ADDLEN )
- : m_filename( filename ),
- m_ifs( m_filename.c_str(), mode|std::ios::binary ),
- m_addlen( addlen )
- {
- if(!m_ifs.good() || !m_ifs.is_open() )
- throw std::runtime_error("FortranUnformatted : unable to open file \'"
- +m_filename+"\'for read access");
- m_ifs.exceptions ( std::fstream::eofbit | std::fstream::failbit
- | std::fstream::badbit );
- }
-
- //! read data from FORTRAN unformatted file
- /*! read a scalar from FORTRAN unformatted file. If the data is not scalar
- (i.e. an array) or the function is called with a template parameter of
- a different size than the stored data, a std::runtime_error is thrown.
- \param r reference to the return value
- */
- template< typename T > void read( T& r )
- {
- unsigned n1,n2;
-
- try{
- m_ifs.read( (char*)&n1, m_addlen );
- m_ifs.read( (char*)&r, sizeof(T) );
- m_ifs.read( (char*)&n2, m_addlen );
- }catch(...){
- throw;
- }
-
- if( n1 != sizeof(T) || n1 != n2 ){
- throw std::runtime_error("FortranUnformatted::read : invalid type"\
- " conversion when reading FORTRAN unformatted.");
- }
- }
-
- //! write a single variable, arbitrary type to the Fortran unformatted file
- /*!
- * @param w the variable, arbitrary type
- */
- template< typename T > void write( T& w )
- {
- unsigned n1 = sizeof(T);
-
- try{
- m_ifs.write( (char*)&n1, m_addlen );
- m_ifs.write( (char*)&w, n1 );
- m_ifs.write( (char*)&n1, m_addlen );
- }catch(...){
- throw;
- }
- }
-
-
- //! write a range of a container data object given by iterators
- /*!
- * @param begin iterator pointing to the beginning of the range
- * @param end iterator pointing to the end of the range
- */
- template< typename _InputIterator >
- void write( _InputIterator begin, _InputIterator end )
- {
- _InputIterator it(begin);
- unsigned nelem = std::distance(begin,end);
- unsigned sz = sizeof(*begin);
- unsigned totsz = sz*nelem;
-
- try{
- m_ifs.write( (char*)&totsz, m_addlen );
- while( it!=end ){
- m_ifs.write( (char*)&(*it), sz );
- ++it;
- }
- m_ifs.write( (char*)&totsz, m_addlen );
- }catch(...){
- throw;
- }
- }
-
- //! read masked data
- /*! this function reads data but discards all those for which the iterator
- * mask is not set to a 'true' bit. It is necessary that the mask iterator
- * can be increased the same number of times as there is data to be read.
- * @param mask an iterator which is increased for each element read from the file and determines rejection or not
- * @param data an output iterator to which the data is written
- */
- template< typename basetype, typename _InputIterator, typename _OutputIterator >
- _InputIterator read( _InputIterator mask, _OutputIterator data )
- {
- _InputIterator oldmask = mask;
- std::vector<basetype> temp;
- typename std::vector<basetype>::iterator temp_it;
-
- unsigned n1,n2;
- try{
- m_ifs.read( (char*)&n1, m_addlen );
- temp.resize(n1/sizeof(basetype));
- m_ifs.read( (char*)&temp[0], n1 );
-
- for( temp_it = temp.begin(); temp_it!=temp.end(); ++temp_it ){
- //... copy data if masked - this also performs a type conversion if needed ...//
- if( *mask )
- *data = *temp_it;
- oldmask = mask++;
- if( mask == oldmask ) break;
- }
- //std::copy(temp.begin(),temp.end(), data);
-
- m_ifs.read( (char*)&n2, m_addlen );
-
- }catch(...){
- throw std::runtime_error("FortranUnformatted::read : error reading FORTRAN unformatted.");
- }
- if( n1!=n2 )
- throw std::runtime_error("FortranUnformatted::read : invalid type conversion when"\
- " reading FORTRAN unformatted.");
-
- return mask;
- }
-
-
- //! read data
- /*! this function reads data from a Fortran unformatted file and writes it to
- * an output iterator.
- * @param data an output iterator to which the data is written
- */
- template< typename basetype, typename _OutputIterator >
- _OutputIterator read( _OutputIterator data )
- {
- std::vector<basetype> temp;
- typename std::vector<basetype> temp_it;
-
- unsigned n1,n2;
- try{
- m_ifs.read( (char*)&n1, m_addlen );
- temp.resize(n1/sizeof(basetype));
- m_ifs.read( (char*)&temp[0], n1 );
- //... copy data - this also performs a type conversion if needed ...//
- std::copy(temp.begin(),temp.end(), data);
- m_ifs.read( (char*)&n2, m_addlen );
-
- }catch(...){
- throw std::runtime_error("FortranUnformatted::read : error reading FORTRAN unformatted.");
- }
- if( n1!=n2 )
- throw std::runtime_error("FortranUnformatted::read : invalid type conversion when"\
- " reading FORTRAN unformatted.");
-
-
- return data;
- }
-
- //! check if beyond end-of-file
- bool eof( void )
- {
- bool bcheck;
- try{
- bcheck = (m_ifs.peek()==EOF);
- }catch(...){
- m_ifs.clear();
- return true;
- }
- return bcheck;
- }
-
- //! skip ahead in FORTRAN unformatted file
- /*! skips n datasets ahead in FORTRAN unformatted file. Equivalent to
- * n READ(X) without argument in FORTRAN
- * @param n number of entries to skip ahead (scalar or arrays)
- */
- void skip_n( unsigned n )
- {
- unsigned ndone = 0;
- while( ndone < n ){
- int n1, n2;
- try{
- m_ifs.read( (char*)&n1, m_addlen );
- m_ifs.seekg( n1, std::ios::cur );
- m_ifs.read( (char*)&n2, m_addlen );
- }catch(...){
- throw std::runtime_error("FortranUnformatted::skip_n : error seeking in FORTRAN unformatted file.");
- }
- ++ndone;
- }
- }
-
- //! just a std::streampos
- typedef std::streampos streampos;
-
- //! wrapper for the std::ifstream::tellg() function
- streampos tellg( void )
- { return m_ifs.tellg(); }
-
- //! wrapper for the std::ifstream::seekg() function
- void seekg( streampos pos )
- { m_ifs.seekg( pos ); /*, std::ios::beg );*/ }
-
-
- //! jump to dataset in FORTRAN unformatted files
- /*! moves past the nth WRITE(X) operation from the beginning in a FORTRAN
- * unformatted file
- * @param n number of entries to skip (scalar or arrays)
- * @sa skip_n()
- */
- void skip_n_from_start( unsigned n )
- {
- m_ifs.seekg(0,std::ios::beg);
- skip_n( n );
- }
-
- //! skip ahead in FORTRAN unformatted file
- /*! skips to next dataset in FORTRAN unformatted file. Equivalent to a
- * READ(X) without argument in FORTRAN
- * @sa skip_n
- */
- void skip( void )
- {
- skip_n(1);
- }
-
- //! rewind file
- /*! rewinds the file to the beginning
- */
- void rewind( void )
- {
- m_ifs.seekg(0,std::ios::beg);
- }
-
-
-
- /*template< typename T >
- friend FortranUnformatted& operator>> (FortranUnformatted &is, T& data);
-
- template< typename T >
- friend FortranUnformatted& operator>> (FortranUnformatted &is, std::vector<T>& data);*/
-};
-
-
-
-#endif //__FORTRAN_UNFORMATTED_HH
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/RAMSES_amr_data.hh
--- a/yt/frontends/ramses/ramses_headers/RAMSES_amr_data.hh Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,970 +0,0 @@
-/*
- This file is part of libRAMSES++
- a C++ library to access snapshot files
- generated by the simulation code RAMSES by R. Teyssier
-
- Copyright (C) 2008-09 Oliver Hahn, ojha@gmx.de
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __RAMSES_AMR_DATA_HH
-#define __RAMSES_AMR_DATA_HH
-
-#include <fstream>
-#include <iostream>
-#include <iomanip>
-#include <vector>
-#include <map>
-#include <cmath>
-#include <iterator>
-
-#include "FortranUnformatted_IO.hh"
-#include "RAMSES_info.hh"
-#include "RAMSES_amr_data.hh"
-
-#ifndef FIX
-#define FIX(x) ((int)((x)+0.5))
-#endif
-
-#define ACC_NL(cpu,lvl) ((cpu)+m_header.ncpu*(lvl))
-#define ACC_NLIT(cpu,lvl) ((cpu)+m_plevel->m_header.ncpu*(lvl))
-#define ACC_NB(cpu,lvl) ((cpu)+m_header.nboundary*(lvl))
-
-#define LENGTH_POINTERLISTS 4096
-#define ENDPOINT ((unsigned)(-1))
-
-namespace RAMSES{
-namespace AMR{
-
-/**************************************************************************************\
- *** auxiliary datatypes **************************************************************
-\**************************************************************************************/
-
-template< typename real_t>
-struct vec{
- real_t x,y,z;
-
- vec( real_t x_, real_t y_, real_t z_ )
- : x(x_),y(y_),z(z_)
- { }
-
- vec( const vec& v )
- : x(v.x),y(v.y),z(v.z)
- { }
-
- vec( void )
- : x(0.0), y(0.0), z(0.0)
- { }
-};
-
-/**************************************************************************************\
- *** AMR cell base types **************************************************************
-\**************************************************************************************/
-
-template <typename id_t=unsigned, typename real_t=float>
-class cell_locally_essential{
-public:
- id_t m_neighbour[6];
- id_t m_father;
- id_t m_son[8];
- real_t m_xg[3];
- id_t m_cpu;
-
- char m_pos;
-
- cell_locally_essential(){}
-
- bool is_refined( int ison ) const
- { return ((int)m_son[ison]!=-1); }
-};
-
-template <typename id_t=unsigned, typename real_t=float>
-class cell_simple{
-public:
- id_t m_son[1];
- real_t m_xg[3];
- id_t m_cpu;
-
- char m_pos;
-
- cell_simple(){}
-
- bool is_refined( int ison=0 ) const
- { return ((int)m_son[0]!=-1); }
-};
-
-
-//.... some type traits that are used to distinguish what data needs to be read ....//
-template<class X> struct is_locally_essential
-{ enum { check=false }; };
-
-template<> struct is_locally_essential<cell_locally_essential<> >
-{ enum { check=true }; };
-
-template<> struct is_locally_essential<cell_simple<> >
-{ enum { check=false }; };
-
-
-/**************************************************************************************\
- *** AMR level class definition, subsumes a collection of AMR cells *******************
-\**************************************************************************************/
-
-//! AMR level implementation
-template< typename Cell_ >
-class level{
-public:
- unsigned m_ilevel;
- std::vector< Cell_ > m_level_cells;
-
- double m_xc[8]; //!< relative x-offsets of the 8 children for current refinement level
- double m_yc[8]; //!< relative y-offsets of the 8 children for current refinement level
- double m_zc[8]; //!< relative z-offsets of the 8 children for current refinement level
-
- typedef typename std::vector< Cell_ >::iterator iterator;
- typedef typename std::vector< Cell_ >::const_iterator const_iterator;
-
- double m_dx;
- unsigned m_nx;
-
- level( unsigned ilevel )
- : m_ilevel( ilevel )
- {
- m_dx = pow(0.5,ilevel+1);
- m_nx = (unsigned)(1.0/m_dx);
-
- for( unsigned k=1; k<=8; k++ )
- {
- //... initialize positions of son cell centres
- //... relative to parent cell centre
- unsigned
- iz=(k-1)/4,
- iy=(k-1-4*iz)/2,
- ix=(k-1-2*iy-4*iz);
- m_xc[k-1]=((double)ix-0.5f)*m_dx;
- m_yc[k-1]=((double)iy-0.5f)*m_dx;
- m_zc[k-1]=((double)iz-0.5f)*m_dx;
- }
- }
-
- void register_cell( const Cell_ & cell )
- { m_level_cells.push_back( cell ); }
-
- const_iterator begin( void ) const{ return m_level_cells.begin(); }
- iterator begin( void ){ return m_level_cells.begin(); }
-
- const_iterator end( void ) const{ return m_level_cells.end(); }
- iterator end( void ){ return m_level_cells.end(); }
-
- Cell_& operator[]( unsigned i )
- { return m_level_cells[i]; }
-
- unsigned size( void ) { return m_level_cells.size(); }
-};
-
-
-/**************************************************************************************\
- *** constants ************************************************************************
-\**************************************************************************************/
-
-//! neighbour cell access pattern
-const static int nbor_cell_map[6][8] =
-{
- {1,0,3,2,5,4,7,6},
- {1,0,3,2,5,4,7,6},
- {2,3,0,1,6,7,4,5},
- {2,3,0,1,6,7,4,5},
- {4,5,6,7,0,1,2,3},
- {4,5,6,7,0,1,2,3}
-};
-
-
-/**************************************************************************************\
- *** AMR tree class implements the hierarchy of AMR levels with links *****************
-\**************************************************************************************/
-
-/*!
- * @class tree
- * @brief encapsulates the hierarchical AMR structure data from a RAMSES simulation snapshot
- *
- * This class provides low-level read access to RAMSES amr_XXXXX.out files.
- * Data from a given list of computational domains can be read and is
- * stored in internal datastructures.
- * Access to hydrodynamical variables stored in the cells is provided
- * through member functions of class RAMSES_hydro_level and iterators
- * provided by this class
- * @sa RAMSES_hydro_level
- */
-template< class Cell_, class Level_ >
-class tree
-{
-
-public:
-
- //! header amr meta-data structure, for details see also RAMSES source code (file amr/init_amr.f90)
- struct header{
- std::vector< int > nx; //!< base mesh resolution [3-vector]
- std::vector< int > nout; //!< 3 element vector: [noutput2, iout2, ifout2]
- std::vector< int > nsteps; //!< 2 element vector: [nstep, nstep_coarse]
- int ncpu; //!< number of CPUs (=computational domains) in the simulation
- int ndim; //!< number of spatial dimensions
- int nlevelmax; //!< maximum refinement level allowed
- int ngridmax; //!< maxmium number of grid cells stored per CPU
- int nboundary; //!< number of boundary cells (=ghost cells)
- int ngrid_current; //!< currently active grid cells
- double boxlen; //!< length of the simulation box
- std::vector<double> tout; //!< output times (1..noutput)
- std::vector<double> aout; //!< output times given as expansion factors (1..noutput)
- std::vector<double> dtold; //!< old time steps (1..nlevelmax)
- std::vector<double> dtnew; //!< next time steps (1..nlevelmax)
- std::vector<double> stat; //!< some diagnostic snapshot meta data: [const, mass_tot0, rho_tot]
- std::vector<double> cosm; //!< cosmological meta data: [omega_m, omega_l, omega_k, omega_b, h0, aexp_ini, boxlen_ini)
- std::vector<double> timing; //!< timing information: [aexp, hexp, aexp_old, epot_tot_int, epot_tot_old]
- double t; //!< time stamp of snapshot
- double mass_sph; //!< mass threshold used to flag for cell refinement
- };
-
- std::vector< Level_ > m_AMR_levels; //! STL vector holding the AMR level hierarchy
-
- std::vector<unsigned>
- m_headl, //!< head indices, point to first active cell
- m_numbl, //!< number of active cells
- m_taill; //!< tail indices, point to last active cell
-
- int m_cpu; //! index of computational domain being accessed
- int m_minlevel; //! lowest refinement level to be loaded
- int m_maxlevel; //! highest refinement level to be loaded
- std::string m_fname; //! the snapshot filename amr_XXXXX.out
- unsigned m_ncoarse; //! number of coarse grids
- struct header m_header; //! the header meta data
-
-
-protected:
-
- //! prototypical grid iterator
- /*! iterates through cells on one level, provides access to neighbours, parents, children
- */
- template< typename TreePointer_, typename Index_=unsigned >
- class proto_iterator{
- public:
-
- friend class tree;
-
- typedef Index_ value_type;
- typedef Index_& reference;
- typedef Index_* pointer;
-
- protected:
-
- Index_
- m_ilevel, //!< refinement level on which we iteratre
- m_icpu; //!< domain on which we iterate
-
- typedef typename std::vector< Cell_ >::const_iterator Iterator_;
- Iterator_ m_cell_it; //!< basis iterator that steps through cells on one level
- TreePointer_ m_ptree; //!< pointer to associated tree object
-
-
- //! low_level construtor that should only be used from within AMR_tree
- proto_iterator( unsigned level_, unsigned cpu_, Iterator_ it_, TreePointer_ ptree_ )
- : m_ilevel(level_), m_icpu(cpu_), m_cell_it(it_), m_ptree( ptree_ )
- { }
-
- public:
-
- //! this is either the copy-constructor or a constructor for implicit type conversion
- template< typename X >
- proto_iterator( proto_iterator<X> &it )
- : m_ilevel( it.m_ilevel ), m_icpu( it.m_icpu ), m_cell_it( it.m_cell_it ), m_ptree( it.m_ptree )
- { }
-
- //! empty constructor, doesn't initialize anything
- proto_iterator()
- : m_ilevel(0), m_icpu(0), m_ptree(NULL)
- { }
-
- //! test for equality between two proto_iterator instantiations
- template< typename X >
- inline bool operator==( const proto_iterator<X>& x ) const
- { return m_cell_it==x.m_cell_it; }
-
- //! test for inequality between two proto_iterator instantiations
- template< typename X >
- inline bool operator!=( const proto_iterator<X>& x ) const
- { return m_cell_it!=x.m_cell_it; }
-
- //! iterate forward, prefix
- inline proto_iterator& operator++()
- { ++m_cell_it; return *this; }
-
- //! iterate forward, postfix
- inline proto_iterator operator++(int)
- { proto_iterator<TreePointer_> it(*this); operator++(); return it; }
-
- inline void next(void) { operator++(); }
-
- //! iterate backward, prefix
- inline proto_iterator& operator--()
- { --m_cell_it; return *this; }
-
- //! iterate backward, postfix
- inline proto_iterator operator--(int)
- { proto_iterator<TreePointer_> it(*this); operator--(); return it; }
-
- //! iterate several forward
- inline proto_iterator operator+=(int i)
- { proto_iterator<TreePointer_> it(*this); m_cell_it+=i; return it; }
-
- //! iterate several backward
- inline proto_iterator operator-=(int i)
- { proto_iterator<TreePointer_> it(*this); m_cell_it-=i; return it; }
-
- //! assign two proto_iterators, this will fail if no typecast between X and TreePoint_ exists
- template< typename X >
- inline proto_iterator& operator=(const proto_iterator<X>& x)
- { m_cell_it = x.m_cell_it; m_ilevel = x.m_ilevel; m_icpu = x.m_icpu; m_ptree = x.m_ptree; return *this; }
-
- //! iterator dereferencing, returns an array index
- inline Cell_ operator*() const
- { return *m_cell_it; }
-
- inline Index_ get_cell_father() const { return (*m_cell_it).m_father; }
- inline bool is_finest(int ison) { return !((*m_cell_it).is_refined(ison)); }
-
- //! move iterator to a child grid
- /*!
- * @param ind index of the child grid in the parent oct (0..7)
- * @return iterator pointing to child grid if it exists, otherwise 'end' of currrent level
- */
- //template< typename X >
- inline proto_iterator& to_child( int ind )
- {
- if( !(*m_cell_it).is_refined(ind) )
- return (*this = m_ptree->end( m_ilevel ));
- ++m_ilevel;
- m_cell_it = m_ptree->m_AMR_levels[m_ilevel].begin()+(*m_cell_it).m_son[ind];
- return *this;
- }
-
-
- //! get an iterator to a child grid
- /*!
- * @param ind index of the child grid in the parent oct (0..7)
- * @return iterator pointing to child grid if it exists, otherwise 'end' of currrent level
- */
- //template< typename X >
- inline proto_iterator get_child( int ind ) const
- {
- proto_iterator it(*this);
- it.to_child( ind );
- return it;
- }
-
- inline char get_child_from_pos( double x, double y, double z ) const
- {
- bool bx,by,bz;
- bx = x > (*m_cell_it).m_xg[0];
- by = y > (*m_cell_it).m_xg[1];
- bz = z > (*m_cell_it).m_xg[2];
-
- //std::cerr << "(" << bx << ", " << by << ", " << bz << ")\n";
-
- return (char)bx+2*((char)by+2*(char)bz);
- }
-
-
- //! move iterator to the parent grid
- /*!
- * @return iterator pointing to the parent grid if it exists, 'end' of the current level otherwise
- */
-
- inline proto_iterator& to_parent( void )
- {
- if( m_ilevel==0 )
- return (*this = m_ptree->end( m_ilevel ));
- --m_ilevel;
- m_cell_it = m_ptree->m_AMR_levels[m_ilevel].begin()+(*m_cell_it).m_father;
- return *this;
- }
-
- //! query whether a given child cell is refined
- inline bool is_refined( int i ) const
- {
- return (*m_cell_it).is_refined(i);
- }
-
- //! get an iterator to the parent grid
- /*!
- * @return iterator pointing to the parent grid if it exists, 'end' of the current level otherwise
- */
- inline proto_iterator get_parent( void ) const
- {
- proto_iterator it(*this);
- it.to_parent();
- return it;
- }
-
- //! move iterator to spatial neighbour grid
- /*!
- * @param ind index of neighbour (0..5)
- * @return iterator pointing to neighbour grid if it exists, otherwise 'end' of currrent level
- */
- inline proto_iterator& to_neighbour( int ind )
- {
- unsigned icell = nbor_cell_map[ind][(int)(*m_cell_it).m_pos];
- m_cell_it = m_ptree->m_AMR_levels[m_ilevel-1].begin()+(*m_cell_it).m_neighbour[ind];
-
- if( !(*m_cell_it).is_refined(icell) )
- return (*this = m_ptree->end(m_ilevel));
-
- m_cell_it = m_ptree->m_AMR_levels[m_ilevel].begin()+(*m_cell_it).m_son[icell];
- return *this;
- }
-
- //! get an iterator to spatial neighbour grid
- /*!
- * @param ind index of neighbour (0..5)
- * @return iterator pointing to neighbour grid if it exists, otherwise 'end' of currrent level
- */
- inline proto_iterator& get_neighbour( int ind )
- {
- proto_iterator it(*this);
- it.to_neighbour(ind);
- return it;
- }
-
- inline Index_ get_level( void ) const
- { return m_ilevel; }
-
- inline int get_domain( void ) const
- { return (*m_cell_it).m_cpu; }
-
- inline int get_absolute_position( void ) const
- {
- return (unsigned)(std::distance<Iterator_>(m_ptree->m_AMR_levels[m_ilevel].begin(),m_cell_it));
- }
-
-
- };
-
-public:
-
- typedef proto_iterator<const tree*> const_iterator;
- typedef proto_iterator<tree*> iterator;
-
-
-
-protected:
-
- //! read header meta data from amr snapshot file
- void read_header( void );
-
-
-
- //! generate the amr_XXXXX.out filename for a given computational domain
- /*! @param icpu index of comutational domain (base 1)
- */
- std::string gen_fname( int icpu );
-
- //! generate the amr_XXXXX.out filename from the path to the info_XXXXX.out file
- std::string rename_info2amr( const std::string& info );
-
-
- #define R_SQR(x) ((x)*(x))
-
- template< typename Real_ >
- inline bool ball_intersection( const vec<Real_>& xg, double dx2, const vec<Real_>& xc, Real_ r2 )
- {
- Real_ dmin = 0, bmin, bmax;
-
- //.. x ..//
- bmin = xg.x-dx2;
- bmax = xg.x+dx2;
- if( xc.x < bmin ) dmin += R_SQR(xc.x - bmin ); else
- if( xc.x > bmax ) dmin += R_SQR(xc.x - bmax );
-
- //.. y ..//
- bmin = xg.y-dx2;
- bmax = xg.y+dx2;
- if( xc.y < bmin ) dmin += R_SQR(xc.y - bmin ); else
- if( xc.y > bmax ) dmin += R_SQR(xc.y - bmax );
-
- //.. x ..//
- bmin = xg.z-dx2;
- bmax = xg.z+dx2;
- if( xc.z < bmin ) dmin += R_SQR(xc.z - bmin ); else
- if( xc.z > bmax ) dmin += R_SQR(xc.z - bmax );
-
- if( dmin <= r2 ) return true;
- return false;
- }
-
- template< typename Real_ >
- inline bool shell_intersection( const vec<Real_>& xg, double dx2, const vec<Real_>& xc, Real_ r1_2, Real_ r2_2 )
- {
- Real_ dmax = 0, dmin = 0, a, b, bmin, bmax;
- if( r1_2 > r2_2 ) std::swap(r1_2,r2_2);
-
- //.. x ..//
- bmin = xg.x-dx2;
- bmax = xg.x+dx2;
- a = R_SQR( xc.x - bmin );
- b = R_SQR( xc.x - bmax );
- dmax += std::max( a, b );
- if( xc.x < bmin ) dmin += a; else
- if( xc.x > bmax ) dmin += b;
-
- //.. y ..//
- bmin = xg.y-dx2;
- bmax = xg.y+dx2;
- a = R_SQR( xc.y - bmin );
- b = R_SQR( xc.y - bmax );
- dmax += std::max( a, b );
- if( xc.y < bmin ) dmin += a; else
- if( xc.y > bmax ) dmin += b;
-
- //.. z ..//
- bmin = xg.z-dx2;
- bmax = xg.z+dx2;
- a = R_SQR( xc.z - bmin );
- b = R_SQR( xc.z - bmax );
- dmax += std::max( a, b );
- if( xc.z < bmin ) dmin += a; else
- if( xc.z > bmax ) dmin += b;
-
-
- if( dmin <= r2_2 && r1_2 <= dmax ) return true;
- return false;
- }
-
- template< typename Real_ >
- inline bool sphere_intersection( const vec<Real_>& xg, double dx2, const vec<Real_>& xc, Real_ r2 )
- {
- Real_ dmax = 0, dmin = 0, a, b, bmin, bmax;
-
- //.. x ..//
- bmin = xg.x-dx2;
- bmax = xg.x+dx2;
- a = R_SQR( xc.x - bmin );
- b = R_SQR( xc.x - bmax );
- dmax += std::max( a, b );
- if( xc.x < bmin ) dmin += a; else
- if( xc.x > bmax ) dmin += b;
-
- //.. y ..//
- bmin = xg.y-dx2;
- bmax = xg.y+dx2;
- a = R_SQR( xc.y - bmin );
- b = R_SQR( xc.y - bmax );
- dmax += std::max( a, b );
- if( xc.y < bmin ) dmin += a; else
- if( xc.y > bmax ) dmin += b;
-
- //.. z ..//
- bmin = xg.z-dx2;
- bmax = xg.z+dx2;
- a = R_SQR( xc.z - bmin );
- b = R_SQR( xc.z - bmax );
- dmax += std::max( a, b );
- if( xc.z < bmin ) dmin += a; else
- if( xc.z > bmax ) dmin += b;
-
-
- if( dmin <= r2 && r2 <= dmax ) return true;
- return false;
- }
-
- #undef R_SQR
-
-public:
-
- //! low-level constructor - should not be called from outside because then you can really screw up things
- /*!
- * @param snap the associated RAMSES::snapshot object
- * @param cpu domain for which to read the AMR tree
- * @param maxlevel maximum refinement level to consider
- * @param minlevel minimum refinement level to consider (default=1)
- */
- tree( RAMSES::snapshot& snap, int cpu, int maxlevel, int minlevel=1 )
- : m_cpu( cpu ), m_minlevel( minlevel ), m_maxlevel( maxlevel ), m_fname( rename_info2amr(snap.m_filename) )
- {
- read_header();
-
- if( cpu > m_header.ncpu || cpu <= 0)
- throw std::runtime_error("RAMSES_particle_data: expect to read from out of range CPU.");
-
- }
-
- //! perform the read operation of AMR data
- void read( void );
-
- //! end const_iterator for given refinement level
- const_iterator end( int ilevel ) const
- {
- if( ilevel <= m_maxlevel )
- return const_iterator( ilevel, m_cpu, m_AMR_levels.at(ilevel).end(), this );
- else
- return const_iterator( ilevel, m_cpu, m_AMR_levels.at(0).end(), this );
- }
-
- //! end iterator for given refinement level
- iterator end( int ilevel )
- {
- if( ilevel <= m_maxlevel )
- return iterator( ilevel, m_cpu, m_AMR_levels.at(ilevel).end(), this );
- else
- return iterator( ilevel, m_cpu, m_AMR_levels.at(0).end(), this );
- }
-
- //! begin const_iterator for given refinement level
- const_iterator begin( int ilevel ) const
- {
- if( ilevel <= m_maxlevel )
- return const_iterator( ilevel, m_cpu, m_AMR_levels.at(ilevel).begin(), this );
- else
- return this->end(ilevel);
- }
-
- //! begin iterator for given refinement level
- iterator begin( int ilevel )
- {
- if( ilevel <= m_maxlevel )
- return iterator( ilevel, m_cpu, m_AMR_levels.at(ilevel).begin(), this );
- else
- return this->end(ilevel);
- }
-
-
- //! return the center of a child cell associated with a grid iterator
- /*!
- * @param it grid iterator
- * @param ind sub-cell index (0..7)
- * @return vec vector containing the coordinates
- */
- template< typename Real_ >
- inline vec<Real_> cell_pos( const iterator& it, unsigned ind )
- {
- vec<Real_> pos;
- pos.x = (*it).m_xg[0]+m_AMR_levels[it.m_ilevel].m_xc[ind];
- pos.y = (*it).m_xg[1]+m_AMR_levels[it.m_ilevel].m_yc[ind];
- pos.z = (*it).m_xg[2]+m_AMR_levels[it.m_ilevel].m_zc[ind];
- return pos;
- }
-
- //! return the center of the grid associated with a grid iterator
- /*!
- * @param it grid iterator
- * @return vec vector containing the coordinates
- */
- template< typename Real_ >
- inline vec<Real_> grid_pos( const iterator& it )
- {
- vec<Real_> pos;
- pos.x = (*it).m_xg[0];
- pos.y = (*it).m_xg[1];
- pos.z = (*it).m_xg[2];
- return pos;
- }
-
- template< typename Real_ >
- inline bool ball_intersects_grid( const iterator& it, const vec<Real_>& xc, Real_ r2 )
- {
- Real_ dx2 = 0.5/pow(2,it.get_level());
- vec<Real_> xg = grid_pos<Real_>(it);
- return ball_intersection( xg, dx2, xc, r2 );
- }
-
- template< typename Real_ >
- inline bool ball_intersects_cell( const iterator& it, char ind, const vec<Real_>& xc, Real_ r2 )
- {
- Real_ dx2 = 0.5/pow(2,it.get_level()+1);
- vec<Real_> xg = cell_pos<Real_>(it,ind);
- return ball_intersection( xg, dx2, xc, r2 );
- }
-
- template< typename Real_ >
- inline bool shell_intersects_grid( iterator& it, const vec<Real_>& xc, Real_ r1_2, Real_ r2_2 )
- {
- Real_ dx2 = 0.5/pow(2,it.get_level());
- vec<Real_> xg = grid_pos<Real_>(it);
- return shell_intersection( xg, dx2, xc, r1_2, r2_2 );
- }
-
- template< typename Real_ >
- inline bool shell_intersects_cell( iterator& it, char ind, const vec<Real_>& xc, Real_ r1_2, Real_ r2_2 )
- {
- Real_ dx2 = 0.5/pow(2,it.get_level()+1);
- vec<Real_> xg = cell_pos<Real_>(it,ind);
- return shell_intersection( xg, dx2, xc, r1_2, r2_2 );
- }
-
- template< typename Real_ >
- inline bool sphere_intersects_grid( const iterator& it, const vec<Real_>& xc, Real_ r2 )
- {
- Real_ dx2 = 0.5/pow(2,it.get_level());
- vec<Real_> xg = grid_pos<Real_>(it);
- return sphere_intersection( xg, dx2, xc, r2 );
- }
-
- template< typename Real_ >
- inline bool sphere_intersects_cell( const iterator& it, char ind, const vec<Real_>& xc, Real_ r2 )
- {
- Real_ dx2 = 0.5/pow(2,it.get_level()+1);
- vec<Real_> xg = cell_pos<Real_>(it,ind);
- return sphere_intersection( xg, dx2, xc, r2 );
- }
-
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-template< class Cell_, class Level_ >
-void tree<Cell_,Level_>::read_header( void )
-{
- FortranUnformatted ff( gen_fname(m_cpu) );
-
- //-- read header data --//
-
- ff.read( m_header.ncpu );
- ff.read( m_header.ndim );
- ff.read<unsigned>( std::back_inserter(m_header.nx) );
- ff.read( m_header.nlevelmax );
- ff.read( m_header.ngridmax );
- ff.read( m_header.nboundary );
- ff.read( m_header.ngrid_current );
- ff.read( m_header.boxlen );
-
- ff.read<unsigned>( std::back_inserter(m_header.nout) );
- ff.read<double>( std::back_inserter(m_header.tout) );
- ff.read<double>( std::back_inserter(m_header.aout) );
- ff.read( m_header.t );
- ff.read<double>( std::back_inserter(m_header.dtold) );
- ff.read<double>( std::back_inserter(m_header.dtnew) );
- ff.read<unsigned>( std::back_inserter(m_header.nsteps) );
- ff.read<double>( std::back_inserter(m_header.stat) );
- ff.read<double>( std::back_inserter(m_header.cosm) );
- ff.read<double>( std::back_inserter(m_header.timing) );
- ff.read( m_header.mass_sph );
-
- m_ncoarse = m_header.nx[0]*m_header.nx[1]*m_header.nx[2];
-}
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-template< class Cell_, class Level_ >
-std::string tree<Cell_,Level_>::gen_fname( int icpu )
-{
- std::string fname;
- char ext[32];
- fname = m_fname;
- fname.erase(fname.rfind('.')+1);
- sprintf(ext,"out%05d",icpu);
- fname.append(std::string(ext));
- return fname;
-}
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-template< class Cell_, class Level_ >
-std::string tree<Cell_,Level_>::rename_info2amr( const std::string& info )
-{
- std::string amr;
- unsigned ii = info.rfind("info");
- amr = info.substr(0,ii)+"amr" + info.substr(ii+4, 6) + ".out00001";
- return amr;
-}
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-template< class Cell_, class Level_ >
-void tree<Cell_,Level_>::read( void )
-{
- // indexing map used to associate RAMSES internal cell IDs with new IDs
- std::map<unsigned,unsigned> m_ind_grid_map;
-
- std::vector<int> cell_cpu;
- std::vector<unsigned> cell_level;
- std::vector<unsigned> itmp;
-
-
- typename std::vector< Level_ >::iterator amr_level_it;
-
- FortranUnformatted ff( gen_fname( m_cpu ) );
-
- //.. skip header entries ..//
- ff.skip_n_from_start( 19 ); //.. skip header
-
- //+ headl + taill
- ff.read<int>( std::back_inserter(m_headl) );
- ff.read<int>( std::back_inserter(m_taill) );
- ff.read<int>( std::back_inserter(m_numbl) );
-
- //.. skip numbtot
- ff.skip_n( 1 );
-
- std::vector<int> ngridbound;
- if( m_header.nboundary > 0 ){
- ff.skip_n( 2 ); //.. skip headb and tailb
- ff.read<int>( std::back_inserter(ngridbound) ); //.. read numbb
- }
-
- ff.skip_n( 6 ); //..skip (1)free_mem+(2)ordering+(3)bound_key+
- //.. (4)coarse_son+(5)coarse_flag1+(6)coarse_cpu_map
-
-
- if( /*m_minlevel < 1 ||*/ m_maxlevel > m_header.nlevelmax || m_minlevel > m_maxlevel )
- throw std::runtime_error("RAMSES_amr_level::read_level : requested level is invalid.");
-
-
- m_ind_grid_map.insert( std::pair<unsigned,unsigned>(0,ENDPOINT) );
-
- FortranUnformatted::streampos spos = ff.tellg();
-
- m_minlevel = 0;
-
- //... create indexing map ...//
- for( int ilvl = 0; ilvl<=std::min(m_maxlevel+1, m_header.nlevelmax); ++ilvl ){
- unsigned gridoff = 0;
- for( int icpu=0; icpu<m_header.ncpu+m_header.nboundary; ++icpu ){
- if( icpu < m_header.ncpu && m_numbl[ACC_NL(icpu,ilvl)] == 0 )
- continue;
- else if( icpu >= m_header.ncpu && ngridbound[ACC_NB(icpu-m_header.ncpu,ilvl)] == 0 )
- continue;
-
- if( ilvl >= m_minlevel ){
- std::vector<int> ind_grid;
- ff.read<int>( std::back_inserter(ind_grid) );
- for( unsigned i=0; i<ind_grid.size(); ++i ){
- m_ind_grid_map.insert( std::pair<unsigned,unsigned>(ind_grid[i],gridoff++) );
- }
- ind_grid.clear();
- }else
- ff.skip();
-
- ff.skip_n( 3+3+6+8+8+8 );
- }
- if( ff.eof() ){
- //std::cerr << "eof reached in fortran read operation\n";
- m_maxlevel = ilvl;//+1;
- break;
- }
- }
-
- ff.seekg( spos );
-
- m_AMR_levels.clear();
-
-
- //... loop over levels ...//
- for( int ilvl = 0; ilvl<=m_maxlevel; ++ilvl ){
- m_AMR_levels.push_back( Level_(ilvl) );
- Level_ &currlvl = m_AMR_levels.back();
-
- for( int icpu=0; icpu<m_header.ncpu+m_header.nboundary; ++icpu ){
- if( icpu < m_header.ncpu && m_numbl[ACC_NL(icpu,ilvl)] == 0 )
- continue;
- else if( icpu >= m_header.ncpu && ngridbound[ACC_NB(icpu-m_header.ncpu,ilvl)] == 0 )
- continue;
-
- if( ilvl >= m_minlevel ){
- unsigned gridoff = currlvl.size();
-
- std::vector<int> ind_grid;
- ff.read<int>( std::back_inserter(ind_grid) );
- for( unsigned i=0; i<ind_grid.size(); ++i ){
- currlvl.register_cell( Cell_() );
- //.. also set owning cpu in this loop...
- currlvl[ i+gridoff ].m_cpu = icpu+1;
- }
-
- //... pointers to next and previous octs ..//
- ff.skip();
- ff.skip();
-
- //... oct x-coordinates ..//
- std::vector<float> ftmp;
- ff.read<double>( std::back_inserter(ftmp) );
- for( unsigned j=0; j<ftmp.size(); ++j )
- currlvl[ j+gridoff ].m_xg[0] = ftmp[j];
- ftmp.clear();
-
- //... oct y-coordinates ..//
- ff.read<double>( std::back_inserter(ftmp) );
- for( unsigned j=0; j<ftmp.size(); ++j )
- currlvl[ j+gridoff ].m_xg[1] = ftmp[j];
- ftmp.clear();
-
- //... oct y-coordinates ..//
- ff.read<double>( std::back_inserter(ftmp) );
- for( unsigned j=0; j<ftmp.size(); ++j )
- currlvl[ j+gridoff ].m_xg[2] = ftmp[j];
- ftmp.clear();
-
-
- //... father indices
- if( is_locally_essential<Cell_>::check ){
- ff.read<int>( std::back_inserter(itmp) );
- for( unsigned j=0; j<itmp.size(); ++j ){
- currlvl[ j+gridoff ].m_pos = (itmp[j]-m_ncoarse-1)/m_header.ngridmax;
- currlvl[ j+gridoff ].m_father = m_ind_grid_map[ (itmp[j]-m_ncoarse)%m_header.ngridmax ];
- }
- itmp.clear();
- }else
- ff.skip();
-
-
- //... neighbour grids indices
- if( is_locally_essential<Cell_>::check )
- {
- for( unsigned k=0; k<6; ++k ){
- ff.read<int>( std::back_inserter(itmp) );
- for( unsigned j=0; j<itmp.size(); ++j )
- currlvl[j+gridoff].m_neighbour[k] = m_ind_grid_map[ (itmp[j]-m_ncoarse)%m_header.ngridmax ];
- itmp.clear();
- }
- }else
- ff.skip_n( 6 );
-
-
- //... son cell indices
- for( unsigned ind=0; ind<8; ++ind ){
- ff.read<int>( std::back_inserter(itmp) );
- for( unsigned k=0; k<itmp.size(); ++k ){
- currlvl[k+gridoff].m_son[ind] = m_ind_grid_map[ itmp[k] ];
- }
- itmp.clear();
- }
-
- //.. skip cpu + refinement map
- ff.skip_n( 8+8 );
- }else{
- //...skip entire record
- ff.skip_n( 3+3+1+6+8+8+8 );
- }
- }
- }
-}
-
-} //namespace AMR
-} //namespace RAMSES
-
-
-
-#undef FIX
-
-#endif //__RAMSES_AMR_DATA_HH
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/RAMSES_hydro_data.hh
--- a/yt/frontends/ramses/ramses_headers/RAMSES_hydro_data.hh Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,667 +0,0 @@
-/*
- This file is part of libRAMSES++
- a C++ library to access snapshot files
- generated by the simulation code RAMSES by R. Teyssier
-
- Copyright (C) 2008-09 Oliver Hahn, ojha@gmx.de
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __RAMSES_HYDRO_DATA_HH
-#define __RAMSES_HYDRO_DATA_HH
-
-#include <fstream>
-#include <iostream>
-#include <iomanip>
-#include <vector>
-#include <cmath>
-
-#include "FortranUnformatted_IO.hh"
-#include "RAMSES_info.hh"
-#include "RAMSES_amr_data.hh"
-
-namespace RAMSES{
-namespace HYDRO{
-
-//! internal hydro variable indices
-enum hydro_var
-{
- density = 1,
- velocity_x = 2,
- velocity_y = 3,
- velocity_z = 4,
- pressure = 5,
- metallicity = 6
-};
-
-//! names of possible variables stored in a RAMSES hydro file
-const char ramses_hydro_variables[][64] = {
- {"Density"},
- {"x-velocity"},
- {"y-velocity"},
- {"z-velocity"},
- {"Pressure"},
- {"Metallicity"} };
-
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-/*!
- * @class RAMSES::HYDRO::proto_data
- * @brief base class for all things hydro
- *
- * This class provides the base class for all cell based variables defined
- * on the AMR mesh, accessible through the tree data structure.
- * @sa RAMSES::HYDRO::data, RAMSES::HYDRO::empty_data
- */
-template< typename TreeType_, typename ValueType_=double >
-class proto_data{
-
-public:
- std::vector< std::vector<ValueType_> > m_var_array;
-protected:
- TreeType_& m_tree; //!< reference to underlying AMR tree structure
- unsigned m_cpu; //!< the computational domain
- unsigned
- m_minlevel, //!< maximum refinement level to be read from file
- m_maxlevel; //!< minimum refinement level to be read from file
- unsigned m_twotondim;//!< 2**ndim
- unsigned m_ilevel; //!< the refinement level
-
- //! array holding the actual data
-
-public:
-
- //! constructor for the base class of all hydro data objects
- /*!
- * @param AMRtree reference to the underlying AMR tree data structure object
- */
- explicit proto_data( TreeType_& AMRtree )
- : m_tree(AMRtree), m_cpu( AMRtree.m_cpu ),
- m_minlevel( AMRtree.m_minlevel ), m_maxlevel( AMRtree.m_maxlevel ),
- m_twotondim( (unsigned)(pow(2, AMRtree.m_header.ndim)+0.5) )
- { }
-
- //! access the value of the cells associated with the oct designated by the iterator
- /*!
- * @param it the grid iterator pointing to the current oct
- * @param ind index of the child cell of the current oct (0..7)
- */
- inline ValueType_& cell_value( const typename TreeType_::iterator& it, int ind )
- {
- unsigned ipos = it.get_absolute_position();
- unsigned ilevel = it.get_level();//-m_minlevel;
- return (m_var_array[ilevel])[m_twotondim*ipos+ind];
- }
-
- //! access the value of the cells associated with the oct designated by the iterator
- /*!
- * @param it the grid iterator pointing to the current oct
- * @param ind index of the child cell of the current oct (0..7)
- */
- inline ValueType_& operator()( const typename TreeType_::iterator& it, int ind )
- { return cell_value(it,ind); }
-
-
- //! combines all elements of this instance with that of another using a binary operator
- /*!
- * @param o the other data object with which to combine the elements
- * @param op the binary operator to be used in combining elements
- */
- template<typename BinaryOperator_>
- void combine_with( const proto_data<TreeType_,ValueType_>& o, const BinaryOperator_& op )
- {
- if( m_minlevel != o.m_minlevel || m_maxlevel != o.m_maxlevel
- || m_twotondim != o.m_twotondim || &m_tree != &o.m_tree
- || m_var_array.size() != o.m_var_array.size() ){
- std::cerr << "this #levels=" << m_var_array.size() << ", other #levels=" << o.m_var_array.size() << std::endl;
- throw std::runtime_error("Error: trying to combine incompatible mesh data.");
- }
-
- for( unsigned ilvl=0; ilvl<m_var_array.size(); ++ilvl )
- {
- if( m_var_array[ilvl].size() != o.m_var_array[ilvl].size() ){
- std::cerr << "ilvl=" << ilvl << ", this size=" << m_var_array[ilvl].size() << ", other size=" << o.m_var_array[ilvl].size() << std::endl;
- throw std::runtime_error("Error: trying to combine incompatible mesh data.");
- }
-
- for( unsigned i=0; i<m_var_array[ilvl].size(); ++i )
- m_var_array[ilvl][i] = op( m_var_array[ilvl][i], o.m_var_array[ilvl][i] );
- }
-
- }
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-/*!
- * @class RAMSES::HYDRO::empty_data
- * @brief encapsulates additional (non-RAMSES) hydro data
- *
- * This class provides a wrapper for additional hydro variables created
- * during post-processing. They are stored compatibly with the normal
- * RAMSES hydro variables and thus can be accessed via the tree.
- * @sa RAMSES::HYDRO::data, RAMSES::HYDRO::proto_data
- */
-template< typename TreeType_, typename ValueType_=double >
-class empty_data : public proto_data<TreeType_,ValueType_>{
-
-public:
-
- //! constructor for an empty hydro variable defined on the AMR mesh
- /*!
- * @param AMRtree the underlying hierarchical tree data structure
- * @param v the value with which the variable should be initialized, default is a (double) zero.
- */
- explicit empty_data( TreeType_& AMRtree, ValueType_ v=(ValueType_)0.0 )
- : proto_data<TreeType_,ValueType_>(AMRtree)
- {
- this->m_var_array.assign( this->m_maxlevel+1, std::vector<ValueType_>() );
-
- for( unsigned ilvl = this->m_minlevel; ilvl<=this->m_maxlevel; ++ilvl ){
- typename TreeType_::iterator grid_it = this->m_tree.begin( ilvl );
- while( grid_it != this->m_tree.end(ilvl) ){
-
- for( unsigned j=0;j<this->m_twotondim;++j )
- this->m_var_array[ilvl].push_back( v );
-
- ++grid_it;
- }
- }
- }
-
-
- //! write the new hydro variable to a RAMSES compatible output file
- /*!
- * writes the hydro variable to a RAMSES compatible output file named
- * after the convention
- * (path)/(basename)_(DOMAIN).out(snap_num)
- *
- * @param path the path where to store the files
- * @param basename the filename base string to prepend to the domain number
- * @param snap_num the number of the snapshot (default is zero).
- */
- void save( std::string path, std::string basename, unsigned snap_num=0 )
- {
- char fullname[256];
- sprintf(fullname,"%s/%s_%05d.out%05d",path.c_str(),basename.c_str(), snap_num, this->m_tree.m_cpu );
- std::ofstream ofs( fullname, std::ios::binary|std::ios::trunc );
-
-
- typename TreeType_::iterator it;
- unsigned ncpu = this->m_tree.m_header.ncpu;
-
- //std::cerr << "ncpu = " << ncpu << std::endl;
-
- for( unsigned ilvl = 0; ilvl<=this->m_maxlevel; ++ilvl ){
- std::vector< std::vector<ValueType_> >
- temp1 (ncpu, std::vector<ValueType_>() ),
- temp2 (ncpu, std::vector<ValueType_>() ),
- temp3 (ncpu, std::vector<ValueType_>() ),
- temp4 (ncpu, std::vector<ValueType_>() ),
- temp5 (ncpu, std::vector<ValueType_>() ),
- temp6 (ncpu, std::vector<ValueType_>() ),
- temp7 (ncpu, std::vector<ValueType_>() ),
- temp8 (ncpu, std::vector<ValueType_>() );
-
- it = this->m_tree.begin(ilvl);
-
- while( it!= this->m_tree.end(ilvl) )
- {
- temp1[ it.get_domain()-1 ].push_back( (*this)(it,0) );
- temp2[ it.get_domain()-1 ].push_back( (*this)(it,1) );
- temp3[ it.get_domain()-1 ].push_back( (*this)(it,2) );
- temp4[ it.get_domain()-1 ].push_back( (*this)(it,3) );
- temp5[ it.get_domain()-1 ].push_back( (*this)(it,4) );
- temp6[ it.get_domain()-1 ].push_back( (*this)(it,5) );
- temp7[ it.get_domain()-1 ].push_back( (*this)(it,6) );
- temp8[ it.get_domain()-1 ].push_back( (*this)(it,7) );
- ++it;
- }
-
-
- for( unsigned icpu = 0; icpu<ncpu; ++icpu ){
- unsigned nn;
-
- nn = temp1[icpu].size() * sizeof( ValueType_ );
-
- if( nn > 0 )
- {
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp1[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
-
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp2[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
-
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp3[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
-
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp4[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
-
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp5[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
-
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp6[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
-
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp7[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
-
- ofs.write( (char*)&nn, sizeof(unsigned) );
- ofs.write( (char*)&temp8[icpu][0], nn );
- ofs.write( (char*)&nn, sizeof(unsigned) );
- }
- }
- }
- }
-
- //! reads an additional from a RAMSES compatible (single var) output file
- /*!
- * @param basename the base string used for the variable
- */
- void read( std::string basename )
- {
- char fullname[256];
- sprintf(fullname,"%s_%05d.out%05d",basename.c_str(), this->m_tree.m_header.nout[0], this->m_tree.m_cpu );
- std::ifstream ifs( fullname, std::ios::binary );
-
- for( unsigned ilvl = this->m_minlevel; ilvl<=this->m_maxlevel; ++ilvl ){
- unsigned nn = this->m_var_array[ilvl].size() * sizeof(ValueType_);
- unsigned nnfile;
- ifs.read( (char*)&nnfile, sizeof(unsigned) );
- if( nn != nnfile ){
- std::cerr << "Error: dimension mismatch between AMR tree and file data!" << std::endl;
- std::cerr << " found " << nnfile << ", expected " << nn << " in file \'" << fullname << "\'" << std::endl;
- return;
- }
- ifs.read( (char*)&this->m_var_array[ilvl][0], nn );
- ifs.read( (char*)&nn, sizeof(unsigned) );
- }
- ifs.close();
- }
-
-};
-
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-/*!
- * @class data
- * @brief encapsulates hydro data from a RAMSES simulation snapshot
- *
- * This class provides low-level read access to RAMSES hydro_XXXXX.out files.
- * Data from a given list of computational domains can be read and is
- * stored in internal datastructures.
- * Access to cell position and threaded tree structure of the cell is provided
- * through the member functions of class RAMSES_amr_level.
- * @sa RAMSES_amr_level
- */
-template< typename TreeType_, typename Real_=double >
-class data : public proto_data<TreeType_,Real_>{
-
-public:
- struct header{
- unsigned ncpu; //!< number of CPUs in simulation
- unsigned nvar; //!< number of hydrodynamic variables
- unsigned ndim; //!< number of spatial dimensions
- unsigned nlevelmax; //!< maximum allowed refinement level
- unsigned nboundary; //!< number of boundary regions
- double gamma; //!< adiabatic exponent
- };
-
-
- std::string m_fname; //!< the file name
- struct header m_header; //!< header meta data
-
- const unsigned m_nvars; //!< number of variables stored in file
-
- std::vector<std::string> m_varnames; //!< names of the variables stored in file
- std::map<std::string,unsigned> m_var_name_map; //!< a hash table for variable name to internal variable index
-
-
-protected:
-
- //! generates a hydro_XXXX filename for specified cpu
- std::string gen_fname( int icpu );
-
- //! generate hydro_XXXXX filename from info filename
- std::string rename_info2hydro( const std::string& info );
-
- //! generate hydro_XXXXX filename from amr filename
- std::string rename_amr2hydro( const std::string& info );
-
- //! read header data containing meta information
- void read_header( void );
-
- //! get internal index for given variable string identifier
- /*!
- * @param varname the string identifier of the hydro variable
- * @return internal variable index
- */
- int get_var_idx( const std::string& varname )
- {
- int ivar;
- std::map<std::string,unsigned>::iterator mit;
- if( (mit=m_var_name_map.find(varname)) != m_var_name_map.end() )
- ivar = (*mit).second;
- else
- throw std::runtime_error("RAMSES::HYDRO::data::get_var_idx :"\
- " Error, cannot find variable named \'"+varname+"\'");
- return ivar;
- }
-
- //! perform read operation of one hydro variable (internal use)
- /*!
- * users should always call the read( std::string ) member function
- * and read variables through their string identifiers
- * @param var the index of the hydro variable
- */
- void read( unsigned var );
-
-public:
-
- //! constructor for hydro data
- /*!
- * @param AMRtree reference to the underlying tree object
- */
- explicit data( TreeType_& AMRtree )
- : proto_data<TreeType_,Real_>( AMRtree ),
- m_fname( rename_amr2hydro(AMRtree.m_fname) ),
- m_nvars( 6 )
- {
- read_header();
-
- if( this->m_cpu > m_header.ncpu || this->m_cpu < 1 )
- throw std::runtime_error("RAMSES::HYDRO::data : expect to read from out of range CPU.");
-
- if( this->m_minlevel < 0 || this->m_maxlevel >= m_header.nlevelmax )
- throw std::runtime_error("RAMSES::HYDRO::data : requested level is invalid.");
-
- //m_twotondim = (unsigned)(pow(2,m_header.ndim)+0.5);
-
- for( unsigned i=0; i<m_nvars; ++i ){
- std::string tmp(ramses_hydro_variables[i]);
- m_var_name_map.insert( std::pair<std::string,unsigned>( tmp, i+1 ) );
- m_varnames.push_back( tmp );
- }
- }
-
- //! retrieve the names of variables available in the hydro data source
- /*! Variables have an internal index but are accessed through their name, given as a string
- * hydro data files may contain different variables depending on the kind of simulation run.
- * @param names An output iterator to which std::string designating available variables are sent
- * @return Final position of the output iterator
- */
- template< typename _OutputIterator >
- _OutputIterator get_var_names( _OutputIterator names )
- {
- std::vector<std::string>::iterator it( m_varnames.begin() );
- while( it != m_varnames.end() ){
- *names = *it;
- ++it; ++names;
- }
- return names;
- }
-
- //! perform read operation of one hydro variable
- /*!
- * @param varname the string identifier of the hydro variable
- */
- void read( std::string varname )
- { this->read( get_var_idx( varname ) ); }
-
-};
-
-
-template< typename TreeType_, typename Real_ >
-void data<TreeType_,Real_>::read_header( void )
-{
- FortranUnformatted ff( gen_fname( this->m_cpu ) );
-
- //-- read header data --//
- ff.read( m_header.ncpu );
- ff.read( m_header.nvar );
- ff.read( m_header.ndim );
- ff.read( m_header.nlevelmax );
- ff.read( m_header.nboundary );
- ff.read( m_header.gamma );
-}
-
-
-template< typename TreeType_, typename Real_ >
-void data<TreeType_,Real_>::read( unsigned var )
-{
- this->m_var_array.clear();
- //int twotondim = (int)(pow(2,m_header.ndim)+0.5);
-
- FortranUnformatted ff( gen_fname( this->m_cpu ) );
-
- //.. skip header entries ..//
- ff.skip_n_from_start( 6 ); //.. skip header
-
- if( var < 1 || var > m_header.nvar )
- throw std::runtime_error("RAMSES::HYDRO::data::read : requested variable is invalid in file \'"+m_fname+"\'.");
-
- this->m_var_array.clear();
-
- for( unsigned ilvl = 0; ilvl<=this->m_maxlevel; ++ilvl ){
-
- this->m_var_array.push_back( std::vector<Real_>() );
-
- for( unsigned icpu = 0; icpu<m_header.ncpu+m_header.nboundary; ++icpu ){
-
- unsigned file_ilevel, file_ncache;
- ff.read(file_ilevel);
- ff.read(file_ncache);
-
- if( file_ncache == 0 )
- continue;
-
- if( ilvl >= this->m_minlevel ){
- if( file_ilevel != ilvl+1 )
- throw std::runtime_error("RAMSES::HYDRO::data::read : corrupted file " \
- "or file seek failure in file \'"+m_fname+"\'.");
-
-
- std::vector<float> tmp;
- for( unsigned i=0; i<this->m_twotondim; ++i )
- {
- ff.skip_n( var-1 );
- ff.read<double>( std::back_inserter(tmp) );
- ff.skip_n( m_header.nvar-var );
- }
- //.. reorder array to increase data locality..//
- this->m_var_array.reserve( tmp.size() );
- for( unsigned i=0; i<file_ncache; ++i ){
- for( unsigned j=0; j<this->m_twotondim; ++j ){
- (this->m_var_array.back()).push_back( tmp[i+j*file_ncache] );
- }
- }
- }else{
- ff.skip_n( this->m_twotondim*m_header.nvar );
- }
- }
- }
-}
-
-
-template< typename TreeType_, typename Real_ >
-std::string data<TreeType_,Real_>::gen_fname( int icpu )
-{
- std::string fname;
- char ext[32];
- fname = m_fname;
- fname.erase(fname.rfind('.')+1);
- sprintf(ext,"out%05d",icpu);
- fname.append(std::string(ext));
- return fname;
-}
-
-
-template< typename TreeType_, typename Real_ >
-std::string data<TreeType_,Real_>::rename_info2hydro( const std::string& info )
-{
- std::string amr;
- unsigned ii = info.rfind("info");
- amr = info.substr(0,ii)+"hydro" + info.substr(ii+4, 6) + ".out00001";
- return amr;
-}
-
-
-template< typename TreeType_, typename Real_ >
-std::string data<TreeType_,Real_>::rename_amr2hydro( const std::string& info )
-{
- std::string amr;
- unsigned ii = info.rfind("amr");
- amr = info.substr(0,ii)+"hydro" + info.substr(ii+3, 6) + ".out00001";
- return amr;
-}
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-
-/*!
- * @class RAMSES::HYDRO::multi_domain_data
- * @brief encapsulates hydro data from multiple computational domain
- *
- * This class provides high-level data access to bundled domain data, Bundling
- * of domain data is useful when analysis of snapshots is performed in parallel
- * but on a number of cores different than that used for the RAMSES simulation.
- */
-template< typename TreeType_, typename DataType_, typename ValueType_=double >
-class multi_domain_data
-{
- public:
-
- unsigned m_ndomains; //!< number of domains bundled
- RAMSES::snapshot &m_rsnap; //!< reference to the underlying snapshot object
- std::vector<DataType_*> m_data; //!< vector of bundled data objects
- std::vector<TreeType_*> m_ptrees; //!< vector of bundled tree objects
-
- public:
-
- //! constructor for bundled multi-domain hydro variables
- /*!
- * @param rsnap reference to the underlying snapshot object
- * @param ptrees vector of trees to be bundled
- */
- multi_domain_data( RAMSES::snapshot& rsnap, std::vector<TreeType_*> ptrees )
- : m_ndomains( ptrees.size() ), m_rsnap(rsnap), m_ptrees( ptrees )
- {
- for( unsigned idom=0; idom<m_ndomains; ++idom )
- m_data.push_back( new DataType_(*m_ptrees[idom]) );
-
- }
-
-
- //! combines all elements of this instance with that of another using a binary operator
- /*!
- * @param o the other multi-domain data object with which to combine the elements
- * @param op the C++ binary operator to be used in combining elements
- */
- template<typename BinaryOperator, typename OtherDataType_>
- void combine_with( const multi_domain_data<TreeType_,OtherDataType_,ValueType_>& o, const BinaryOperator& op )
- {
- if( m_data.size() != o.m_data.size() )
- throw std::runtime_error("Error: trying to combine incompatible multi_domain_data.");
-
- for( unsigned i=0; i<m_data.size(); ++i ) //<OtherDataType_,BinaryOperator>
- m_data[i]->combine_with( *o.m_data[i], op );
- }
-
-
- //! bracket operator to access bundled multi-domain data
- /*!
- * @param idomain the domain index (1 based)
- * @param it tree iterator pointing to the grid in the tree to be accessed
- * @param CellIndex index of the cell in the grid
- */
- ValueType_& operator() ( unsigned idomain, const typename TreeType_::iterator& it, char CellIndex )
- {
- if( idomain >= m_data.size() ){
- std::cerr << "out of range domain: " << idomain << " >= " << m_data.size() << std::endl;
- idomain=0;
- }
-
- return m_data[idomain]->cell_value(it,CellIndex);
- }
-
-
- //! bracket operator to access bundled multi-domain data (const)
- /*!
- * @param idomain the domain index (1 based)
- * @param it tree const_iterator pointing to the grid in the tree to be accessed
- * @param CellIndex index of the cell in the grid
- */
- ValueType_& operator() ( unsigned idomain, const typename TreeType_::const_iterator& it, char CellIndex )
- {
- if( idomain >= m_data.size() ){
- std::cerr << "out of range domain: " << idomain << " >= " << m_data.size() << std::endl;
- idomain=0;
- }
- return m_data[idomain]->cell_value(it,CellIndex);
- }
-
- //! destructor for bundled multi-domain data
- ~multi_domain_data()
- {
- for( unsigned idom=0; idom<m_data.size(); ++idom )
- delete m_data[idom];
- }
-
-
- //! bundled read functions, reads in multi-domain data
- void get_var( std::string var_name )
- {
- //m_data.clear();
- if( m_ndomains != m_data.size() ){
- std::cerr << "Error: Internal consistency check failed in multi_domain_data::get_var.";
- return;
- }
-
- for( unsigned idom=0; idom<m_ndomains; ++idom )
- {
- //m_data.push_back( new DataType_(*m_ptrees[idom]) );
- m_data[idom]->read(var_name);
- }
- }
-
- //! TBD
- unsigned size( void ){ return m_data.size(); }
-
- //! TBD
- unsigned size( unsigned idom ) { return m_data.at(idom)->size(); }
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-
-} // namespace HYDRO
-} // namespace RAMSES
-
-#endif //__RAMSES_HYDRO_DATA_HH
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/RAMSES_info.hh
--- a/yt/frontends/ramses/ramses_headers/RAMSES_info.hh Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,334 +0,0 @@
-/*
- This file is part of libRAMSES++
- a C++ library to access snapshot files
- generated by the simulation code RAMSES by R. Teyssier
-
- Copyright (C) 2008-09 Oliver Hahn, ojha@gmx.de
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __READ_INFO_HH
-#define __READ_INFO_HH
-
-#include <string>
-#include <sstream>
-#include <vector>
-#include <fstream>
-#include <stdexcept>
-#include <cmath>
-
-namespace RAMSES{
-
-#define btest(var,pos) ((var) & (1<<(pos)))
-
-//! the file format version of RAMSES
-enum codeversion{
- version1, version2, version3
-};
-
-const int state_diagram[12][2][8] =
-{
- { { 1, 2, 3, 2, 4, 5, 3, 5}, { 0, 1, 3, 2, 7, 6, 4, 5} },
- { { 2, 6, 0, 7, 8, 8, 0, 7}, { 0, 7, 1, 6, 3, 4, 2, 5} },
- { { 0, 9,10, 9, 1, 1,11,11}, { 0, 3, 7, 4, 1, 2, 6, 5} },
- { { 6, 0, 6,11, 9, 0, 9, 8}, { 2, 3, 1, 0, 5, 4, 6, 7} },
- { {11,11, 0, 7, 5, 9, 0, 7}, { 4, 3, 5, 2, 7, 0, 6, 1} },
- { { 4, 4, 8, 8, 0, 6,10, 6}, { 6, 5, 1, 2, 7, 4, 0, 3} },
- { { 5, 7, 5, 3, 1, 1,11,11}, { 4, 7, 3, 0, 5, 6, 2, 1} },
- { { 6, 1, 6,10, 9, 4, 9,10}, { 6, 7, 5, 4, 1, 0, 2, 3} },
- { {10, 3, 1, 1,10, 3, 5, 9}, { 2, 5, 3, 4, 1, 6, 0, 7} },
- { { 4, 4, 8, 8, 2, 7, 2, 3}, { 2, 1, 5, 6, 3, 0, 4, 7} },
- { { 7, 2,11, 2, 7, 5, 8, 5}, { 4, 5, 7, 6, 3, 2, 0, 1} },
- { {10, 3, 2, 6,10, 3, 4, 4}, { 6, 1, 7, 0, 5, 2, 4, 3} }
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-/*!
- * @class RAMSES_snapshot
- * @brief class providing access to general information about a RAMSES simulation snapshot
- */
-class snapshot{
-
-protected:
-
- //! c++ input file stream for stream access to the RAMSES info_XXXXX.txt file
- std::ifstream m_ifs;
-
-public:
-
- //! path and name of the info_XXXXX.txt file of a RAMSES snapshot
- std::string m_filename;
-
- //! the RAMSES version, takes care of changes in file format
- codeversion m_version;
-
- //! the simulation meta data stored in the info file
- struct info_data{
- unsigned ncpu; //!< the number of CPUs (and thus computational domains) in this simulation
- unsigned ndim; //!< the number of spatial dimensions
- unsigned levelmin; //!< minimum refinement level (this refinement is thus present everywhere)
- unsigned levelmax; //!< maximum refinement level allowed
- unsigned ngridmax; //!< maximum number of grid cells stored per CPU
- unsigned nstep_coarse; //!< number of coarse time steps performed up to this snapshot
- double boxlen; //!< the length of the simulation box in internal units
- double time; //!< time stamp of the snapshot
- double aexp; //!< cosmological expansion factor of the current snapshot
- double H0; //!< value of the Hubble constant for this simulation
- double omega_m; //!< value of the total matter density parameter for this simulation
- double omega_l; //!< value of the cosmological constant density parameter for this simulation
- double omega_k; //!< value of the curvature density parameter for this simulation
- double omega_b; //!< value of the baryonic (i.e. collisional) matter density parameter for this simulation
- double unit_l; //!< internal length unit
- double unit_d; //!< internal density unit
- double unit_t; //!< internal time unit
- };
-
- //! header data entailing time stamp and parameters of the simulation snapshot
- struct info_data m_header;
-
- //! minimum hilbert ordering indices for each domain
- std::vector<double> ind_min;
-
- //! maximum hilbert ordering indices for each domain
- std::vector<double> ind_max;
-
-protected:
-
- //! tokenize a string
- /*!
- * @param str input string
- * @param tokens reference to an STL vector containing all substrings after return
- */
- void tokenize( const std::string& str, std::vector<std::string>& tokens )
- {
- std::string buf;
- std::stringstream ss(str);
- while( ss >> buf )
- tokens.push_back( buf );
- }
-
- //! templated type conversion for string to arbitrary types that can be read from STL stringstreams
- /*!
- * @param str input string
- * @param ret reference to the template parameter type return value
- */
- template <typename T>
- inline void convert( const std::string& str, T& ret )
- {
- std::stringstream ss(str);
- ss >> ret;
- }
-
- //! reads the right-most substring of a line
- /*!
- * &param rhs reference to return value
- */
- template <typename T>
- void read_line_rhs( T& rhs )
- {
- std::vector<std::string> split_buf;
- std::string buf;
- std::getline( m_ifs, buf );
-
- tokenize( buf, split_buf );
- convert( split_buf[split_buf.size()-1], rhs );
- }
-
- //! skip a line in the text input file
- void skip_line( void )
- {
- std::string buf;
- std::getline( m_ifs, buf );
- }
-
- //! parse the RAMSES snapshot info file
- void parse_file( void )
- {
- read_line_rhs( m_header.ncpu );
- read_line_rhs( m_header.ndim );
- read_line_rhs( m_header.levelmin );
- read_line_rhs( m_header.levelmax );
- read_line_rhs( m_header.ngridmax );
- read_line_rhs( m_header.nstep_coarse );
- skip_line();
- read_line_rhs( m_header.boxlen );
- read_line_rhs( m_header.time );
- read_line_rhs( m_header.aexp );
- read_line_rhs( m_header.H0 );
- read_line_rhs( m_header.omega_m );
- read_line_rhs( m_header.omega_l );
- read_line_rhs( m_header.omega_k );
- read_line_rhs( m_header.omega_b );
- read_line_rhs( m_header.unit_l );
- read_line_rhs( m_header.unit_d );
- read_line_rhs( m_header.unit_t );
- skip_line();
- skip_line();
- skip_line();
-
- for( unsigned i=0; i<m_header.ncpu; ++i ){
- std::vector<std::string> split_buf;
- std::string buf;
- std::getline( m_ifs, buf );
- tokenize( buf, split_buf );
-
- double imin, imax;
- unsigned domain;
-
- convert( split_buf[0], domain );
-
- if( domain != i+1 )
- throw std::runtime_error("RAMSES_snapshot::parse_file : corrupt info file\'"+m_filename+"\'.");
-
- convert( split_buf[1], imin );
- convert( split_buf[2], imax );
-
- ind_min.push_back( imin );
- ind_max.push_back( imax );
-
- }
-
-
- }
-
- inline unsigned locate( const double x, const std::vector<double>& vx )
- {
- long unsigned ju,jm,jl;
- bool ascnd=(vx[vx.size()-1]>=vx[0]);
- jl = 0;
- ju = vx.size()-1;
- while( ju-jl > 1 ) {
- jm = (ju+jl)>>1;
- if( x >= vx[jm] == ascnd )
- jl = jm;
- else
- ju = jm;
- }
- return std::max((long unsigned)0,std::min((long unsigned)(vx.size()-2),(long unsigned)jl));
- }
-
-public:
-
- //! constructor for a RAMSES snapshot meta data object
- /*!
- * @param info_filename path and name of the info_XXXXX.txt file of the RAMSES simulation
- */
- snapshot( std::string info_filename, codeversion ver=RAMSES::version1 )
- : m_ifs( info_filename.c_str(), std::ios::in ), m_filename( info_filename ),
- m_version( ver )
- {
- if(!m_ifs.good())
- throw std::runtime_error("RAMSES_snapshot : cannot open file \'"+m_filename+"\' for read access.");
- m_ifs.exceptions ( std::ifstream::eofbit | std::ifstream::failbit | std::ifstream::badbit );
-
- parse_file();
- }
-
-
- unsigned get_snapshot_num( void )
- {
- unsigned ii = m_filename.rfind("info"), num;
- std::string tmp( m_filename.substr(ii+5,5) );
- sscanf(tmp.c_str(),"%d",&num);
- return num;
- }
-
- unsigned getdomain_bykey( double key )
- {
- unsigned i = locate( key, ind_min );
- return i+1;
- }
-
-
-};
-
-
-inline void hilbert3d(
- const std::vector<double>& x,
- const std::vector<double>& y,
- const std::vector<double>& z,
- std::vector<double>& order,
- unsigned bit_length )
-{
- std::vector<bool> i_bit_mask(3*bit_length, false );
- std::vector<bool> x_bit_mask(1*bit_length, false );
- std::vector<bool> y_bit_mask(1*bit_length, false );
- std::vector<bool> z_bit_mask(1*bit_length, false );
-
- unsigned npoints = x.size();
- double lx = pow(2.0,bit_length);
-
- for( unsigned ip=0; ip<npoints; ++ip )
- {
- for( unsigned i=0; i<bit_length; ++i )
- {
- int xx = (int)(x[ip]*lx);
- x_bit_mask[i] = btest(xx,i);
-
- xx = (int)(y[ip]*lx);
- y_bit_mask[i] = btest(xx,i);
-
- xx = (int)(z[ip]*lx);
- z_bit_mask[i] = btest(xx,i);
- }
-
- for( unsigned i=0; i<bit_length; ++i )
- {
- i_bit_mask[3*i+2] = x_bit_mask[i];
- i_bit_mask[3*i+1] = y_bit_mask[i];
- i_bit_mask[3*i+0] = z_bit_mask[i];
- }
-
- int nstate, cstate;
- bool b0, b1, b2;
- int sdigit, hdigit;
-
- cstate=0;
- for( int i=bit_length-1; i>=0; --i )
- {
- b2 = i_bit_mask[3*i+2];
- b1 = i_bit_mask[3*i+1];
- b0 = i_bit_mask[3*i+0];
-
- sdigit = b2*4+b1*2+b0;
- nstate = state_diagram[cstate][0][sdigit];
- hdigit = state_diagram[cstate][1][sdigit];
-
- i_bit_mask[3*i+2] = btest(hdigit,2);
- i_bit_mask[3*i+1] = btest(hdigit,1);
- i_bit_mask[3*i+0] = btest(hdigit,0);
-
- cstate = nstate;
- }
-
- order[ip] = 0.0;
- for( unsigned i=0; i<3*bit_length; ++i )
- {
- b0 = i_bit_mask[i];
- order[ip] += (double)b0*pow(2.0,i);
- }
-
- }
-}
-
-
-#undef btest
-
-}
-
-
-#endif
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/RAMSES_particle_data.hh
--- a/yt/frontends/ramses/ramses_headers/RAMSES_particle_data.hh Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,650 +0,0 @@
-/*
- This file is part of libRAMSES++
- a C++ library to access snapshot files
- generated by the simulation code RAMSES by R. Teyssier
-
- Copyright (C) 2008-09 Oliver Hahn, ojha@gmx.de
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __RAMSES_PARTICLE_DATA_HH
-#define __RAMSES_PARTICLE_DATA_HH
-
-#include <fstream>
-#include <iostream>
-#include <iomanip>
-#include <vector>
-#include <algorithm>
-#include <cmath>
-#include <map>
-
-#include "RAMSES_info.hh"
-#include "FortranUnformatted_IO.hh"
-#include "data_iterators.hh"
-
-namespace RAMSES{
-namespace PART{
-
-//! particle type identifiers returned by RAMSES_particle_data::ptype()
-enum ptype_bits {
- RAMSES_DM_BIT = 0,
- RAMSES_STAR_BIT = 1,
- RAMSES_DEBRIS_BIT = 2
-};
-
-//! particle type identifiers, can be combined with logical or
-enum ptype {
- ptype_dm = 1L << RAMSES_DM_BIT, //!< selects dark matter particles
- ptype_star = 1L << RAMSES_STAR_BIT, //!< selects star particles
- ptype_debris = 1L << RAMSES_DEBRIS_BIT, //!< selects debris particles
-};
-
-//... zero age of a particle is assumed if age is smaller than this number
-const double zero_age = 1.0e-8;
-
-
-//... content of RAMSES particle data files is fixed, available fields
-//... are described in the following two fields
-
-
-//! possible variable names in RAMSES particle files in version 1 and 2 files
-const char ramses_particle_variables_v12[][64] = {
- {"position_x"},
- {"position_y"},
- {"position_z"},
- {"velocity_x"},
- {"velocity_y"},
- {"velocity_z"},
- {"mass"},
- {"age"},
- {"metallicity"},
- {"particle_ID"},
- {"refinement_level"} };
-
-//! possible variable names in RAMSES particle files in version 3 files
-const char ramses_particle_variables_v3[][64] = {
- {"position_x"},
- {"position_y"},
- {"position_z"},
- {"velocity_x"},
- {"velocity_y"},
- {"velocity_z"},
- {"mass"},
- {"particle_ID"},
- {"refinement_level"},
- {"age"},
- {"metallicity"} };
-
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-/*!
- * @class RAMSES::PARTICLE::data
- * @brief encapsulates particle data from a RAMSES simulation snapshot
- *
- * This class provides low-level read access to RAMSES particle files.
- * Data from a given list of computational domains can be read and is
- *stored in internal datastructures.
- */
-class data {
-protected:
- const RAMSES::snapshot *m_pRAMSESsnap; //!< pointer to RAMSES snapshot meta-information
- std::string m_fname; //!< path/filename of the .info file
- int m_cpu; //!< IDs of computational domains from which data is to be read.
- unsigned m_nvars; //!< number of variables available in file
- std::vector<unsigned> m_nvar_stride; //!< access offset to variable locations in file
- std::vector<int> m_vardim; //!< spatial dimension of a variable
- std::vector<std::string> m_varnames; //!< names of the variables
-
- //! a hash table for variable name to internal variable index
- std::map<std::string,unsigned> m_var_name_map;
-
- //! particle file header meta data
- struct header{
- std::vector< int > localseed; //!< local seed used to generate star particles
- int ncpu; //!< number of CPUs in the simulation
- int ndim; //!< number of spatial dimensions
- int nstar_tot; //!< total number of star particles
- int nsink; //!< number of sink particles
- int npart; //!< number of particles
- int npart_dm; //!< number of dark matter particles
- int npart_star; //!< number of star particles
- int npart_debris; //!< number of debris particles
- double mstar_tot; //!< total stellar mass
- double mstar_lost; //!< stellar mass lost
- };
-
- struct header m_header; //!< particle file header data
-
-
- //! generate the part_XXXXX.oYYYYY filename for a given CPU ID
- std::string gen_fname( int icpu );
-
- //! generate the part_XXXXX.oYYYYY filename from the info_XXXXX.oYYYYY filename.
- std::string rename_info2part( const std::string& info );
-
- //! Read header from particle files and determine total number of particles.
- void read_header( void );
-
-public:
-
- //! constructor for a RAMSES particle data interface
- /*! The constructor checks the validity of the requested computational
- * domains and reads the particle header data to determine the total
- * number of particles.
- * @param snap reference to the underlying snapshot object
- * @param cpu the domain number
- */
- data( const RAMSES::snapshot& snap, int cpu )
- : m_pRAMSESsnap( &snap ),
- m_fname( rename_info2part(snap.m_filename) ),
- m_cpu( cpu )
- {
- m_header.npart_dm = 0;
- m_header.npart_star = 0;
- m_header.npart_debris = 0,
-
- read_header();
-
- //... compute offsets of variable arrays in file and access hash map ...//
- m_nvar_stride.push_back(0);
-
-
- switch( m_pRAMSESsnap->m_version )
- {
- case RAMSES::version1:
- case RAMSES::version2:
-
- if( m_header.nstar_tot > 0 )
- {
- //... file contains star particles ...//
- m_nvars = 11;
- for( unsigned i=0; i<m_nvars; ++i ){
- m_nvar_stride.push_back(m_nvar_stride[i]+1);
- m_var_name_map.insert( std::pair<std::string,unsigned>( ramses_particle_variables_v12[i], i ) );
- m_varnames.push_back( ramses_particle_variables_v12[i] );
- }
- }
- else
- {
- //... file contains only DM particles, then some fields are not available
- m_nvars = 9;
- for( unsigned i=0,j=0; i<m_nvars; ++i,++j ){
- if( i==7 ) j=9;
- m_nvar_stride.push_back(m_nvar_stride[i]+1);
- m_var_name_map.insert( std::pair<std::string,unsigned>( ramses_particle_variables_v12[j], i ) );
- m_varnames.push_back( ramses_particle_variables_v12[j] );
- }
- }
-
- break;
-
- case RAMSES::version3:
-
- if( m_header.nstar_tot > 0 )
- //... file contains star particles ...//
- m_nvars = 11;
- else
- //... file contains only DM particles, then last fields are not available
- m_nvars = 9;
-
- for( unsigned i=0; i<m_nvars; ++i )
- {
- m_nvar_stride.push_back(m_nvar_stride[i]+1);
- m_var_name_map.insert( std::pair<std::string,unsigned>( ramses_particle_variables_v3[i], i ) );
- m_varnames.push_back( ramses_particle_variables_v3[i] );
- }
-
- break;
-
-
- default:
- throw std::runtime_error("RAMSES::PART::data: cannot handle data for this RAMSES version.");
- }
-
- //... check if supplied range of domains is valid ...//
- if( m_cpu < 1 || m_cpu > m_header.ncpu )
- throw std::runtime_error("RAMSES::PART::data: attempt to read from out of range CPU.");
- }
-
-
- //=== implementation of interface derived compatible to multi variable data source skeleton ===//
- //=== see file README.devel, section 1, for details on the interface skeleton ===//
-
- //! retrieve the names of variables available in the particle data source
- /*! Variables have an internal index but are accessed through their name, given as a string
- * Particle data files may contain different variables depending on the kind of simulation run.
- * @param names An output iterator to which std::string designating available variables are sent
- * @return Final position of the output iterator
- */
- template< typename _OutputIterator >
- _OutputIterator get_var_names( _OutputIterator names )
- {
- std::vector<std::string>::iterator it( m_varnames.begin() );
- while( it != m_varnames.end() ){
- *names = *it;
- ++it; ++names;
- }
- return names;
- }
-
-protected:
-
- //! return the internal index for a variable of specified name
- /*! throws a runtime_error exception if variable name does not exist
- * @param varname string designating the variable
- * @return internal index of variable
- */
- int get_var_idx( const std::string& varname )
- {
- int ivar;
- std::map<std::string,unsigned>::iterator mit;
- if( (mit=m_var_name_map.find(varname)) != m_var_name_map.end() )
- ivar = (*mit).second;
- else
- throw std::runtime_error("RAMSES::PART::data::get_var_idx :"\
- " Error, cannot find variable named \'"+varname+"\'");
- return ivar;
- }
-
-
- //! get spatial dimensionality of a variable
- int get_var_dim( int ivar )
- { return m_vardim[ivar]; }
-
-
-public:
-
- //! get spatial dimensionality of a variable
- int get_var_dim( const std::string& varname )
- { return m_vardim[get_var_idx(varname)]; }
-
-
- //! retrieve data of specified variable from data source using a mask access pattern
- /*! The data for the specified variable, fixing a spatial dimension, is sent to an
- * output iterator. For each read operation, the mask iterator is checked
- * and the data is discarded if it points to 'false'
- * @param varname name of the variable to be retrieved
- * @param mask input iterator supplying the mask access pattern
- * @param val output iterator to which the retrieved data is sent
- * @return final position of the mask iterator
- */
- template< typename _Basetype, typename _InputIterator, typename _OutputIterator >
- _InputIterator get_var( const std::string& varname, _InputIterator mask, _OutputIterator val )
- {
- unsigned ivar = get_var_idx( varname );
- FortranUnformatted ff( gen_fname(m_cpu) );
- //.. skip header and particle position entries ..//
- ff.skip_n_from_start( 8+m_nvar_stride[ivar] );
- mask=ff.read<_Basetype, _InputIterator, _OutputIterator>(mask,val);
-
- return mask;
- }
-
-
- //! retrieve data of specified variable from data source
- /*! The data for the specified variable, fixing a spatial dimension, is sent to an
- * output iterator.
- * @param varname name of the variable to be retrieved
- * @param val output iterator to which the retrieved data is sent
- * @return final position of the mask iterator
- */
- template< typename _Basetype, typename _OutputIterator >
- _OutputIterator get_var( const std::string& varname, _OutputIterator val )
- {
- unsigned ivar = get_var_idx( varname );
- FortranUnformatted ff( gen_fname(m_cpu) );
- //.. skip header and particle position entries ..//
- ff.skip_n_from_start( 8+m_nvar_stride[ivar] );
- ff.read<_Basetype, _OutputIterator>(val);
-
- return val;
- }
-
-
-
- //=== the following member functions are simply copied from the skeleton ===//
-
-
- //! generate bit mask for specified particle type
- /*! returns a particle type identifier for the given particle index
- * this is determined from the age and ID of the particle. Return
- * value is RAMSES_PTYPE_DM for dark matter particles (age=0,ID>0),
- * RAMSES_PTYPE_STAR for star particles (age>0,ID>0) and
- * RAMSES PTYPE_DEBRIS for debris type (SN remnant) particles
- * (age>0,ID=0).
- * @param ptype particle type, i.e. RAMSES_PTYPE_DM, RAMSES_PTYPE_STAR or RAMSES_PTYPE_DEBRIS
- * @param age_first
- * @param age_last
- * @param ids_first
- * @param mask
- * @return particle mask iterator
- */
- template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator>
- _OutputIterator mask_particle_type( int ptype,
- const _InputIterator1& age_first, const _InputIterator1& age_last,
- const _InputIterator2& ids_first, _OutputIterator mask )
- {
- _InputIterator1 age_it=age_first;
- _InputIterator2 ids_it=ids_first;
-
- switch( ptype )
- {
- case ptype_dm:
- while( age_it != age_last )
- {
- if( fabs(*age_it) <= zero_age )
- *mask = true;
- else
- *mask = false;
- ++mask; ++age_it;
- }
- break;
-
- case ptype_star:
- while( age_it != age_last )
- {
- if( fabs(*age_it) > zero_age && (*ids_it) > 0)
- *mask = true;
- else
- *mask = false;
- ++mask; ++age_it; ++ids_it;
- }
- break;
-
- case ptype_debris:
- while( age_it != age_last )
- {
- if( fabs(*age_it) > zero_age && (*ids_it) == 0)
- *mask = true;
- else
- *mask = false;
- ++mask; ++age_it; ++ids_it;
- }
- break;
-
- default: throw std::runtime_error("get_particle_type_mask: Error, invalid particle type.");
- }
-
- return mask;
- }
-
-
-
-
- //! generate bit mask for a specified bounding region
- /*! Checks whether data points lie within a given region. The _BoundingRegion class object
- * must return true or false for a call of 'region(x,y,z)' if the point (x,y,z)
- * does or does not lie in the desired region.
- * @param region A region object used for querying whether points lie in a desired subspace.
- * @param x_first Input iterator pointing on first x-coordinate
- * @param x_last Input iterator pointing behind last x-coordinate
- * @param y_first Input iterator pointing on first y-coordinate
- * @param z_first Input iterator pointing on first z-coordinate
- * @param mask Output iterator to which true/false values are written
- * @return Final state of mask iterator
- */
- template<typename _InputIterator, typename _BoundingRegion, typename _OutputIterator>
- _OutputIterator mask_region( _BoundingRegion region,
- const _InputIterator& x_first, const _InputIterator& x_last,
- const _InputIterator& y_first, const _InputIterator& z_first,
- _OutputIterator mask )
- {
- _InputIterator xit=x_first, yit=y_first, zit=z_first;
-
- while( xit != x_last )
- {
- *mask = region( *xit, *yit, *zit );
- ++mask; ++xit; ++yit; ++zit;
- }
-
- return mask;
- }
-
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-#define R_CHECK_BIT(var,pos) ((var) & (1<<(pos)))
-
-template< typename Real_, typename IDType_ >
-inline bool is_of_type( Real_ age, IDType_ id, int ptype )
-{
- //if( ptype==ptype_star )
- if( R_CHECK_BIT( ptype, RAMSES_STAR_BIT ) )
- if( fabs(age)>zero_age && id > 0 )
- return true;
- //else return false;
-
- //if( ptype==ptype_dm )
- if( R_CHECK_BIT( ptype, RAMSES_DM_BIT ) )
- if( fabs(age)<=zero_age )
- return true;
- //else return false;
-
- //if( ptype==ptype_debris )
- if( R_CHECK_BIT( ptype, RAMSES_DEBRIS_BIT ) )
- if( fabs(age) > zero_age && id == 0 )
- return true;
- return false;
-}
-
-#undef R_CHECK_BIT
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-inline std::string data::gen_fname( int icpu )
-{
- std::string fname;
- char ext[32];
- fname = m_fname;
- fname.erase(fname.rfind('.')+1);
- sprintf(ext,"out%05d",icpu);
- fname.append(std::string(ext));
- return fname;
-}
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-inline void data::read_header( void )
-{
- FortranUnformatted ff( gen_fname(m_cpu) );
-
- //-- read header data --//
- ff.read( m_header.ncpu );
- ff.read( m_header.ndim );
- ff.read( m_header.npart );
- ff.read<int>( std::back_inserter(m_header.localseed) );
- ff.read( m_header.nstar_tot );
- ff.read( m_header.mstar_tot );
- ff.read( m_header.mstar_lost );
- ff.read( m_header.nsink );
-
-}
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-inline std::string data::rename_info2part( const std::string& info )
-{
- std::string amr;
- unsigned ii = info.rfind("info");
- amr = info.substr(0,ii)+"part" + info.substr(ii+4, 6) + ".out00001";
- return amr;
-}
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-/*!
- * @class RAMSES::PART::multi_domain_data
- * @brief encapsulates particle data from multiple computational domain
- *
- * This class provides high-level data access to bundled domain data, Bundling
- * of domain data is useful when analysis of snapshots is performed in parallel
- * but on a number of cores different than that used for the RAMSES simulation.
- */
-template< typename TreeType_, typename ValueType_=double >
-class multi_domain_data
-{
- protected:
- unsigned m_ndomains; //!< number of domains bundled
- RAMSES::snapshot &m_rsnap; //!< reference to the underlying snapshot object
- std::vector< std::vector<ValueType_> > m_data; //!< vector of bundled data objects
- std::vector<TreeType_*> m_ptrees; //!< vector of bundled tree objects
-
- public:
-
- //! constructor for bundled multi-domain particle data
- /*!
- * @param rsnap reference to the underlying snapshot object
- * @param ptrees vector of trees to be bundled
- */
- multi_domain_data( RAMSES::snapshot& rsnap, std::vector<TreeType_*> ptrees )
- : m_ndomains( ptrees.size() ), m_rsnap(rsnap), m_ptrees( ptrees )
- { }
-
-
- //! access a particle in a specific domain
- /*!
- * @param idomain the domain ID
- * @param ind the particle index
- */
- ValueType_& operator() ( unsigned idomain, unsigned ind )
- {
- return m_data[idomain][ind];
- }
-
- //! access the vector of particle of a specific domain
- /*!
- * @param idomain the domain ID
- */
- std::vector<ValueType_>& operator() ( unsigned idomain )
- {
- return m_data[idomain];
- }
-
- //! bundled read functions, reads in multi-domain data
- void get_var( std::string var_name )
- {
- m_data.clear();
- for( unsigned idom=0; idom<m_ndomains; ++idom )
- {
- data local_data( m_rsnap, m_ptrees[idom]->m_cpu );
- m_data.push_back( std::vector<ValueType_>() );
- local_data.get_var<ValueType_>(var_name, std::back_inserter(m_data.back()) );
- }
- }
-
- //! get the pointer to the vector of particles of a specific domain
- std::vector<ValueType_>* get_vpointer( unsigned idomain )
- {
- return &m_data[idomain];
- }
-
- //! TBD
- unsigned size( void ){ return m_data.size(); }
-
- //! TBD
- unsigned size( unsigned idom ) { return m_data.at(idom).size(); }
-};
-
-
-}// namespace PARTICLE
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-namespace GEOM{
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-//! TBD
-class bounding_sphere{
- protected:
- double
- xc, //!< TBD
- yc, //!< TBD
- zc, //!< TBD
- r, //!< TBD
- r2; //!< TBD
-
- public:
- //! TBD
- bounding_sphere( double _xc, double _yc, double _zc, double _r )
- : xc(_xc), yc(_yc), zc(_zc), r(_r), r2(r*r)
- { }
-
- //! TBD
- inline bool operator()( double x, double y, double z )
- {
- double dx(x-xc),dy(y-yc),dz(z-zc);
- return dx*dx+dy*dy+dz*dz < r2;
- }
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-//! TBD
-class bounding_box{
- protected:
- double
- xc, //!< TBD
- yc, //!< TBD
- zc, //!< TBD
- Lx, //!< TBD
- Ly, //!< TBD
- Lz, //!< TBD
- Lx2, //!< TBD
- Ly2, //!< TBD
- Lz2; //!< TBD
- public:
- //! TBD
- bounding_box( double _xc, double _yc, double _zc, double _Lx, double _Ly, double _Lz )
- : xc(_xc), yc(_yc), zc(_zc), Lx(_Lx), Ly(_Ly), Lz(_Lz), Lx2(0.5*Lx), Ly2(0.5*Ly), Lz2(0.5*Lz)
- { }
-
- //! TBD
- inline bool operator()( double x, double y, double z )
- {
- double dx(x-xc),dy(y-yc),dz(z-zc);
- return fabs(dx)<Lx2 && fabs(dy)<Ly2 && fabs(dz)<Lz2;
- }
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-//! TBD
-class bounding_cube:public bounding_box{
- public:
- //! TBD
- bounding_cube( double _xc, double _yc, double _zc, double _L )
- : bounding_box( _xc, _yc, _zc, _L, _L, _L )
- { }
-};
-
-/**************************************************************************************\
-\**************************************************************************************/
-
-}// namespace GEOMETRY
-
-}// namespace RAMSES
-
-#endif //__RAMSES_PARTICLE_DATA
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/RAMSES_poisson_data.hh
--- a/yt/frontends/ramses/ramses_headers/RAMSES_poisson_data.hh Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,249 +0,0 @@
-/*
- This file is part of libRAMSES++
- a C++ library to access snapshot files
- generated by the simulation code RAMSES by R. Teyssier
-
- Copyright (C) 2008-09 Oliver Hahn, ojha@gmx.de
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __RAMSES_POISSON_DATA_HH
-#define __RAMSES_POISSON_DATA_HH
-
-#include <fstream>
-#include <iostream>
-#include <iomanip>
-#include <vector>
-#include <cmath>
-
-#include "FortranUnformatted_IO.hh"
-#include "RAMSES_info.hh"
-#include "RAMSES_amr_data.hh"
-
-namespace RAMSES{
-namespace POISSON{
-
-
-/*!
- * @class data
- * @brief encapsulates hydro data from a RAMSES simulation snapshot
- *
- * This class provides low-level read access to RAMSES hydro_XXXXX.out files.
- * Data from a given list of computational domains can be read and is
- * stored in internal datastructures.
- * Access to cell position and threaded tree structure of the cell is provided
- * through the member functions of class RAMSES_amr_level.
- * @sa RAMSES_amr_level
- */
-template< typename TreeType_, typename Real_=double >
-class data : public RAMSES::HYDRO::proto_data<TreeType_,Real_>{
-
-public:
-
- //! the poisson file header structure
- struct header{
- unsigned ncpu; //!< number of CPUs in simulation
- unsigned ndim; //!< number of spatial dimensions
- unsigned nlevelmax; //!< maximum allowed refinement level
- unsigned nboundary; //!< number of boundary regions
- };
-
-
- std::string m_fname; //!< the file name
- struct header m_header; //!< header meta data
-
-protected:
- //! generates a poisson_XXXX filename for specified cpu
- std::string gen_fname( int icpu );
-
- //! generate poisson_XXXXX filename from info filename
- std::string rename_info2poisson( const std::string& info );
-
- //! generate poisson_XXXXX filename from amr filename
- std::string rename_amr2poisson( const std::string& info );
-
- //! read header data containing meta information
- void read_header( void );
-
- //! perform read operation of poisson variables (internal use)
- /*!
- *
- */
- void read( void );
-
-public:
-
- //! constructor for poisson solver gravity data
- /*!
- * @param AMRtree underlying AMR hierarchical tree data structure
- */
- explicit data( TreeType_& AMRtree )
- : proto_data<TreeType_,Real_>( AMRtree ),
- m_fname( rename_amr2poisson(AMRtree.m_fname) )
- {
- read_header();
-
- if( this->m_cpu > m_header.ncpu || this->m_cpu < 1 )
- throw std::runtime_error("RAMSES::POISSON::data : expect to read from out of range CPU.");
-
- if( this->m_minlevel < 0 || this->m_maxlevel >= m_header.nlevelmax )
- throw std::runtime_error("RAMSES::POISSON::data : requested level is invalid.");
- }
-
- //! access the value of the cells associated with the oct designated by the iterator
- /*!
- * @param it the grid iterator pointing to the current oct
- * @param ind index of the child cell of the current oct (0..7)
- * @param idir the cartesian direction of the force vector (0..2)
- */
- inline ValueType_& cell_value( const typename TreeType_::iterator& it, int ind, int idir )
- {
- unsigned ipos = it.get_absolute_position();
- unsigned ilevel = it.get_level();//-m_minlevel;
- return (m_var_array[ilevel])[3*(m_twotondim*ipos+ind)+idir];
- }
-
- //! access the value of the cells associated with the oct designated by the iterator
- /*!
- * a call to this function will always fail since the poisson files contain only forces so far
- * @param it the grid iterator pointing to the current oct
- * @param ind index of the child cell of the current oct (0..7)
- */
- inline ValueType_& cell_value( const typename TreeType_::iterator& it, int ind )
- {
- throw std::runtime_error("You should not call this two variable cell_value(.,.) function for forces!");
- return (m_var_array[ilevel])[3*(m_twotondim*ipos+ind)];
- }
-
- //! access the value of the cells associated with the oct designated by the iterator
- /*!
- * @param it the grid iterator pointing to the current oct
- * @param ind index of the child cell of the current oct (0..7)
- * @param idir the cartesian direction of the force vector (0..2)
- */
- inline ValueType_& operator()( const typename TreeType_::iterator& it, int ind, int idir )
- { return cell_value(it,ind,idir); }
-
-};
-
-
-template< typename TreeType_, typename Real_ >
-void data<TreeType_,Real_>::read_header( void )
-{
- FortranUnformatted ff( gen_fname( this->m_cpu ) );
-
- //-- read header data --//
- ff.read( m_header.ncpu );
- ff.read( m_header.ndim );
- ff.read( m_header.nlevelmax );
- ff.read( m_header.nboundary );
-}
-
-
-template< typename TreeType_, typename Real_ >
-void data<TreeType_,Real_>::read( void )
-{
- this->m_var_array.clear();
- //int twotondim = (int)(pow(2,m_header.ndim)+0.5);
-
- FortranUnformatted ff( gen_fname( this->m_cpu ) );
-
- //.. skip header entries ..//
- ff.skip_n_from_start( 4 ); //.. skip header
-
- this->m_var_array.clear();
-
- for( unsigned ilvl = 0; ilvl<=this->m_maxlevel; ++ilvl ){
-
- this->m_var_array.push_back( std::vector<Real_>() );
-
- for( unsigned icpu = 0; icpu<m_header.ncpu+m_header.nboundary; ++icpu ){
-
- unsigned file_ilevel, file_ncache;
- ff.read(file_ilevel);
- ff.read(file_ncache);
-
- if( file_ncache == 0 )
- continue;
-
- if( ilvl >= this->m_minlevel ){
- if( file_ilevel != ilvl+1 )
- throw std::runtime_error("RAMSES::POISSON::data::read : corrupted file " \
- "or file seek failure in file \'"+m_fname+"\'.");
-
-
- std::vector<float> tmpx,tmpy,tmpz;
- for( unsigned i=0; i<this->m_twotondim; ++i )
- {
- ff.read<double>( std::back_inserter(tmpx) ); //.. x-force
- ff.read<double>( std::back_inserter(tmpy) ); //.. y-force
- ff.read<double>( std::back_inserter(tmpz) ); //.. z-force
- }
- //.. reorder array to increase data locality..//
- this->m_var_array.reserve( 3*tmpx.size() );
- for( unsigned i=0; i<file_ncache; ++i ){
- for( unsigned j=0; j<this->m_twotondim; ++j ){
- //... interleave directional data ...//
- (this->m_var_array.back()).push_back( tmpx[i+j*file_ncache] );
- (this->m_var_array.back()).push_back( tmpy[i+j*file_ncache] );
- (this->m_var_array.back()).push_back( tmpz[i+j*file_ncache] );
- }
- }
- }else{
- ff.skip_n( this->m_twotondim*3 );
- }
- }
- }
-}
-
-
-template< typename TreeType_, typename Real_ >
-std::string data<TreeType_,Real_>::gen_fname( int icpu )
-{
- std::string fname;
- char ext[32];
- fname = m_fname;
- fname.erase(fname.rfind('.')+1);
- sprintf(ext,"out%05d",icpu);
- fname.append(std::string(ext));
- return fname;
-}
-
-
-template< typename TreeType_, typename Real_ >
-std::string data<TreeType_,Real_>::rename_info2hydro( const std::string& info )
-{
- std::string amr;
- unsigned ii = info.rfind("info");
- amr = info.substr(0,ii)+"poisson" + info.substr(ii+4, 6) + ".out00001";
- return amr;
-}
-
-
-template< typename TreeType_, typename Real_ >
-std::string data<TreeType_,Real_>::rename_amr2hydro( const std::string& info )
-{
- std::string amr;
- unsigned ii = info.rfind("amr");
- amr = info.substr(0,ii)+"poisson" + info.substr(ii+3, 6) + ".out00001";
- return amr;
-}
-
-
-} // namespace POISSON
-} // namespace RAMSES
-
-
-#endif // .. __RAMSES_POISSON_DATA_HH
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/RAMSES_typedefs.h
--- a/yt/frontends/ramses/ramses_headers/RAMSES_typedefs.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#include <string>
-#include <vector>
-#include <cstdio>
-#include <iostream>
-#include <fstream>
-
-#include "RAMSES_amr_data.hh"
-#include "RAMSES_hydro_data.hh"
-
-//... define the RAMSES base cell type to be of cell_locally_essential type
-//... - this type allows moving between refinement levels
-namespace RAMSES {
- namespace AMR{
- typedef RAMSES::AMR::cell_locally_essential<unsigned, float> RAMSES_cell;
- typedef RAMSES::AMR::level<RAMSES_cell> RAMSES_level;
- typedef RAMSES::AMR::tree< RAMSES_cell, RAMSES::AMR::level< RAMSES_cell > > RAMSES_tree;
- }
- namespace HYDRO {
- typedef RAMSES::HYDRO::data< RAMSES::AMR::RAMSES_tree > RAMSES_hydro_data;
- }
-}
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/README
--- a/yt/frontends/ramses/ramses_headers/README Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-These are Header Files written by Oliver Hahn for reading RAMSES data. They do
-not need to be installed, as they full contain the entire RamsesRead++ library.
-
-The library may also be downloaded independently from:
-
- http://www.exp-astro.phys.ethz.ch/hahn/RamsesTools/
-
-Author: Oliver Hahn <ohahn@stanford.edu>
-Minor Modifications: Matthew Turk <matthewturk@gmail.com>
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/ramses_headers/data_iterators.hh
--- a/yt/frontends/ramses/ramses_headers/data_iterators.hh Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-#ifndef __DATA_ITERATORS_HH
-#define __DATA_ITERATORS_HH
-
-#include <iterator>
-/*template<typename _Container,typename _InputIterator>
-class conditional_iterator
-: public _Container::iterator
-{
-
-
-};*/
-
-//! TBD
-template<typename _Container,typename _InputIterator>
-class conditional_back_insert_iterator
-: public std::iterator<std::output_iterator_tag, void, void, void, void>
-{
- protected:
- _Container* container; //!< TBD
- _InputIterator cond_iterator; //!< TBD
-
- public:
- //! TBD
- typedef _Container container_type;
-
- //! TBD
- conditional_back_insert_iterator(_Container& __x,const _InputIterator& __i, int __prealloc=0)
- : container(&__x), cond_iterator(__i)
- {
- if( __prealloc > 0 )
- __x.reserve( __x.size()+__prealloc);
- }
-
- /*conditional_back_insert_iterator( const conditional_back_insert_iterator& __it )
- : container( __it.container ), cond_iterator( __it.cond_iterator )
- { }*/
-
- //! TBD
- conditional_back_insert_iterator&
- operator=( typename _Container::const_reference __value )
- {
- if( *cond_iterator )
- container->push_back(__value);
- ++cond_iterator;
- return *this;
- }
-
- //! TBD
- conditional_back_insert_iterator&
- operator*()
- { return *this; }
-
- //! TBD
- conditional_back_insert_iterator&
- operator++()
- { return *this; }
-
- //! TBD
- conditional_back_insert_iterator&
- operator++(int)
- { return *this; }
-};
-
-
-//! TBD
-template<typename _Container, typename _InputIterator>
-inline conditional_back_insert_iterator<_Container, _InputIterator>
-conditional_back_inserter(_Container& __x, const _InputIterator& __i, int __prealloc=0)
-{ return conditional_back_insert_iterator<_Container,_InputIterator>(__x,__i,__prealloc); }
-
-
-
-
-#endif
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/ramses/setup.py
--- a/yt/frontends/ramses/setup.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/ramses/setup.py Mon Sep 09 14:13:42 2013 -0400
@@ -9,13 +9,6 @@
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('ramses', parent_package, top_path)
- config.add_extension("_ramses_reader",
- ["yt/frontends/ramses/_ramses_reader.pyx"],
- language="c++",
- include_dirs=["yt/frontends/ramses/ramses_headers/"],
- libraries=["stdc++"],
- depends=glob.glob("yt/frontends/ramses/ramses_headers/*.hh")
- )
config.make_config_py() # installs __config__.py
#config.make_svn_version_py()
return config
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/stream/api.py
--- a/yt/frontends/stream/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/stream/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
API for yt.frontends.stream
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
StreamGrid, \
StreamHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/stream/data_structures.py
--- a/yt/frontends/stream/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/stream/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Data structures for Streaming, in-memory datasets
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import weakref
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/stream/definitions.py
--- a/yt/frontends/stream/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/stream/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,18 @@
"""
Definitions specific to the Streaming API
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Authors:
+ * Matthew Turk
- This file is part of yt.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/stream/fields.py
--- a/yt/frontends/stream/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/stream/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Fields specific to Streaming data
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/stream/io.py
--- a/yt/frontends/stream/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/stream/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Enzo-specific IO functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from collections import defaultdict
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/stream/misc.py
--- a/yt/frontends/stream/misc.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/stream/misc.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,25 +1,18 @@
"""
Miscellaneous functions that are Streaming-specific
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/tiger/__init__.py
--- a/yt/frontends/tiger/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/tiger/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.frontends.tiger
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/tiger/api.py
--- a/yt/frontends/tiger/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/tiger/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for yt.frontends.tiger
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .data_structures import \
TigerGrid, \
TigerHierarchy, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/tiger/data_structures.py
--- a/yt/frontends/tiger/data_structures.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/tiger/data_structures.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
TIGER-specific data structures
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.funcs import *
from yt.data_objects.grid_patch import \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/tiger/fields.py
--- a/yt/frontends/tiger/fields.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/tiger/fields.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Tiger-specific fields
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.data_objects.field_info_container import \
FieldInfoContainer, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/frontends/tiger/io.py
--- a/yt/frontends/tiger/io.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/frontends/tiger/io.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
TIGER-specific IO functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.utilities.io_handler import \
BaseIOHandler
diff -r 079e456c38a8 -r 2d06aa201903 yt/funcs.py
--- a/yt/funcs.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/funcs.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Useful functions. If non-original, see function for citation.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import __builtin__
import time, types, signal, inspect, traceback, sys, pdb, os
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/opengl_widgets/api.py
--- a/yt/gui/opengl_widgets/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/opengl_widgets/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.visualization.opengl_widgets
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/opengl_widgets/mip_viewer.py
--- a/yt/gui/opengl_widgets/mip_viewer.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/opengl_widgets/mip_viewer.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,24 +1,18 @@
"""
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-License:
- Copyright (C) 2010-2011 Matthew Turk All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
# A simple image viewer, soon to be useful for stereo images, using OpenGL.
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/opengl_widgets/rendering_contexts.py
--- a/yt/gui/opengl_widgets/rendering_contexts.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/opengl_widgets/rendering_contexts.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,24 +1,18 @@
"""
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-License:
- Copyright (C) 2010-2011 Matthew Turk All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import OpenGL.GL as GL
import OpenGL.GLUT as GLUT
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/opengl_widgets/small_apps.py
--- a/yt/gui/opengl_widgets/small_apps.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/opengl_widgets/small_apps.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,24 +1,18 @@
"""
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-License:
- Copyright (C) 2010-2011 Matthew Turk All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
# A simple image viewer, soon to be useful for stereo images, using OpenGL.
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/basic_repl.py
--- a/yt/gui/reason/basic_repl.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/basic_repl.py Mon Sep 09 14:13:42 2013 -0400
@@ -3,27 +3,20 @@
initially, but has been heavily modified and again re-released in compliance
with the terms of its original license.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import codeop
import inspect
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/bottle_mods.py
--- a/yt/gui/reason/bottle_mods.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/bottle_mods.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
Modifications and extensions to Bottle, to make it slightly more useful for
yt's purposes
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import uuid
import json
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/extdirect_repl.py
--- a/yt/gui/reason/extdirect_repl.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/extdirect_repl.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
A read-eval-print-loop that is served up through Bottle and accepts its
commands through ExtDirect calls
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import json
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/extdirect_router.py
--- a/yt/gui/reason/extdirect_router.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/extdirect_router.py Mon Sep 09 14:13:42 2013 -0400
@@ -184,3 +184,16 @@
source = "Ext.Direct.addProvider(%s);" % json.dumps(config)
return '<script type="text/javascript"> %s </script>' % source.strip()
+
+Authors:
+
+
+"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app.js
--- a/yt/gui/reason/html/app.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The main GUI facility for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.Loader.setConfig({enabled:true});
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/DataObjects.js
--- a/yt/gui/reason/html/app/controller/DataObjects.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/DataObjects.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,13 @@
/**********************************************************************
Data object controller for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
-
- This file is part of yt.
-
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
***********************************************************************/
Ext.define('Reason.controller.DataObjects', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/Debugger.js
--- a/yt/gui/reason/html/app/controller/Debugger.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/Debugger.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Debug helper for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.controller.Debugger', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/FileOpen.js
--- a/yt/gui/reason/html/app/controller/FileOpen.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/FileOpen.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
File Open Dialog for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.controller.FileOpen', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/Logging.js
--- a/yt/gui/reason/html/app/controller/Logging.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/Logging.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Logging entry controller for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.controller.Logging', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/MenuActions.js
--- a/yt/gui/reason/html/app/controller/MenuActions.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/MenuActions.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Menu actions in Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/Notebook.js
--- a/yt/gui/reason/html/app/controller/Notebook.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/Notebook.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Notebook controller for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.controller.Notebook', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/ServerCommunication.js
--- a/yt/gui/reason/html/app/controller/ServerCommunication.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/ServerCommunication.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Payload handling facility for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
var heartbeatRequest = false;
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/WidgetDirector.js
--- a/yt/gui/reason/html/app/controller/WidgetDirector.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/WidgetDirector.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
Widget controller class
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.controller.WidgetDirector', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/BaseWidget.js
--- a/yt/gui/reason/html/app/controller/widgets/BaseWidget.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/BaseWidget.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
Base widget class
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.require("Reason.templates.TemplateContainer");
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/GridDataViewer.js
--- a/yt/gui/reason/html/app/controller/widgets/GridDataViewer.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/GridDataViewer.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
// shim layer with setTimeout fallback
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/GridViewer.js
--- a/yt/gui/reason/html/app/controller/widgets/GridViewer.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/GridViewer.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
// shim layer with setTimeout fallback
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/IsocontourViewer.js
--- a/yt/gui/reason/html/app/controller/widgets/IsocontourViewer.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/IsocontourViewer.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,11 @@
/**********************************************************************
The isocontour viewer widget
-Author: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
// shim layer with setTimeout fallback
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/PannableMap.js
--- a/yt/gui/reason/html/app/controller/widgets/PannableMap.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/PannableMap.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
The Pannable Map Widget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.controller.widgets.PannableMap", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/ParameterFile.js
--- a/yt/gui/reason/html/app/controller/widgets/ParameterFile.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/ParameterFile.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Parameter File widget
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.controller.widgets.ParameterFile", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/PhasePlot.js
--- a/yt/gui/reason/html/app/controller/widgets/PhasePlot.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/PhasePlot.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/PlotWindow.js
--- a/yt/gui/reason/html/app/controller/widgets/PlotWindow.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/PlotWindow.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.controller.widgets.PlotWindow", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/ProgressBar.js
--- a/yt/gui/reason/html/app/controller/widgets/ProgressBar.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/ProgressBar.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.controller.widgets.ProgressBar", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/SampleWidget.js
--- a/yt/gui/reason/html/app/controller/widgets/SampleWidget.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/SampleWidget.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
Sample widget class
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.controller.widgets.SampleWidget', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/Scene.js
--- a/yt/gui/reason/html/app/controller/widgets/Scene.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/Scene.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,11 @@
/**********************************************************************
The 3D Scene Widget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Authors: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.controller.widgets.Scene", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/controller/widgets/StreamlineViewer.js
--- a/yt/gui/reason/html/app/controller/widgets/StreamlineViewer.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/controller/widgets/StreamlineViewer.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,11 @@
/**********************************************************************
The Streamline Viewer Widget
-Author: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/model/DataObject.js
--- a/yt/gui/reason/html/app/model/DataObject.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/model/DataObject.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
Data object model
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.model.DataObject', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/CellValues.js
--- a/yt/gui/reason/html/app/store/CellValues.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/CellValues.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Logging entry store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.CellValues', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/DataObjects.js
--- a/yt/gui/reason/html/app/store/DataObjects.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/DataObjects.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Logging entry store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.DataObjects', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/Fields.js
--- a/yt/gui/reason/html/app/store/Fields.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/Fields.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Field store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.Fields', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/FileListing.js
--- a/yt/gui/reason/html/app/store/FileListing.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/FileListing.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
File Listing store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.FileListing', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/LogEntries.js
--- a/yt/gui/reason/html/app/store/LogEntries.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/LogEntries.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Logging entry store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.LogEntries', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/Payloads.js
--- a/yt/gui/reason/html/app/store/Payloads.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/Payloads.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Payload store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.Payloads', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/Requests.js
--- a/yt/gui/reason/html/app/store/Requests.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/Requests.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
A store for outstanding requests
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.Requests', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/WidgetInstances.js
--- a/yt/gui/reason/html/app/store/WidgetInstances.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/WidgetInstances.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Widget instance store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.WidgetInstances', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/WidgetTypes.js
--- a/yt/gui/reason/html/app/store/WidgetTypes.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/WidgetTypes.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Widget class store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.WidgetTypes', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/widgets/CameraKeyFrames.js
--- a/yt/gui/reason/html/app/store/widgets/CameraKeyFrames.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/widgets/CameraKeyFrames.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Camera Key Frame store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.widgets.CameraKeyFrames', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/widgets/CameraPathElements.js
--- a/yt/gui/reason/html/app/store/widgets/CameraPathElements.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/widgets/CameraPathElements.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
Camera Path Element store for Reason
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.widgets.CameraPathElements', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/widgets/GridData.js
--- a/yt/gui/reason/html/app/store/widgets/GridData.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/widgets/GridData.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Grid data store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.widgets.GridData', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/widgets/LevelInformation.js
--- a/yt/gui/reason/html/app/store/widgets/LevelInformation.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/widgets/LevelInformation.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Level Info store for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.widgets.LevelInformation', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/store/widgets/SceneWidgets.js
--- a/yt/gui/reason/html/app/store/widgets/SceneWidgets.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/store/widgets/SceneWidgets.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
Widget Store for Reason
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.store.widgets.SceneWidgets', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/templates/TemplateContainer.js
--- a/yt/gui/reason/html/app/templates/TemplateContainer.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/templates/TemplateContainer.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.templates.TemplateContainer", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/CellInput.js
--- a/yt/gui/reason/html/app/view/CellInput.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/CellInput.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Cell input in Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.CellInput', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/CellView.js
--- a/yt/gui/reason/html/app/view/CellView.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/CellView.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Notebook Cell view for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
var cellDisplay = new Ext.XTemplate(
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/DataObjectTree.js
--- a/yt/gui/reason/html/app/view/DataObjectTree.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/DataObjectTree.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Data Object Tree for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.DataObjectTree', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/FileOpen.js
--- a/yt/gui/reason/html/app/view/FileOpen.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/FileOpen.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
File Open Dialog for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.FileOpen', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/LoggingGrid.js
--- a/yt/gui/reason/html/app/view/LoggingGrid.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/LoggingGrid.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Logging Grid for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.LoggingGrid', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/MainMenu.js
--- a/yt/gui/reason/html/app/view/MainMenu.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/MainMenu.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Main Menu in Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.MainMenu', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/MulticastSetup.js
--- a/yt/gui/reason/html/app/view/MulticastSetup.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/MulticastSetup.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
File Open Dialog for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.MulticastSetup', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/Notebook.js
--- a/yt/gui/reason/html/app/view/Notebook.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/Notebook.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Notebook view for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.Notebook', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/PayloadGrid.js
--- a/yt/gui/reason/html/app/view/PayloadGrid.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/PayloadGrid.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Received Payloads Grid for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.PayloadGrid', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/RequestsGrid.js
--- a/yt/gui/reason/html/app/view/RequestsGrid.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/RequestsGrid.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Requests Grid for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.RequestsGrid', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/WidgetInstancesGrid.js
--- a/yt/gui/reason/html/app/view/WidgetInstancesGrid.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/WidgetInstancesGrid.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Widget Instances Grid for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.WidgetInstancesGrid', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/WidgetTypesGrid.js
--- a/yt/gui/reason/html/app/view/WidgetTypesGrid.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/WidgetTypesGrid.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Widget Types Grid for Reason
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define('Reason.view.WidgetTypesGrid', {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/FieldPanel.js
--- a/yt/gui/reason/html/app/view/widgets/FieldPanel.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/FieldPanel.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Field Info Display
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.FieldPanel", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/GridDataViewer.js
--- a/yt/gui/reason/html/app/view/widgets/GridDataViewer.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/GridDataViewer.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Grid Data Viewer View
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.GridDataViewer", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/IsocontourCreator.js
--- a/yt/gui/reason/html/app/view/widgets/IsocontourCreator.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/IsocontourCreator.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
The Isocontour Creator
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.IsocontourCreator", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/LevelStats.js
--- a/yt/gui/reason/html/app/view/widgets/LevelStats.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/LevelStats.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
Level display stats
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.LevelStats", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/PannableMapView.js
--- a/yt/gui/reason/html/app/view/widgets/PannableMapView.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/PannableMapView.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
The Pannable Map Widget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.PannableMapView", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/ParameterFileDisplay.js
--- a/yt/gui/reason/html/app/view/widgets/ParameterFileDisplay.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/ParameterFileDisplay.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Parameter File Display Widget
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.ParameterFileDisplay", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/PhasePlot.js
--- a/yt/gui/reason/html/app/view/widgets/PhasePlot.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/PhasePlot.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/PhasePlotCreator.js
--- a/yt/gui/reason/html/app/view/widgets/PhasePlotCreator.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/PhasePlotCreator.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Phase Plot Creator
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.PhasePlotCreator", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/PlotWindow.js
--- a/yt/gui/reason/html/app/view/widgets/PlotWindow.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/PlotWindow.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Plot Window Widget View
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.PlotWindow", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/PlotWindowCreator.js
--- a/yt/gui/reason/html/app/view/widgets/PlotWindowCreator.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/PlotWindowCreator.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,32 +1,11 @@
/**********************************************************************
The Plot Window Widget
-Author: Cameron Hummels <chummels@gmail.com>
-Affiliation: Columbia
-Author: Jeffrey S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.PlotWindowCreator", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/html/app/view/widgets/Scene.js
--- a/yt/gui/reason/html/app/view/widgets/Scene.js Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/html/app/view/widgets/Scene.js Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,11 @@
/**********************************************************************
The Plot Window Widget View
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Authors: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
+Copyright (c) 2013, yt Development Team.
- This file is part of yt.
+Distributed under the terms of the Modified BSD License.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+The full license is in the file COPYING.txt, distributed with this software.
***********************************************************************/
Ext.define("Reason.view.widgets.Scene", {
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/http_repl.py
--- a/yt/gui/reason/http_repl.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/http_repl.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
A read-eval-print-loop that is served up through Bottle and accepts its
commands through HTTP
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import json
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/pannable_map.py
--- a/yt/gui/reason/pannable_map.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/pannable_map.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
A simple leaflet-based pannable map server
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import os
import numpy as np
import zipfile
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/pyro_queue.py
--- a/yt/gui/reason/pyro_queue.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/pyro_queue.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Task queue for reason.
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/utils.py
--- a/yt/gui/reason/utils.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/utils.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Utilities for Reason
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: Michigan State University
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from .bottle_mods import PayloadHandler
import base64
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/widget_builders.py
--- a/yt/gui/reason/widget_builders.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/widget_builders.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
These widget objects provide the interaction to yt tasks.
-Author: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Samuel Skillman
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.mods import *
import weakref
diff -r 079e456c38a8 -r 2d06aa201903 yt/gui/reason/widget_store.py
--- a/yt/gui/reason/widget_store.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/gui/reason/widget_store.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
This is a place to store widgets, and to create them.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.mods import *
import weakref
diff -r 079e456c38a8 -r 2d06aa201903 yt/mods.py
--- a/yt/mods.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/mods.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
Very simple convenience function for importing all the modules, setting up
the namespace and getting the last argument on the command line.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from __future__ import absolute_import
diff -r 079e456c38a8 -r 2d06aa201903 yt/startup_tasks.py
--- a/yt/startup_tasks.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/startup_tasks.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
Very simple convenience function for importing all the modules, setting up
the namespace and getting the last argument on the command line.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
# This handles the command line.
diff -r 079e456c38a8 -r 2d06aa201903 yt/testing.py
--- a/yt/testing.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/testing.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,19 @@
-"""Provides utility and helper functions for testing in yt.
+"""
-Author: Anthony Scpatz <scopatz@gmail.com>
-Affiliation: The University of Chicago
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Anthony Scopatz. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Anthony Scpatz
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import itertools as it
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/AUTHORS
--- a/yt/utilities/_libconfig/AUTHORS Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-
-Mark Lindner - Lead developer & maintainer.
-Daniel Marjamäki - Enhancements & bugfixes.
-Andrew Tytula - Windows port.
-Glenn Herteg - Enhancements, bugfixes, documentation corrections.
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/COPYING.LIB
--- a/yt/utilities/_libconfig/COPYING.LIB Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,510 +0,0 @@
-
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL. It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
- This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it. You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations
-below.
-
- When we speak of free software, we are referring to freedom of use,
-not price. Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
- To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights. These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
- For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you. You must make sure that they, too, receive or can get the source
-code. If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it. And you must show them these terms so they know their rights.
-
- We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
- To protect each distributor, we want to make it very clear that
-there is no warranty for the free library. Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
- Finally, software patents pose a constant threat to the existence of
-any free program. We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder. Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
- Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License. This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License. We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
- When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library. The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom. The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
- We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License. It also provides other free software developers Less
-of an advantage over competing non-free programs. These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries. However, the Lesser license provides advantages in certain
-special circumstances.
-
- For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it
-becomes a de-facto standard. To achieve this, non-free programs must
-be allowed to use the library. A more frequent case is that a free
-library does the same job as widely used non-free libraries. In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
- In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software. For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
- Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
- The precise terms and conditions for copying, distribution and
-modification follow. Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library". The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
- GNU LESSER GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
- A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
- The "Library", below, refers to any such software library or work
-which has been distributed under these terms. A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language. (Hereinafter, translation is
-included without limitation in the term "modification".)
-
- "Source code" for a work means the preferred form of the work for
-making modifications to it. For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control
-compilation and installation of the library.
-
- Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it). Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-
- 1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
- You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
- 2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) The modified work must itself be a software library.
-
- b) You must cause the files modified to carry prominent notices
- stating that you changed the files and the date of any change.
-
- c) You must cause the whole of the work to be licensed at no
- charge to all third parties under the terms of this License.
-
- d) If a facility in the modified Library refers to a function or a
- table of data to be supplied by an application program that uses
- the facility, other than as an argument passed when the facility
- is invoked, then you must make a good faith effort to ensure that,
- in the event an application does not supply such function or
- table, the facility still operates, and performs whatever part of
- its purpose remains meaningful.
-
- (For example, a function in a library to compute square roots has
- a purpose that is entirely well-defined independent of the
- application. Therefore, Subsection 2d requires that any
- application-supplied function or table used by this function must
- be optional: if the application does not supply it, the square
- root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library. To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License. (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.) Do not make any other change in
-these notices.
-
- Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
- This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
- 4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
- If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library". Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
- However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library". The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
- When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library. The
-threshold for this to be true is not precisely defined by law.
-
- If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work. (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
- Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
- 6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
- You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License. You must supply a copy of this License. If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License. Also, you must do one
-of these things:
-
- a) Accompany the work with the complete corresponding
- machine-readable source code for the Library including whatever
- changes were used in the work (which must be distributed under
- Sections 1 and 2 above); and, if the work is an executable linked
- with the Library, with the complete machine-readable "work that
- uses the Library", as object code and/or source code, so that the
- user can modify the Library and then relink to produce a modified
- executable containing the modified Library. (It is understood
- that the user who changes the contents of definitions files in the
- Library will not necessarily be able to recompile the application
- to use the modified definitions.)
-
- b) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (1) uses at run time a
- copy of the library already present on the user's computer system,
- rather than copying library functions into the executable, and (2)
- will operate properly with a modified version of the library, if
- the user installs one, as long as the modified version is
- interface-compatible with the version that the work was made with.
-
- c) Accompany the work with a written offer, valid for at least
- three years, to give the same user the materials specified in
- Subsection 6a, above, for a charge no more than the cost of
- performing this distribution.
-
- d) If distribution of the work is made by offering access to copy
- from a designated place, offer equivalent access to copy the above
- specified materials from the same place.
-
- e) Verify that the user has already received a copy of these
- materials or that you have already sent this user a copy.
-
- For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it. However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
- It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system. Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
- 7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities. This must be distributed under the terms of the
- Sections above.
-
- b) Give prominent notice with the combined library of the fact
- that part of it is a work based on the Library, and explaining
- where to find the accompanying uncombined form of the same work.
-
- 8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License. Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License. However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
- 9. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Library or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
- 10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
- 11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all. For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply, and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License
-may add an explicit geographical distribution limitation excluding those
-countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
- 14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission. For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this. Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
- NO WARRANTY
-
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Libraries
-
- If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change. You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms
-of the ordinary General Public License).
-
- To apply these terms, attach the following notices to the library.
-It is safest to attach them to the start of each source file to most
-effectively convey the exclusion of warranty; and each file should
-have at least the "copyright" line and a pointer to where the full
-notice is found.
-
-
- <one line to give the library's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or
-your school, if any, to sign a "copyright disclaimer" for the library,
-if necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
- library `Frob' (a library for tweaking knobs) written by James
- Random Hacker.
-
- <signature of Ty Coon>, 1 April 1990
- Ty Coon, President of Vice
-
-That's all there is to it!
-
-
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/README
--- a/yt/utilities/_libconfig/README Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-
-To produce a PDF manual, issue the command "make pdf" after running
-`./configure'.
-
- -*-
-
-If you do not wish to build the C++ components, use:
-
-./configure --disable-cxx
-
- -*-
-
-The `examples' subdirectory contains some examples of using libconfig
-from C and C++.
-
- -*-
-
-The config file syntax changed between versions 0.8 and 0.9. In order
-to implement all of the feature/enhancement requests in an elegant and
-self-consistent way, the configuration grammar had to be changed in a
-non-backward-compatible way. In particular, groups are now values, so
-the old syntax:
-
-group
-{
- ...
-}
-
-must now be written as:
-
-group =
-{
- ...
-};
-
-Note that the trailing semicolon, which was previously optional, is
-now required. Also note that a colon (':') can be used in place of the
-equals sign.
-
- -*-
-
-Flex and Bison are not required in order to build this
-package. However, if you modify the .l or .y files, you must have Flex
-(2.5.31 or better) and Bison (2.1 or better), respectively.
-
- -*-
-
-To successfully compile using MinGW (with gcc 4.4.0 or later), it may
-be necessary to modify the file "mingw32\4.4.0\libstdc++.la", changing line 11
-from:
-
-library_names='libstdc++.dll.a'
-
-to:
-
-library_names='libstdc++.a'
-
-(See http://trac.osgeo.org/geos/ticket/282 for more information).
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/README.yt
--- a/yt/utilities/_libconfig/README.yt Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-This is the package libconfig-1.4.6, included here for convenience. This
-library's homepage is available at http://www.hyperrealm.com/libconfig/ .
-
-libconfig is released under the LGPL, detailed in COPYING.LIB. For more
-information about libconfig, see the README, COPYING.LIB and AUTHORS files.
-
-We have modified the source tree in a very minor way. We have applied this
-patch to scanner.l (modified version included):
-
-89,90c89,90
-< integer [-+]?[0-9]+
-< integer64 [-+]?[0-9]+L(L)?
----
->
-> integer64 [-+]?[0-9]+(L(L)?)?
-165d164
-< {integer} { yylval->ival = atoi(yytext); return(TOK_INTEGER); }
-
-This removed the integer as a potential parse-target, and forces everything to
-64-bit integers. As such we have not provided a purely-libconfig experience.
-After this patch was applied, scanner.c was re-generated using lex.
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/grammar.c
--- a/yt/utilities/_libconfig/grammar.c Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,2001 +0,0 @@
-
-/* A Bison parser, made by GNU Bison 2.4.1. */
-
-/* Skeleton implementation for Bison's Yacc-like parsers in C
-
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
-
-/* C LALR(1) parser skeleton written by Richard Stallman, by
- simplifying the original so-called "semantic" parser. */
-
-/* All symbols defined below should begin with yy or YY, to avoid
- infringing on user name space. This should be done even for local
- variables, as they might otherwise be expanded by user macros.
- There are some unavoidable exceptions within include files to
- define necessary library symbols; they are noted "INFRINGES ON
- USER NAME SPACE" below. */
-
-/* Identify Bison output. */
-#define YYBISON 1
-
-/* Bison version. */
-#define YYBISON_VERSION "2.4.1"
-
-/* Skeleton name. */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers. */
-#define YYPURE 1
-
-/* Push parsers. */
-#define YYPUSH 0
-
-/* Pull parsers. */
-#define YYPULL 1
-
-/* Using locations. */
-#define YYLSP_NEEDED 0
-
-/* Substitute the variable and function names. */
-#define yyparse libconfig_yyparse
-#define yylex libconfig_yylex
-#define yyerror libconfig_yyerror
-#define yylval libconfig_yylval
-#define yychar libconfig_yychar
-#define yydebug libconfig_yydebug
-#define yynerrs libconfig_yynerrs
-
-
-/* Copy the first part of user declarations. */
-
-/* Line 189 of yacc.c */
-#line 32 "grammar.y"
-
-#include <string.h>
-#include <stdlib.h>
-#include "libconfig.h"
-#ifdef WIN32
-#include "wincompat.h"
-
-/* prevent warnings about redefined malloc/free in generated code: */
-#ifndef _STDLIB_H
-#define _STDLIB_H
-#endif
-
-#include <malloc.h>
-#endif
-#include "parsectx.h"
-#include "scanctx.h"
-
-/* these delcarations are provided to suppress compiler warnings */
-extern int libconfig_yylex();
-extern int libconfig_yyget_lineno();
-
-static const char *err_array_elem_type = "mismatched element type in array";
-static const char *err_duplicate_setting = "duplicate setting name";
-
-#define _delete(P) free((void *)(P))
-
-#define IN_ARRAY() \
- (ctx->parent && (ctx->parent->type == CONFIG_TYPE_ARRAY))
-
-#define IN_LIST() \
- (ctx->parent && (ctx->parent->type == CONFIG_TYPE_LIST))
-
-static void capture_parse_pos(void *scanner, struct scan_context *scan_ctx,
- config_setting_t *setting)
-{
- setting->line = (unsigned int)libconfig_yyget_lineno(scanner);
- setting->file = scanctx_current_filename(scan_ctx);
-}
-
-#define CAPTURE_PARSE_POS(S) \
- capture_parse_pos(scanner, scan_ctx, (S))
-
-void libconfig_yyerror(void *scanner, struct parse_context *ctx,
- struct scan_context *scan_ctx, char const *s)
-{
- if(ctx->config->error_text) return;
- ctx->config->error_line = libconfig_yyget_lineno(scanner);
- ctx->config->error_text = s;
-}
-
-
-
-/* Line 189 of yacc.c */
-#line 134 "grammar.c"
-
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 0
-#endif
-
-/* Enabling verbose error messages. */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 0
-#endif
-
-/* Enabling the token table. */
-#ifndef YYTOKEN_TABLE
-# define YYTOKEN_TABLE 0
-#endif
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- TOK_BOOLEAN = 258,
- TOK_INTEGER = 259,
- TOK_HEX = 260,
- TOK_INTEGER64 = 261,
- TOK_HEX64 = 262,
- TOK_FLOAT = 263,
- TOK_STRING = 264,
- TOK_NAME = 265,
- TOK_EQUALS = 266,
- TOK_NEWLINE = 267,
- TOK_ARRAY_START = 268,
- TOK_ARRAY_END = 269,
- TOK_LIST_START = 270,
- TOK_LIST_END = 271,
- TOK_COMMA = 272,
- TOK_GROUP_START = 273,
- TOK_GROUP_END = 274,
- TOK_END = 275,
- TOK_GARBAGE = 276,
- TOK_ERROR = 277
- };
-#endif
-/* Tokens. */
-#define TOK_BOOLEAN 258
-#define TOK_INTEGER 259
-#define TOK_HEX 260
-#define TOK_INTEGER64 261
-#define TOK_HEX64 262
-#define TOK_FLOAT 263
-#define TOK_STRING 264
-#define TOK_NAME 265
-#define TOK_EQUALS 266
-#define TOK_NEWLINE 267
-#define TOK_ARRAY_START 268
-#define TOK_ARRAY_END 269
-#define TOK_LIST_START 270
-#define TOK_LIST_END 271
-#define TOK_COMMA 272
-#define TOK_GROUP_START 273
-#define TOK_GROUP_END 274
-#define TOK_END 275
-#define TOK_GARBAGE 276
-#define TOK_ERROR 277
-
-
-
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-{
-
-/* Line 214 of yacc.c */
-#line 85 "grammar.y"
-
- int ival;
- long long llval;
- double fval;
- char *sval;
-
-
-
-/* Line 214 of yacc.c */
-#line 223 "grammar.c"
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-#endif
-
-
-/* Copy the second part of user declarations. */
-
-
-/* Line 264 of yacc.c */
-#line 235 "grammar.c"
-
-#ifdef short
-# undef short
-#endif
-
-#ifdef YYTYPE_UINT8
-typedef YYTYPE_UINT8 yytype_uint8;
-#else
-typedef unsigned char yytype_uint8;
-#endif
-
-#ifdef YYTYPE_INT8
-typedef YYTYPE_INT8 yytype_int8;
-#elif (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-typedef signed char yytype_int8;
-#else
-typedef short int yytype_int8;
-#endif
-
-#ifdef YYTYPE_UINT16
-typedef YYTYPE_UINT16 yytype_uint16;
-#else
-typedef unsigned short int yytype_uint16;
-#endif
-
-#ifdef YYTYPE_INT16
-typedef YYTYPE_INT16 yytype_int16;
-#else
-typedef short int yytype_int16;
-#endif
-
-#ifndef YYSIZE_T
-# ifdef __SIZE_TYPE__
-# define YYSIZE_T __SIZE_TYPE__
-# elif defined size_t
-# define YYSIZE_T size_t
-# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-# else
-# define YYSIZE_T unsigned int
-# endif
-#endif
-
-#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
-
-#ifndef YY_
-# if YYENABLE_NLS
-# if ENABLE_NLS
-# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
-# define YY_(msgid) dgettext ("bison-runtime", msgid)
-# endif
-# endif
-# ifndef YY_
-# define YY_(msgid) msgid
-# endif
-#endif
-
-/* Suppress unused-variable warnings by "using" E. */
-#if ! defined lint || defined __GNUC__
-# define YYUSE(e) ((void) (e))
-#else
-# define YYUSE(e) /* empty */
-#endif
-
-/* Identity function, used to suppress warnings about constant conditions. */
-#ifndef lint
-# define YYID(n) (n)
-#else
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int yyi)
-#else
-static int
-YYID (yyi)
- int yyi;
-#endif
-{
- return yyi;
-}
-#endif
-
-#if ! defined yyoverflow || YYERROR_VERBOSE
-
-/* The parser invokes alloca or malloc; define the necessary symbols. */
-
-# ifdef YYSTACK_USE_ALLOCA
-# if YYSTACK_USE_ALLOCA
-# ifdef __GNUC__
-# define YYSTACK_ALLOC __builtin_alloca
-# elif defined __BUILTIN_VA_ARG_INCR
-# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
-# elif defined _AIX
-# define YYSTACK_ALLOC __alloca
-# elif defined _MSC_VER
-# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
-# define alloca _alloca
-# else
-# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef _STDLIB_H
-# define _STDLIB_H 1
-# endif
-# endif
-# endif
-# endif
-# endif
-
-# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
-# ifndef YYSTACK_ALLOC_MAXIMUM
- /* The OS might guarantee only one guard page at the bottom of the stack,
- and a page size can be as small as 4096 bytes. So we cannot safely
- invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
- to allow for a few compiler-allocated temporary stack slots. */
-# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
-# endif
-# else
-# define YYSTACK_ALLOC YYMALLOC
-# define YYSTACK_FREE YYFREE
-# ifndef YYSTACK_ALLOC_MAXIMUM
-# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
-# endif
-# if (defined __cplusplus && ! defined _STDLIB_H \
- && ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef _STDLIB_H
-# define _STDLIB_H 1
-# endif
-# endif
-# ifndef YYMALLOC
-# define YYMALLOC malloc
-# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifndef YYFREE
-# define YYFREE free
-# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void free (void *); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# endif
-#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-
-
-#if (! defined yyoverflow \
- && (! defined __cplusplus \
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
-
-/* A type that is properly aligned for any stack member. */
-union yyalloc
-{
- yytype_int16 yyss_alloc;
- YYSTYPE yyvs_alloc;
-};
-
-/* The size of the maximum gap between one aligned stack and the next. */
-# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
-
-/* The size of an array large to enough to hold all stacks, each with
- N elements. */
-# define YYSTACK_BYTES(N) \
- ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
- + YYSTACK_GAP_MAXIMUM)
-
-/* Copy COUNT objects from FROM to TO. The source and destination do
- not overlap. */
-# ifndef YYCOPY
-# if defined __GNUC__ && 1 < __GNUC__
-# define YYCOPY(To, From, Count) \
- __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
-# else
-# define YYCOPY(To, From, Count) \
- do \
- { \
- YYSIZE_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (To)[yyi] = (From)[yyi]; \
- } \
- while (YYID (0))
-# endif
-# endif
-
-/* Relocate STACK from its old location to the new one. The
- local variables YYSIZE and YYSTACKSIZE give the old and new number of
- elements in the stack, and YYPTR gives the new location of the
- stack. Advance YYPTR to a properly aligned location for the next
- stack. */
-# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
- Stack = &yyptr->Stack_alloc; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
-
-#endif
-
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 6
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 33
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 23
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 19
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 36
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 45
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 277
-
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const yytype_uint8 yytranslate[] =
-{
- 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
- 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 15, 16, 17, 18, 19, 20, 21, 22
-};
-
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint8 yyprhs[] =
-{
- 0, 0, 3, 4, 6, 8, 11, 12, 14, 15,
- 21, 22, 27, 28, 33, 35, 37, 39, 41, 43,
- 46, 48, 50, 52, 54, 56, 58, 60, 62, 66,
- 67, 69, 71, 75, 76, 78, 79
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int8 yyrhs[] =
-{
- 24, 0, -1, -1, 25, -1, 27, -1, 25, 27,
- -1, -1, 25, -1, -1, 10, 28, 11, 33, 20,
- -1, -1, 13, 30, 39, 14, -1, -1, 15, 32,
- 37, 16, -1, 35, -1, 29, -1, 31, -1, 40,
- -1, 9, -1, 34, 9, -1, 3, -1, 4, -1,
- 6, -1, 5, -1, 7, -1, 8, -1, 34, -1,
- 33, -1, 36, 17, 33, -1, -1, 36, -1, 35,
- -1, 38, 17, 35, -1, -1, 38, -1, -1, 18,
- 41, 26, 19, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] =
-{
- 0, 100, 100, 102, 106, 107, 110, 112, 117, 116,
- 136, 135, 159, 158, 181, 182, 183, 184, 188, 189,
- 193, 213, 235, 257, 279, 301, 319, 347, 348, 351,
- 353, 357, 358, 361, 363, 368, 367
-};
-#endif
-
-#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
-/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- First, the terminals, then, starting at YYNTOKENS, nonterminals. */
-static const char *const yytname[] =
-{
- "$end", "error", "$undefined", "TOK_BOOLEAN", "TOK_INTEGER", "TOK_HEX",
- "TOK_INTEGER64", "TOK_HEX64", "TOK_FLOAT", "TOK_STRING", "TOK_NAME",
- "TOK_EQUALS", "TOK_NEWLINE", "TOK_ARRAY_START", "TOK_ARRAY_END",
- "TOK_LIST_START", "TOK_LIST_END", "TOK_COMMA", "TOK_GROUP_START",
- "TOK_GROUP_END", "TOK_END", "TOK_GARBAGE", "TOK_ERROR", "$accept",
- "configuration", "setting_list", "setting_list_optional", "setting",
- "$@1", "array", "$@2", "list", "$@3", "value", "string", "simple_value",
- "value_list", "value_list_optional", "simple_value_list",
- "simple_value_list_optional", "group", "$@4", 0
-};
-#endif
-
-# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
-static const yytype_uint16 yytoknum[] =
-{
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
- 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
- 275, 276, 277
-};
-# endif
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 23, 24, 24, 25, 25, 26, 26, 28, 27,
- 30, 29, 32, 31, 33, 33, 33, 33, 34, 34,
- 35, 35, 35, 35, 35, 35, 35, 36, 36, 37,
- 37, 38, 38, 39, 39, 41, 40
-};
-
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
-{
- 0, 2, 0, 1, 1, 2, 0, 1, 0, 5,
- 0, 4, 0, 4, 1, 1, 1, 1, 1, 2,
- 1, 1, 1, 1, 1, 1, 1, 1, 3, 0,
- 1, 1, 3, 0, 1, 0, 4
-};
-
-/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
- STATE-NUM when YYTABLE doesn't specify something else to do. Zero
- means the default is an error. */
-static const yytype_uint8 yydefact[] =
-{
- 2, 8, 0, 3, 4, 0, 1, 5, 0, 20,
- 21, 23, 22, 24, 25, 18, 10, 12, 35, 15,
- 16, 0, 26, 14, 17, 33, 29, 6, 9, 19,
- 31, 34, 0, 27, 30, 0, 7, 0, 0, 11,
- 0, 13, 36, 32, 28
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int8 yydefgoto[] =
-{
- -1, 2, 3, 37, 4, 5, 19, 25, 20, 26,
- 21, 22, 23, 34, 35, 31, 32, 24, 27
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -19
-static const yytype_int8 yypact[] =
-{
- -1, -19, 12, -1, -19, 3, -19, -19, -2, -19,
- -19, -19, -19, -19, -19, -19, -19, -19, -19, -19,
- -19, -5, 8, -19, -19, 21, -2, -1, -19, -19,
- -19, 1, 5, -19, 4, 15, -1, 13, 21, -19,
- -2, -19, -19, -19, -19
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int8 yypgoto[] =
-{
- -19, -19, -7, -19, -3, -19, -19, -19, -19, -19,
- -18, -19, -15, -19, -19, -19, -19, -19, -19
-};
-
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule which
- number is the opposite. If zero, do what YYDEFACT says.
- If YYTABLE_NINF, syntax error. */
-#define YYTABLE_NINF -1
-static const yytype_uint8 yytable[] =
-{
- 7, 9, 10, 11, 12, 13, 14, 15, 33, 1,
- 30, 16, 6, 17, 8, 28, 18, 29, 38, 39,
- 36, 40, 44, 43, 9, 10, 11, 12, 13, 14,
- 15, 41, 42, 7
-};
-
-static const yytype_uint8 yycheck[] =
-{
- 3, 3, 4, 5, 6, 7, 8, 9, 26, 10,
- 25, 13, 0, 15, 11, 20, 18, 9, 17, 14,
- 27, 17, 40, 38, 3, 4, 5, 6, 7, 8,
- 9, 16, 19, 36
-};
-
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
-static const yytype_uint8 yystos[] =
-{
- 0, 10, 24, 25, 27, 28, 0, 27, 11, 3,
- 4, 5, 6, 7, 8, 9, 13, 15, 18, 29,
- 31, 33, 34, 35, 40, 30, 32, 41, 20, 9,
- 35, 38, 39, 33, 36, 37, 25, 26, 17, 14,
- 17, 16, 19, 35, 33
-};
-
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-
-
-/* Like YYERROR except do call yyerror. This remains here temporarily
- to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
-
-#define YYFAIL goto yyerrlab
-
-#define YYRECOVERING() (!!yyerrstatus)
-
-#define YYBACKUP(Token, Value) \
-do \
- if (yychar == YYEMPTY && yylen == 1) \
- { \
- yychar = (Token); \
- yylval = (Value); \
- yytoken = YYTRANSLATE (yychar); \
- YYPOPSTACK (1); \
- goto yybackup; \
- } \
- else \
- { \
- yyerror (scanner, ctx, scan_ctx, YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
-while (YYID (0))
-
-
-#define YYTERROR 1
-#define YYERRCODE 256
-
-
-/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
- If N is 0, then set CURRENT to the empty location which ends
- the previous symbol: RHS[0] (always defined). */
-
-#define YYRHSLOC(Rhs, K) ((Rhs)[K])
-#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- if (YYID (N)) \
- { \
- (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
- (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
- (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
- (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
- } \
- else \
- { \
- (Current).first_line = (Current).last_line = \
- YYRHSLOC (Rhs, 0).last_line; \
- (Current).first_column = (Current).last_column = \
- YYRHSLOC (Rhs, 0).last_column; \
- } \
- while (YYID (0))
-#endif
-
-
-/* YY_LOCATION_PRINT -- Print the location on the stream.
- This macro was not mandated originally: define only if we know
- we won't break user code: when these are the locations we know. */
-
-#ifndef YY_LOCATION_PRINT
-# if YYLTYPE_IS_TRIVIAL
-# define YY_LOCATION_PRINT(File, Loc) \
- fprintf (File, "%d.%d-%d.%d", \
- (Loc).first_line, (Loc).first_column, \
- (Loc).last_line, (Loc).last_column)
-# else
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-# endif
-#endif
-
-
-/* YYLEX -- calling `yylex' with the right arguments. */
-
-#ifdef YYLEX_PARAM
-# define YYLEX yylex (&yylval, YYLEX_PARAM)
-#else
-# define YYLEX yylex (&yylval, scanner)
-#endif
-
-/* Enable debugging if requested. */
-#if YYDEBUG
-
-# ifndef YYFPRINTF
-# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
-# define YYFPRINTF fprintf
-# endif
-
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (YYID (0))
-
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Type, Value, scanner, ctx, scan_ctx); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (YYID (0))
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx)
-#else
-static void
-yy_symbol_value_print (yyoutput, yytype, yyvaluep, scanner, ctx, scan_ctx)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
- void *scanner;
- struct parse_context *ctx;
- struct scan_context *scan_ctx;
-#endif
-{
- if (!yyvaluep)
- return;
- YYUSE (scanner);
- YYUSE (ctx);
- YYUSE (scan_ctx);
-# ifdef YYPRINT
- if (yytype < YYNTOKENS)
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# else
- YYUSE (yyoutput);
-# endif
- switch (yytype)
- {
- default:
- break;
- }
-}
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx)
-#else
-static void
-yy_symbol_print (yyoutput, yytype, yyvaluep, scanner, ctx, scan_ctx)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
- void *scanner;
- struct parse_context *ctx;
- struct scan_context *scan_ctx;
-#endif
-{
- if (yytype < YYNTOKENS)
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
- else
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
-
- yy_symbol_value_print (yyoutput, yytype, yyvaluep, scanner, ctx, scan_ctx);
- YYFPRINTF (yyoutput, ")");
-}
-
-/*------------------------------------------------------------------.
-| yy_stack_print -- Print the state stack from its BOTTOM up to its |
-| TOP (included). |
-`------------------------------------------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
-#else
-static void
-yy_stack_print (yybottom, yytop)
- yytype_int16 *yybottom;
- yytype_int16 *yytop;
-#endif
-{
- YYFPRINTF (stderr, "Stack now");
- for (; yybottom <= yytop; yybottom++)
- {
- int yybot = *yybottom;
- YYFPRINTF (stderr, " %d", yybot);
- }
- YYFPRINTF (stderr, "\n");
-}
-
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (YYID (0))
-
-
-/*------------------------------------------------.
-| Report that the YYRULE is going to be reduced. |
-`------------------------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_reduce_print (YYSTYPE *yyvsp, int yyrule, void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx)
-#else
-static void
-yy_reduce_print (yyvsp, yyrule, scanner, ctx, scan_ctx)
- YYSTYPE *yyvsp;
- int yyrule;
- void *scanner;
- struct parse_context *ctx;
- struct scan_context *scan_ctx;
-#endif
-{
- int yynrhs = yyr2[yyrule];
- int yyi;
- unsigned long int yylno = yyrline[yyrule];
- YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
- yyrule - 1, yylno);
- /* The symbols being reduced. */
- for (yyi = 0; yyi < yynrhs; yyi++)
- {
- YYFPRINTF (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- , scanner, ctx, scan_ctx);
- YYFPRINTF (stderr, "\n");
- }
-}
-
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (yyvsp, Rule, scanner, ctx, scan_ctx); \
-} while (YYID (0))
-
-/* Nonzero means print parse trace. It is left uninitialized so that
- multiple parsers can coexist. */
-int yydebug;
-#else /* !YYDEBUG */
-# define YYDPRINTF(Args)
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
-# define YY_STACK_PRINT(Bottom, Top)
-# define YY_REDUCE_PRINT(Rule)
-#endif /* !YYDEBUG */
-
-
-/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
-# define YYINITDEPTH 200
-#endif
-
-/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
- if the built-in stack extension method is used).
-
- Do not make this value too large; the results are undefined if
- YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
- evaluated with infinite-precision integer arithmetic. */
-
-#ifndef YYMAXDEPTH
-# define YYMAXDEPTH 10000
-#endif
-
-
-
-#if YYERROR_VERBOSE
-
-# ifndef yystrlen
-# if defined __GLIBC__ && defined _STRING_H
-# define yystrlen strlen
-# else
-/* Return the length of YYSTR. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static YYSIZE_T
-yystrlen (const char *yystr)
-#else
-static YYSIZE_T
-yystrlen (yystr)
- const char *yystr;
-#endif
-{
- YYSIZE_T yylen;
- for (yylen = 0; yystr[yylen]; yylen++)
- continue;
- return yylen;
-}
-# endif
-# endif
-
-# ifndef yystpcpy
-# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
-# define yystpcpy stpcpy
-# else
-/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
- YYDEST. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static char *
-yystpcpy (char *yydest, const char *yysrc)
-#else
-static char *
-yystpcpy (yydest, yysrc)
- char *yydest;
- const char *yysrc;
-#endif
-{
- char *yyd = yydest;
- const char *yys = yysrc;
-
- while ((*yyd++ = *yys++) != '\0')
- continue;
-
- return yyd - 1;
-}
-# endif
-# endif
-
-# ifndef yytnamerr
-/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
- quotes and backslashes, so that it's suitable for yyerror. The
- heuristic is that double-quoting is unnecessary unless the string
- contains an apostrophe, a comma, or backslash (other than
- backslash-backslash). YYSTR is taken from yytname. If YYRES is
- null, do not copy; instead, return the length of what the result
- would have been. */
-static YYSIZE_T
-yytnamerr (char *yyres, const char *yystr)
-{
- if (*yystr == '"')
- {
- YYSIZE_T yyn = 0;
- char const *yyp = yystr;
-
- for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
- do_not_strip_quotes: ;
- }
-
- if (! yyres)
- return yystrlen (yystr);
-
- return yystpcpy (yyres, yystr) - yyres;
-}
-# endif
-
-/* Copy into YYRESULT an error message about the unexpected token
- YYCHAR while in state YYSTATE. Return the number of bytes copied,
- including the terminating null byte. If YYRESULT is null, do not
- copy anything; just return the number of bytes that would be
- copied. As a special case, return 0 if an ordinary "syntax error"
- message will do. Return YYSIZE_MAXIMUM if overflow occurs during
- size calculation. */
-static YYSIZE_T
-yysyntax_error (char *yyresult, int yystate, int yychar)
-{
- int yyn = yypact[yystate];
-
- if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
- return 0;
- else
- {
- int yytype = YYTRANSLATE (yychar);
- YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
- YYSIZE_T yysize = yysize0;
- YYSIZE_T yysize1;
- int yysize_overflow = 0;
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
- int yyx;
-
-# if 0
- /* This is so xgettext sees the translatable formats that are
- constructed on the fly. */
- YY_("syntax error, unexpected %s");
- YY_("syntax error, unexpected %s, expecting %s");
- YY_("syntax error, unexpected %s, expecting %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
-# endif
- char *yyfmt;
- char const *yyf;
- static char const yyunexpected[] = "syntax error, unexpected %s";
- static char const yyexpecting[] = ", expecting %s";
- static char const yyor[] = " or %s";
- char yyformat[sizeof yyunexpected
- + sizeof yyexpecting - 1
- + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
- * (sizeof yyor - 1))];
- char const *yyprefix = yyexpecting;
-
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
-
- /* Stay within bounds of both yycheck and yytname. */
- int yychecklim = YYLAST - yyn + 1;
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
- int yycount = 1;
-
- yyarg[0] = yytname[yytype];
- yyfmt = yystpcpy (yyformat, yyunexpected);
-
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
- {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
- {
- yycount = 1;
- yysize = yysize0;
- yyformat[sizeof yyunexpected - 1] = '\0';
- break;
- }
- yyarg[yycount++] = yytname[yyx];
- yysize1 = yysize + yytnamerr (0, yytname[yyx]);
- yysize_overflow |= (yysize1 < yysize);
- yysize = yysize1;
- yyfmt = yystpcpy (yyfmt, yyprefix);
- yyprefix = yyor;
- }
-
- yyf = YY_(yyformat);
- yysize1 = yysize + yystrlen (yyf);
- yysize_overflow |= (yysize1 < yysize);
- yysize = yysize1;
-
- if (yysize_overflow)
- return YYSIZE_MAXIMUM;
-
- if (yyresult)
- {
- /* Avoid sprintf, as that infringes on the user's name space.
- Don't have undefined behavior even if the translation
- produced a string with the wrong number of "%s"s. */
- char *yyp = yyresult;
- int yyi = 0;
- while ((*yyp = *yyf) != '\0')
- {
- if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
- {
- yyp += yytnamerr (yyp, yyarg[yyi++]);
- yyf += 2;
- }
- else
- {
- yyp++;
- yyf++;
- }
- }
- }
- return yysize;
- }
-}
-#endif /* YYERROR_VERBOSE */
-
-
-/*-----------------------------------------------.
-| Release the memory associated to this symbol. |
-`-----------------------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx)
-#else
-static void
-yydestruct (yymsg, yytype, yyvaluep, scanner, ctx, scan_ctx)
- const char *yymsg;
- int yytype;
- YYSTYPE *yyvaluep;
- void *scanner;
- struct parse_context *ctx;
- struct scan_context *scan_ctx;
-#endif
-{
- YYUSE (yyvaluep);
- YYUSE (scanner);
- YYUSE (ctx);
- YYUSE (scan_ctx);
-
- if (!yymsg)
- yymsg = "Deleting";
- YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
-
- switch (yytype)
- {
-
- default:
- break;
- }
-}
-
-/* Prevent warnings from -Wmissing-prototypes. */
-#ifdef YYPARSE_PARAM
-#if defined __STDC__ || defined __cplusplus
-int yyparse (void *YYPARSE_PARAM);
-#else
-int yyparse ();
-#endif
-#else /* ! YYPARSE_PARAM */
-#if defined __STDC__ || defined __cplusplus
-int yyparse (void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx);
-#else
-int yyparse ();
-#endif
-#endif /* ! YYPARSE_PARAM */
-
-
-
-
-
-/*-------------------------.
-| yyparse or yypush_parse. |
-`-------------------------*/
-
-#ifdef YYPARSE_PARAM
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *YYPARSE_PARAM)
-#else
-int
-yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-#endif
-#else /* ! YYPARSE_PARAM */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx)
-#else
-int
-yyparse (scanner, ctx, scan_ctx)
- void *scanner;
- struct parse_context *ctx;
- struct scan_context *scan_ctx;
-#endif
-#endif
-{
-/* The lookahead symbol. */
-int yychar;
-
-/* The semantic value of the lookahead symbol. */
-YYSTYPE yylval;
-
- /* Number of syntax errors so far. */
- int yynerrs;
-
- int yystate;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
-
- /* The stacks and their tools:
- `yyss': related to states.
- `yyvs': related to semantic values.
-
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
-
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss;
- yytype_int16 *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs;
- YYSTYPE *yyvsp;
-
- YYSIZE_T yystacksize;
-
- int yyn;
- int yyresult;
- /* Lookahead token as an internal (translated) token number. */
- int yytoken;
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
-
- /* The number of symbols on the RHS of the reduced rule.
- Keep to zero when no symbol should be popped. */
- int yylen = 0;
-
- yytoken = 0;
- yyss = yyssa;
- yyvs = yyvsa;
- yystacksize = YYINITDEPTH;
-
- YYDPRINTF ((stderr, "Starting parse\n"));
-
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
- yyssp = yyss;
- yyvsp = yyvs;
-
- goto yysetstate;
-
-/*------------------------------------------------------------.
-| yynewstate -- Push a new state, which is found in yystate. |
-`------------------------------------------------------------*/
- yynewstate:
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. So pushing a state here evens the stacks. */
- yyssp++;
-
- yysetstate:
- *yyssp = yystate;
-
- if (yyss + yystacksize - 1 <= yyssp)
- {
- /* Get the current used size of the three stacks, in elements. */
- YYSIZE_T yysize = yyssp - yyss + 1;
-
-#ifdef yyoverflow
- {
- /* Give user a chance to reallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- yytype_int16 *yyss1 = yyss;
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
- &yyss1, yysize * sizeof (*yyssp),
- &yyvs1, yysize * sizeof (*yyvsp),
- &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
- }
-#else /* no yyoverflow */
-# ifndef YYSTACK_RELOCATE
- goto yyexhaustedlab;
-# else
- /* Extend the stack our own way. */
- if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
- yystacksize *= 2;
- if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
-
- {
- yytype_int16 *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
- if (! yyptr)
- goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss_alloc, yyss);
- YYSTACK_RELOCATE (yyvs_alloc, yyvs);
-# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
- }
-# endif
-#endif /* no yyoverflow */
-
- yyssp = yyss + yysize - 1;
- yyvsp = yyvs + yysize - 1;
-
- YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
-
- if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
- }
-
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
-
- if (yystate == YYFINAL)
- YYACCEPT;
-
- goto yybackup;
-
-/*-----------.
-| yybackup. |
-`-----------*/
-yybackup:
-
- /* Do appropriate processing given the current state. Read a
- lookahead token if we need one and don't already have one. */
-
- /* First try to decide what to do without reference to lookahead token. */
- yyn = yypact[yystate];
- if (yyn == YYPACT_NINF)
- goto yydefault;
-
- /* Not known => get a lookahead token if don't already have one. */
-
- /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
- if (yychar == YYEMPTY)
- {
- YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
- }
-
- if (yychar <= YYEOF)
- {
- yychar = yytoken = YYEOF;
- YYDPRINTF ((stderr, "Now at end of input.\n"));
- }
- else
- {
- yytoken = YYTRANSLATE (yychar);
- YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
- }
-
- /* If the proper action on seeing token YYTOKEN is to reduce or to
- detect an error, take that action. */
- yyn += yytoken;
- if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
- goto yydefault;
- yyn = yytable[yyn];
- if (yyn <= 0)
- {
- if (yyn == 0 || yyn == YYTABLE_NINF)
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
-
- /* Count tokens shifted since error; after three, turn off error
- status. */
- if (yyerrstatus)
- yyerrstatus--;
-
- /* Shift the lookahead token. */
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
-
- /* Discard the shifted token. */
- yychar = YYEMPTY;
-
- yystate = yyn;
- *++yyvsp = yylval;
-
- goto yynewstate;
-
-
-/*-----------------------------------------------------------.
-| yydefault -- do the default action for the current state. |
-`-----------------------------------------------------------*/
-yydefault:
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
- goto yyreduce;
-
-
-/*-----------------------------.
-| yyreduce -- Do a reduction. |
-`-----------------------------*/
-yyreduce:
- /* yyn is the number of a rule to reduce with. */
- yylen = yyr2[yyn];
-
- /* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
-
- Otherwise, the following line sets YYVAL to garbage.
- This behavior is undocumented and Bison
- users should not rely upon it. Assigning to YYVAL
- unconditionally makes the parser a bit smaller, and it avoids a
- GCC warning that YYVAL may be used uninitialized. */
- yyval = yyvsp[1-yylen];
-
-
- YY_REDUCE_PRINT (yyn);
- switch (yyn)
- {
- case 8:
-
-/* Line 1455 of yacc.c */
-#line 117 "grammar.y"
- {
- ctx->setting = config_setting_add(ctx->parent, (yyvsp[(1) - (1)].sval), CONFIG_TYPE_NONE);
-
- if(ctx->setting == NULL)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_duplicate_setting);
- YYABORT;
- }
- else
- {
- CAPTURE_PARSE_POS(ctx->setting);
- }
- }
- break;
-
- case 10:
-
-/* Line 1455 of yacc.c */
-#line 136 "grammar.y"
- {
- if(IN_LIST())
- {
- ctx->parent = config_setting_add(ctx->parent, NULL, CONFIG_TYPE_ARRAY);
- CAPTURE_PARSE_POS(ctx->parent);
- }
- else
- {
- ctx->setting->type = CONFIG_TYPE_ARRAY;
- ctx->parent = ctx->setting;
- ctx->setting = NULL;
- }
- }
- break;
-
- case 11:
-
-/* Line 1455 of yacc.c */
-#line 151 "grammar.y"
- {
- if(ctx->parent)
- ctx->parent = ctx->parent->parent;
- }
- break;
-
- case 12:
-
-/* Line 1455 of yacc.c */
-#line 159 "grammar.y"
- {
- if(IN_LIST())
- {
- ctx->parent = config_setting_add(ctx->parent, NULL, CONFIG_TYPE_LIST);
- CAPTURE_PARSE_POS(ctx->parent);
- }
- else
- {
- ctx->setting->type = CONFIG_TYPE_LIST;
- ctx->parent = ctx->setting;
- ctx->setting = NULL;
- }
- }
- break;
-
- case 13:
-
-/* Line 1455 of yacc.c */
-#line 174 "grammar.y"
- {
- if(ctx->parent)
- ctx->parent = ctx->parent->parent;
- }
- break;
-
- case 18:
-
-/* Line 1455 of yacc.c */
-#line 188 "grammar.y"
- { parsectx_append_string(ctx, (yyvsp[(1) - (1)].sval)); free((yyvsp[(1) - (1)].sval)); }
- break;
-
- case 19:
-
-/* Line 1455 of yacc.c */
-#line 189 "grammar.y"
- { parsectx_append_string(ctx, (yyvsp[(2) - (2)].sval)); free((yyvsp[(2) - (2)].sval)); }
- break;
-
- case 20:
-
-/* Line 1455 of yacc.c */
-#line 194 "grammar.y"
- {
- if(IN_ARRAY() || IN_LIST())
- {
- config_setting_t *e = config_setting_set_bool_elem(ctx->parent, -1,
- (int)(yyvsp[(1) - (1)].ival));
-
- if(! e)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
- YYABORT;
- }
- else
- {
- CAPTURE_PARSE_POS(e);
- }
- }
- else
- config_setting_set_bool(ctx->setting, (int)(yyvsp[(1) - (1)].ival));
- }
- break;
-
- case 21:
-
-/* Line 1455 of yacc.c */
-#line 214 "grammar.y"
- {
- if(IN_ARRAY() || IN_LIST())
- {
- config_setting_t *e = config_setting_set_int_elem(ctx->parent, -1, (yyvsp[(1) - (1)].ival));
- if(! e)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
- YYABORT;
- }
- else
- {
- config_setting_set_format(e, CONFIG_FORMAT_DEFAULT);
- CAPTURE_PARSE_POS(e);
- }
- }
- else
- {
- config_setting_set_int(ctx->setting, (yyvsp[(1) - (1)].ival));
- config_setting_set_format(ctx->setting, CONFIG_FORMAT_DEFAULT);
- }
- }
- break;
-
- case 22:
-
-/* Line 1455 of yacc.c */
-#line 236 "grammar.y"
- {
- if(IN_ARRAY() || IN_LIST())
- {
- config_setting_t *e = config_setting_set_int64_elem(ctx->parent, -1, (yyvsp[(1) - (1)].llval));
- if(! e)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
- YYABORT;
- }
- else
- {
- config_setting_set_format(e, CONFIG_FORMAT_DEFAULT);
- CAPTURE_PARSE_POS(e);
- }
- }
- else
- {
- config_setting_set_int64(ctx->setting, (yyvsp[(1) - (1)].llval));
- config_setting_set_format(ctx->setting, CONFIG_FORMAT_DEFAULT);
- }
- }
- break;
-
- case 23:
-
-/* Line 1455 of yacc.c */
-#line 258 "grammar.y"
- {
- if(IN_ARRAY() || IN_LIST())
- {
- config_setting_t *e = config_setting_set_int_elem(ctx->parent, -1, (yyvsp[(1) - (1)].ival));
- if(! e)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
- YYABORT;
- }
- else
- {
- config_setting_set_format(e, CONFIG_FORMAT_HEX);
- CAPTURE_PARSE_POS(e);
- }
- }
- else
- {
- config_setting_set_int(ctx->setting, (yyvsp[(1) - (1)].ival));
- config_setting_set_format(ctx->setting, CONFIG_FORMAT_HEX);
- }
- }
- break;
-
- case 24:
-
-/* Line 1455 of yacc.c */
-#line 280 "grammar.y"
- {
- if(IN_ARRAY() || IN_LIST())
- {
- config_setting_t *e = config_setting_set_int64_elem(ctx->parent, -1, (yyvsp[(1) - (1)].llval));
- if(! e)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
- YYABORT;
- }
- else
- {
- config_setting_set_format(e, CONFIG_FORMAT_HEX);
- CAPTURE_PARSE_POS(e);
- }
- }
- else
- {
- config_setting_set_int64(ctx->setting, (yyvsp[(1) - (1)].llval));
- config_setting_set_format(ctx->setting, CONFIG_FORMAT_HEX);
- }
- }
- break;
-
- case 25:
-
-/* Line 1455 of yacc.c */
-#line 302 "grammar.y"
- {
- if(IN_ARRAY() || IN_LIST())
- {
- config_setting_t *e = config_setting_set_float_elem(ctx->parent, -1, (yyvsp[(1) - (1)].fval));
- if(! e)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
- YYABORT;
- }
- else
- {
- CAPTURE_PARSE_POS(e);
- }
- }
- else
- config_setting_set_float(ctx->setting, (yyvsp[(1) - (1)].fval));
- }
- break;
-
- case 26:
-
-/* Line 1455 of yacc.c */
-#line 320 "grammar.y"
- {
- if(IN_ARRAY() || IN_LIST())
- {
- const char *s = parsectx_take_string(ctx);
- config_setting_t *e = config_setting_set_string_elem(ctx->parent, -1, s);
- _delete(s);
-
- if(! e)
- {
- libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
- YYABORT;
- }
- else
- {
- CAPTURE_PARSE_POS(e);
- }
- }
- else
- {
- const char *s = parsectx_take_string(ctx);
- config_setting_set_string(ctx->setting, s);
- _delete(s);
- }
- }
- break;
-
- case 35:
-
-/* Line 1455 of yacc.c */
-#line 368 "grammar.y"
- {
- if(IN_LIST())
- {
- ctx->parent = config_setting_add(ctx->parent, NULL, CONFIG_TYPE_GROUP);
- CAPTURE_PARSE_POS(ctx->parent);
- }
- else
- {
- ctx->setting->type = CONFIG_TYPE_GROUP;
- ctx->parent = ctx->setting;
- ctx->setting = NULL;
- }
- }
- break;
-
- case 36:
-
-/* Line 1455 of yacc.c */
-#line 383 "grammar.y"
- {
- if(ctx->parent)
- ctx->parent = ctx->parent->parent;
- }
- break;
-
-
-
-/* Line 1455 of yacc.c */
-#line 1788 "grammar.c"
- default: break;
- }
- YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
-
- YYPOPSTACK (yylen);
- yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
-
- *++yyvsp = yyval;
-
- /* Now `shift' the result of the reduction. Determine what state
- that goes to, based on the state we popped back to and the rule
- number reduced by. */
-
- yyn = yyr1[yyn];
-
- yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
- if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
- yystate = yytable[yystate];
- else
- yystate = yydefgoto[yyn - YYNTOKENS];
-
- goto yynewstate;
-
-
-/*------------------------------------.
-| yyerrlab -- here on detecting error |
-`------------------------------------*/
-yyerrlab:
- /* If not already recovering from an error, report this error. */
- if (!yyerrstatus)
- {
- ++yynerrs;
-#if ! YYERROR_VERBOSE
- yyerror (scanner, ctx, scan_ctx, YY_("syntax error"));
-#else
- {
- YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
- if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
- {
- YYSIZE_T yyalloc = 2 * yysize;
- if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
- yyalloc = YYSTACK_ALLOC_MAXIMUM;
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
- yymsg = (char *) YYSTACK_ALLOC (yyalloc);
- if (yymsg)
- yymsg_alloc = yyalloc;
- else
- {
- yymsg = yymsgbuf;
- yymsg_alloc = sizeof yymsgbuf;
- }
- }
-
- if (0 < yysize && yysize <= yymsg_alloc)
- {
- (void) yysyntax_error (yymsg, yystate, yychar);
- yyerror (scanner, ctx, scan_ctx, yymsg);
- }
- else
- {
- yyerror (scanner, ctx, scan_ctx, YY_("syntax error"));
- if (yysize != 0)
- goto yyexhaustedlab;
- }
- }
-#endif
- }
-
-
-
- if (yyerrstatus == 3)
- {
- /* If just tried and failed to reuse lookahead token after an
- error, discard it. */
-
- if (yychar <= YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- }
- else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval, scanner, ctx, scan_ctx);
- yychar = YYEMPTY;
- }
- }
-
- /* Else will try to reuse lookahead token after shifting the error
- token. */
- goto yyerrlab1;
-
-
-/*---------------------------------------------------.
-| yyerrorlab -- error raised explicitly by YYERROR. |
-`---------------------------------------------------*/
-yyerrorlab:
-
- /* Pacify compilers like GCC when the user code never invokes
- YYERROR and the label yyerrorlab therefore never appears in user
- code. */
- if (/*CONSTCOND*/ 0)
- goto yyerrorlab;
-
- /* Do not reclaim the symbols of the rule which action triggered
- this YYERROR. */
- YYPOPSTACK (yylen);
- yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
- yystate = *yyssp;
- goto yyerrlab1;
-
-
-/*-------------------------------------------------------------.
-| yyerrlab1 -- common code for both syntax error and YYERROR. |
-`-------------------------------------------------------------*/
-yyerrlab1:
- yyerrstatus = 3; /* Each real token shifted decrements this. */
-
- for (;;)
- {
- yyn = yypact[yystate];
- if (yyn != YYPACT_NINF)
- {
- yyn += YYTERROR;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
- {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
-
- /* Pop the current state because it cannot handle the error token. */
- if (yyssp == yyss)
- YYABORT;
-
-
- yydestruct ("Error: popping",
- yystos[yystate], yyvsp, scanner, ctx, scan_ctx);
- YYPOPSTACK (1);
- yystate = *yyssp;
- YY_STACK_PRINT (yyss, yyssp);
- }
-
- *++yyvsp = yylval;
-
-
- /* Shift the error token. */
- YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
-
- yystate = yyn;
- goto yynewstate;
-
-
-/*-------------------------------------.
-| yyacceptlab -- YYACCEPT comes here. |
-`-------------------------------------*/
-yyacceptlab:
- yyresult = 0;
- goto yyreturn;
-
-/*-----------------------------------.
-| yyabortlab -- YYABORT comes here. |
-`-----------------------------------*/
-yyabortlab:
- yyresult = 1;
- goto yyreturn;
-
-#if !defined(yyoverflow) || YYERROR_VERBOSE
-/*-------------------------------------------------.
-| yyexhaustedlab -- memory exhaustion comes here. |
-`-------------------------------------------------*/
-yyexhaustedlab:
- yyerror (scanner, ctx, scan_ctx, YY_("memory exhausted"));
- yyresult = 2;
- /* Fall through. */
-#endif
-
-yyreturn:
- if (yychar != YYEMPTY)
- yydestruct ("Cleanup: discarding lookahead",
- yytoken, &yylval, scanner, ctx, scan_ctx);
- /* Do not reclaim the symbols of the rule which action triggered
- this YYABORT or YYACCEPT. */
- YYPOPSTACK (yylen);
- YY_STACK_PRINT (yyss, yyssp);
- while (yyssp != yyss)
- {
- yydestruct ("Cleanup: popping",
- yystos[*yyssp], yyvsp, scanner, ctx, scan_ctx);
- YYPOPSTACK (1);
- }
-#ifndef yyoverflow
- if (yyss != yyssa)
- YYSTACK_FREE (yyss);
-#endif
-#if YYERROR_VERBOSE
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
-#endif
- /* Make sure YYID is used. */
- return YYID (yyresult);
-}
-
-
-
-/* Line 1675 of yacc.c */
-#line 389 "grammar.y"
-
-
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/grammar.h
--- a/yt/utilities/_libconfig/grammar.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,113 +0,0 @@
-
-/* A Bison parser, made by GNU Bison 2.4.1. */
-
-/* Skeleton interface for Bison's Yacc-like parsers in C
-
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- TOK_BOOLEAN = 258,
- TOK_INTEGER = 259,
- TOK_HEX = 260,
- TOK_INTEGER64 = 261,
- TOK_HEX64 = 262,
- TOK_FLOAT = 263,
- TOK_STRING = 264,
- TOK_NAME = 265,
- TOK_EQUALS = 266,
- TOK_NEWLINE = 267,
- TOK_ARRAY_START = 268,
- TOK_ARRAY_END = 269,
- TOK_LIST_START = 270,
- TOK_LIST_END = 271,
- TOK_COMMA = 272,
- TOK_GROUP_START = 273,
- TOK_GROUP_END = 274,
- TOK_END = 275,
- TOK_GARBAGE = 276,
- TOK_ERROR = 277
- };
-#endif
-/* Tokens. */
-#define TOK_BOOLEAN 258
-#define TOK_INTEGER 259
-#define TOK_HEX 260
-#define TOK_INTEGER64 261
-#define TOK_HEX64 262
-#define TOK_FLOAT 263
-#define TOK_STRING 264
-#define TOK_NAME 265
-#define TOK_EQUALS 266
-#define TOK_NEWLINE 267
-#define TOK_ARRAY_START 268
-#define TOK_ARRAY_END 269
-#define TOK_LIST_START 270
-#define TOK_LIST_END 271
-#define TOK_COMMA 272
-#define TOK_GROUP_START 273
-#define TOK_GROUP_END 274
-#define TOK_END 275
-#define TOK_GARBAGE 276
-#define TOK_ERROR 277
-
-
-
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-{
-
-/* Line 1676 of yacc.c */
-#line 85 "grammar.y"
-
- int ival;
- long long llval;
- double fval;
- char *sval;
-
-
-
-/* Line 1676 of yacc.c */
-#line 105 "grammar.h"
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-#endif
-
-
-
-
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/libconfig.c
--- a/yt/utilities/_libconfig/libconfig.c Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1585 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#ifdef HAVE_CONFIG_H
-#include "ac_config.h"
-#endif
-
-#include "libconfig.h"
-#include "grammar.h"
-#include "scanner.h"
-#include "scanctx.h"
-#include "parsectx.h"
-#include "wincompat.h"
-
-#include <locale.h>
-
-#ifdef HAVE_XLOCALE_H
-#include <xlocale.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
-#define PATH_TOKENS ":./"
-#define CHUNK_SIZE 16
-#define FLOAT_PRECISION 10
-
-#define _new(T) (T *)calloc(sizeof(T), 1) /* zeroed */
-#define _delete(P) free((void *)(P))
-
-/* ------------------------------------------------------------------------- */
-
-#ifndef LIBCONFIG_STATIC
-#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
-
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
-{
- return(TRUE);
-}
-
-#endif /* WIN32 */
-#endif /* LIBCONFIG_STATIC */
-
-/* ------------------------------------------------------------------------- */
-
-static const char *__io_error = "file I/O error";
-
-static void __config_list_destroy(config_list_t *list);
-static void __config_write_setting(const config_setting_t *setting,
- FILE *stream, int depth,
- unsigned short tab_width);
-
-extern int libconfig_yyparse(void *scanner, struct parse_context *ctx,
- struct scan_context *scan_ctx);
-extern int libconfig_yylex_init_extra(struct scan_context *scan_ctx,
- yyscan_t *scanner);
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_locale_override(void)
-{
-#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__)) \
- && ! defined(__MINGW32__)
-
- _configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
- setlocale(LC_NUMERIC, "C");
-
-#elif defined(__APPLE__)
-
- locale_t loc = newlocale(LC_NUMERIC_MASK, "C", NULL);
- uselocale(loc);
-
-#elif ((defined HAVE_NEWLOCALE) && (defined HAVE_USELOCALE))
-
- locale_t loc = newlocale(LC_NUMERIC, "C", NULL);
- uselocale(loc);
-
-#else
-
-#warning "No way to modify calling thread's locale!"
-
-#endif
-}
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_locale_restore(void)
-{
-#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__)) \
- && ! defined(__MINGW32__)
-
- _configthreadlocale(_DISABLE_PER_THREAD_LOCALE);
-
-#elif ((defined HAVE_USELOCALE) && (defined HAVE_FREELOCALE))
-
- locale_t loc = uselocale(LC_GLOBAL_LOCALE);
- freelocale(loc);
-
-#else
-
-#warning "No way to modify calling thread's locale!"
-
-#endif
-}
-
-/* ------------------------------------------------------------------------- */
-
-static int __config_name_compare(const char *a, const char *b)
-{
- const char *p, *q;
-
- for(p = a, q = b; ; p++, q++)
- {
- int pd = ((! *p) || strchr(PATH_TOKENS, *p));
- int qd = ((! *q) || strchr(PATH_TOKENS, *q));
-
- if(pd && qd)
- break;
- else if(pd)
- return(-1);
- else if(qd)
- return(1);
- else if(*p < *q)
- return(-1);
- else if(*p > *q)
- return(1);
- }
-
- return(0);
-}
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_indent(FILE *stream, int depth, unsigned short w)
-{
- if(w)
- fprintf(stream, "%*s", (depth - 1) * w, " ");
- else
- {
- int i;
- for(i = 0; i < (depth - 1); ++i)
- fputc('\t', stream);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_write_value(const config_value_t *value, int type,
- int format, int depth,
- unsigned short tab_width, FILE *stream)
-{
- char fbuf[64];
-
- switch(type)
- {
- /* boolean */
- case CONFIG_TYPE_BOOL:
- fputs(value->ival ? "true" : "false", stream);
- break;
-
- /* int */
- case CONFIG_TYPE_INT:
- switch(format)
- {
- case CONFIG_FORMAT_HEX:
- fprintf(stream, "0x%X", value->ival);
- break;
-
- case CONFIG_FORMAT_DEFAULT:
- default:
- fprintf(stream, "%d", value->ival);
- break;
- }
- break;
-
- /* 64-bit int */
- case CONFIG_TYPE_INT64:
- switch(format)
- {
- case CONFIG_FORMAT_HEX:
- fprintf(stream, "0x" INT64_HEX_FMT "L", value->llval);
- break;
-
- case CONFIG_FORMAT_DEFAULT:
- default:
- fprintf(stream, INT64_FMT "L", value->llval);
- break;
- }
- break;
-
- /* float */
- case CONFIG_TYPE_FLOAT:
- {
- char *q;
-
- snprintf(fbuf, sizeof(fbuf) - 3, "%.*g", FLOAT_PRECISION, value->fval);
-
- /* check for exponent */
- q = strchr(fbuf, 'e');
- if(! q)
- {
- /* no exponent */
- if(! strchr(fbuf, '.')) /* no decimal point */
- strcat(fbuf, ".0");
- else
- {
- /* has decimal point */
- char *p;
-
- for(p = fbuf + strlen(fbuf) - 1; p > fbuf; --p)
- {
- if(*p != '0')
- {
- *(++p) = '\0';
- break;
- }
- }
- }
- }
-
- fputs(fbuf, stream);
- break;
- }
-
- /* string */
- case CONFIG_TYPE_STRING:
- {
- char *p;
-
- fputc('\"', stream);
-
- if(value->sval)
- {
- for(p = value->sval; *p; p++)
- {
- int c = (int)*p & 0xFF;
- switch(c)
- {
- case '\"':
- case '\\':
- fputc('\\', stream);
- fputc(c, stream);
- break;
-
- case '\n':
- fputs("\\n", stream);
- break;
-
- case '\r':
- fputs("\\r", stream);
- break;
-
- case '\f':
- fputs("\\f", stream);
- break;
-
- case '\t':
- fputs("\\t", stream);
- break;
-
- default:
- if(c >= ' ')
- fputc(c, stream);
- else
- fprintf(stream, "\\x%02X", c);
- }
- }
- }
- fputc('\"', stream);
- break;
- }
-
- /* list */
- case CONFIG_TYPE_LIST:
- {
- config_list_t *list = value->list;
-
- fprintf(stream, "( ");
-
- if(list)
- {
- int len = list->length;
- config_setting_t **s;
-
- for(s = list->elements; len--; s++)
- {
- __config_write_value(&((*s)->value), (*s)->type, (*s)->format,
- depth + 1, tab_width, stream);
-
- if(len)
- fputc(',', stream);
-
- fputc(' ', stream);
- }
- }
-
- fputc(')', stream);
- break;
- }
-
- /* array */
- case CONFIG_TYPE_ARRAY:
- {
- config_list_t *list = value->list;
-
- fprintf(stream, "[ ");
-
- if(list)
- {
- int len = list->length;
- config_setting_t **s;
-
- for(s = list->elements; len--; s++)
- {
- __config_write_value(&((*s)->value), (*s)->type, (*s)->format,
- depth + 1, tab_width, stream);
-
- if(len)
- fputc(',', stream);
-
- fputc(' ', stream);
- }
- }
-
- fputc(']', stream);
- break;
- }
-
- /* group */
- case CONFIG_TYPE_GROUP:
- {
- config_list_t *list = value->list;
-
- if(depth > 0)
- {
-#ifdef K_AND_R_STYLE /* Horrendous, but many people like it. */
- fputc(' ', stream);
-#else
- fputc('\n', stream);
-
- if(depth > 1)
- __config_indent(stream, depth, tab_width);
-#endif
- fprintf(stream, "{\n");
- }
-
- if(list)
- {
- int len = list->length;
- config_setting_t **s;
-
- for(s = list->elements; len--; s++)
- __config_write_setting(*s, stream, depth + 1, tab_width);
- }
-
- if(depth > 1)
- __config_indent(stream, depth, tab_width);
-
- if(depth > 0)
- fputc('}', stream);
-
- break;
- }
-
- default:
- /* this shouldn't happen, but handle it gracefully... */
- fputs("???", stream);
- break;
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_list_add(config_list_t *list, config_setting_t *setting)
-{
- if((list->length % CHUNK_SIZE) == 0)
- {
- list->elements = (config_setting_t **)realloc(
- list->elements,
- (list->length + CHUNK_SIZE) * sizeof(config_setting_t *));
- }
-
- list->elements[list->length] = setting;
- list->length++;
-}
-
-/* ------------------------------------------------------------------------- */
-
-static config_setting_t *__config_list_search(config_list_t *list,
- const char *name,
- unsigned int *idx)
-{
- config_setting_t **found = NULL;
- unsigned int i;
-
- if(! list)
- return(NULL);
-
- for(i = 0, found = list->elements; i < list->length; i++, found++)
- {
- if(! (*found)->name)
- continue;
-
- if(! __config_name_compare(name, (*found)->name))
- {
- if(idx)
- *idx = i;
-
- return(*found);
- }
- }
-
- return(NULL);
-}
-
-/* ------------------------------------------------------------------------- */
-
-static config_setting_t *__config_list_remove(config_list_t *list, int idx)
-{
- config_setting_t *removed = *(list->elements + idx);
- int offset = (idx * sizeof(config_setting_t *));
- int len = list->length - 1 - idx;
- char *base = (char *)list->elements + offset;
-
- memmove(base, base + sizeof(config_setting_t *),
- len * sizeof(config_setting_t *));
-
- list->length--;
-
- /* possibly realloc smaller? */
-
- return(removed);
-}
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_setting_destroy(config_setting_t *setting)
-{
- if(setting)
- {
- if(setting->name)
- _delete(setting->name);
-
- if(setting->type == CONFIG_TYPE_STRING)
- _delete(setting->value.sval);
-
- else if((setting->type == CONFIG_TYPE_GROUP)
- || (setting->type == CONFIG_TYPE_ARRAY)
- || (setting->type == CONFIG_TYPE_LIST))
- {
- if(setting->value.list)
- __config_list_destroy(setting->value.list);
- }
-
- if(setting->hook && setting->config->destructor)
- setting->config->destructor(setting->hook);
-
- _delete(setting);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_list_destroy(config_list_t *list)
-{
- config_setting_t **p;
- unsigned int i;
-
- if(! list)
- return;
-
- if(list->elements)
- {
- for(p = list->elements, i = 0; i < list->length; p++, i++)
- __config_setting_destroy(*p);
-
- _delete(list->elements);
- }
-
- _delete(list);
-}
-
-/* ------------------------------------------------------------------------- */
-
-static int __config_vector_checktype(const config_setting_t *vector, int type)
-{
- /* if the array is empty, then it has no type yet */
-
- if(! vector->value.list)
- return(CONFIG_TRUE);
-
- if(vector->value.list->length == 0)
- return(CONFIG_TRUE);
-
- /* if it's a list, any type is allowed */
-
- if(vector->type == CONFIG_TYPE_LIST)
- return(CONFIG_TRUE);
-
- /* otherwise the first element added determines the type of the array */
-
- return((vector->value.list->elements[0]->type == type)
- ? CONFIG_TRUE : CONFIG_FALSE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-static int __config_validate_name(const char *name)
-{
- const char *p = name;
-
- if(*p == '\0')
- return(CONFIG_FALSE);
-
- if(! isalpha(*p) && (*p != '*'))
- return(CONFIG_FALSE);
-
- for(++p; *p; ++p)
- {
- if(! (isalpha(*p) || isdigit(*p) || strchr("*_-", (int)*p)))
- return(CONFIG_FALSE);
- }
-
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-static int __config_read(config_t *config, FILE *stream, const char *filename,
- const char *str)
-{
- yyscan_t scanner;
- struct scan_context scan_ctx;
- struct parse_context parse_ctx;
- YY_BUFFER_STATE buffer = NULL;
- int r;
-
- /* Reinitialize the config */
- void (*destructor)(void *) = config->destructor;
- const char *include_dir = config->include_dir;
- unsigned short tab_width = config->tab_width;
- unsigned short flags = config->flags;
-
- config->include_dir = NULL;
- config_destroy(config);
- config_init(config);
-
- config->destructor = destructor;
- config->include_dir = include_dir;
- config->tab_width = tab_width;
- config->flags = flags;
-
- parsectx_init(&parse_ctx);
- parse_ctx.config = config;
- parse_ctx.parent = config->root;
- parse_ctx.setting = config->root;
-
- __config_locale_override();
-
- scanctx_init(&scan_ctx, filename);
- scan_ctx.config = config;
- libconfig_yylex_init_extra(&scan_ctx, &scanner);
-
- if(stream)
- libconfig_yyrestart(stream, scanner);
- else /* read from string */
- buffer = libconfig_yy_scan_string(str, scanner);
-
- libconfig_yyset_lineno(1, scanner);
- r = libconfig_yyparse(scanner, &parse_ctx, &scan_ctx);
-
- if(r != 0)
- {
- config->error_file = scanctx_current_filename(&scan_ctx);
- config->error_type = CONFIG_ERR_PARSE;
- }
-
- libconfig_yylex_destroy(scanner);
- config->filenames = scanctx_cleanup(&scan_ctx, &(config->num_filenames));
- parsectx_cleanup(&parse_ctx);
-
- __config_locale_restore();
-
- return(r == 0 ? CONFIG_TRUE : CONFIG_FALSE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_read(config_t *config, FILE *stream)
-{
- return(__config_read(config, stream, NULL, NULL));
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_read_string(config_t *config, const char *str)
-{
- return(__config_read(config, NULL, NULL, str));
-}
-
-/* ------------------------------------------------------------------------- */
-
-static void __config_write_setting(const config_setting_t *setting,
- FILE *stream, int depth,
- unsigned short tab_width)
-{
- if(depth > 1)
- __config_indent(stream, depth, tab_width);
-
- if(setting->name)
- {
- fputs(setting->name, stream);
- fprintf(stream, " %c ", (setting->type == CONFIG_TYPE_GROUP ? ':' : '='));
- }
-
- __config_write_value(&(setting->value), setting->type, setting->format,
- depth, tab_width, stream);
-
- if(depth > 0)
- {
- fputc(';', stream);
- fputc('\n', stream);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-void config_write(const config_t *config, FILE *stream)
-{
- __config_locale_override();
-
- __config_write_setting(config->root, stream, 0, config->tab_width);
-
- __config_locale_restore();
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_read_file(config_t *config, const char *filename)
-{
- int ret;
- FILE *stream = fopen(filename, "rt");
- if(! stream)
- {
- config->error_text = __io_error;
- config->error_type = CONFIG_ERR_FILE_IO;
- return(CONFIG_FALSE);
- }
-
- ret = __config_read(config, stream, filename, NULL);
- fclose(stream);
-
- return(ret);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_write_file(config_t *config, const char *filename)
-{
- FILE *f = fopen(filename, "wt");
- if(! f)
- {
- config->error_text = __io_error;
- config->error_type = CONFIG_ERR_FILE_IO;
- return(CONFIG_FALSE);
- }
-
- config_write(config, f);
- fclose(f);
- config->error_type = CONFIG_ERR_NONE;
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-void config_destroy(config_t *config)
-{
- unsigned int count = config->num_filenames;
- const char **f;
-
- __config_setting_destroy(config->root);
-
- for(f = config->filenames; count > 0; ++f, --count)
- _delete(*f);
-
- _delete(config->filenames);
- _delete(config->include_dir);
-
- memset((void *)config, 0, sizeof(config_t));
-}
-
-/* ------------------------------------------------------------------------- */
-
-void config_init(config_t *config)
-{
- memset((void *)config, 0, sizeof(config_t));
-
- config->root = _new(config_setting_t);
- config->root->type = CONFIG_TYPE_GROUP;
- config->root->config = config;
- config->tab_width = 2;
-}
-
-/* ------------------------------------------------------------------------- */
-
-void config_set_auto_convert(config_t *config, int flag)
-{
- if(flag)
- config->flags |= CONFIG_OPTION_AUTOCONVERT;
- else
- config->flags &= ~CONFIG_OPTION_AUTOCONVERT;
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_get_auto_convert(const config_t *config)
-{
- return((config->flags & CONFIG_OPTION_AUTOCONVERT) != 0);
-}
-
-/* ------------------------------------------------------------------------- */
-
-static config_setting_t *config_setting_create(config_setting_t *parent,
- const char *name, int type)
-{
- config_setting_t *setting;
- config_list_t *list;
-
- if((parent->type != CONFIG_TYPE_GROUP)
- && (parent->type != CONFIG_TYPE_ARRAY)
- && (parent->type != CONFIG_TYPE_LIST))
- return(NULL);
-
- setting = _new(config_setting_t);
- setting->parent = parent;
- setting->name = (name == NULL) ? NULL : strdup(name);
- setting->type = type;
- setting->config = parent->config;
- setting->hook = NULL;
- setting->line = 0;
-
- list = parent->value.list;
-
- if(! list)
- list = parent->value.list = _new(config_list_t);
-
- __config_list_add(list, setting);
-
- return(setting);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_get_int(const config_setting_t *setting)
-{
- switch(setting->type)
- {
- case CONFIG_TYPE_INT:
- return(setting->value.ival);
-
- case CONFIG_TYPE_INT64:
- if((setting->value.llval > INT32_MAX)
- || (setting->value.llval < INT32_MIN))
- return(0);
- else
- return((int)setting->value.llval);
-
- case CONFIG_TYPE_FLOAT:
- if((setting->config->flags & CONFIG_OPTION_AUTOCONVERT) != 0)
- return((int)(setting->value.fval));
- else
- /* fall through */;
-
- default:
- return(0);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-long long config_setting_get_int64(const config_setting_t *setting)
-{
- switch(setting->type)
- {
- case CONFIG_TYPE_INT64:
- return(setting->value.llval);
-
- case CONFIG_TYPE_INT:
- return((long long)setting->value.ival);
-
- case CONFIG_TYPE_FLOAT:
- if((setting->config->flags & CONFIG_OPTION_AUTOCONVERT) != 0)
- return((long long)(setting->value.fval));
- else
- /* fall through */;
-
- default:
- return(0);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_lookup_int(const config_setting_t *setting,
- const char *name, int *value)
-{
- config_setting_t *member = config_setting_get_member(setting, name);
- if(! member)
- return(CONFIG_FALSE);
-
- if(config_setting_type(member) != CONFIG_TYPE_INT)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_int(member);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_lookup_int64(const config_setting_t *setting,
- const char *name, long long *value)
-{
- config_setting_t *member = config_setting_get_member(setting, name);
- if(! member)
- return(CONFIG_FALSE);
-
- if(config_setting_type(member) != CONFIG_TYPE_INT64)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_int64(member);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_lookup_float(const config_setting_t *setting,
- const char *name, double *value)
-{
- config_setting_t *member = config_setting_get_member(setting, name);
- if(! member)
- return(CONFIG_FALSE);
-
- if(config_setting_type(member) != CONFIG_TYPE_FLOAT)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_float(member);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_lookup_string(const config_setting_t *setting,
- const char *name, const char **value)
-{
- config_setting_t *member = config_setting_get_member(setting, name);
- if(! member)
- return(CONFIG_FALSE);
-
- if(config_setting_type(member) != CONFIG_TYPE_STRING)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_string(member);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_lookup_bool(const config_setting_t *setting,
- const char *name, int *value)
-{
- config_setting_t *member = config_setting_get_member(setting, name);
- if(! member)
- return(CONFIG_FALSE);
-
- if(config_setting_type(member) != CONFIG_TYPE_BOOL)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_bool(member);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_set_int(config_setting_t *setting, int value)
-{
- switch(setting->type)
- {
- case CONFIG_TYPE_NONE:
- setting->type = CONFIG_TYPE_INT;
- /* fall through */
-
- case CONFIG_TYPE_INT:
- setting->value.ival = value;
- return(CONFIG_TRUE);
-
- case CONFIG_TYPE_FLOAT:
- if(config_get_auto_convert(setting->config))
- {
- setting->value.fval = (float)value;
- return(CONFIG_TRUE);
- }
- else
- return(CONFIG_FALSE);
-
- default:
- return(CONFIG_FALSE);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_set_int64(config_setting_t *setting, long long value)
-{
- switch(setting->type)
- {
- case CONFIG_TYPE_NONE:
- setting->type = CONFIG_TYPE_INT64;
- /* fall through */
-
- case CONFIG_TYPE_INT64:
- setting->value.llval = value;
- return(CONFIG_TRUE);
-
- case CONFIG_TYPE_INT:
- if((value > INT32_MAX) || (value < INT32_MIN))
- setting->value.ival = 0;
- else
- setting->value.ival = (int)value;
- return(CONFIG_TRUE);
-
- case CONFIG_TYPE_FLOAT:
- if(config_get_auto_convert(setting->config))
- {
- setting->value.fval = (float)value;
- return(CONFIG_TRUE);
- }
- else
- return(CONFIG_FALSE);
-
- default:
- return(CONFIG_FALSE);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-double config_setting_get_float(const config_setting_t *setting)
-{
- switch(setting->type)
- {
- case CONFIG_TYPE_FLOAT:
- return(setting->value.fval);
-
- case CONFIG_TYPE_INT:
- if(config_get_auto_convert(setting->config))
- return((double)(setting->value.ival));
- else
- return(0.0);
-
- case CONFIG_TYPE_INT64:
- if(config_get_auto_convert(setting->config))
- return((double)(setting->value.llval));
- else
- return(0.0);
-
- default:
- return(0.0);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_set_float(config_setting_t *setting, double value)
-{
- switch(setting->type)
- {
- case CONFIG_TYPE_NONE:
- setting->type = CONFIG_TYPE_FLOAT;
- /* fall through */
-
- case CONFIG_TYPE_FLOAT:
- setting->value.fval = value;
- return(CONFIG_TRUE);
-
- case CONFIG_TYPE_INT:
- if((setting->config->flags & CONFIG_OPTION_AUTOCONVERT) != 0)
- {
- setting->value.ival = (int)value;
- return(CONFIG_TRUE);
- }
- else
- return(CONFIG_FALSE);
-
- case CONFIG_TYPE_INT64:
- if((setting->config->flags & CONFIG_OPTION_AUTOCONVERT) != 0)
- {
- setting->value.llval = (long long)value;
- return(CONFIG_TRUE);
- }
- else
- return(CONFIG_FALSE);
-
- default:
- return(CONFIG_FALSE);
- }
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_get_bool(const config_setting_t *setting)
-{
- return((setting->type == CONFIG_TYPE_BOOL) ? setting->value.ival : 0);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_set_bool(config_setting_t *setting, int value)
-{
- if(setting->type == CONFIG_TYPE_NONE)
- setting->type = CONFIG_TYPE_BOOL;
- else if(setting->type != CONFIG_TYPE_BOOL)
- return(CONFIG_FALSE);
-
- setting->value.ival = value;
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-const char *config_setting_get_string(const config_setting_t *setting)
-{
- return((setting->type == CONFIG_TYPE_STRING) ? setting->value.sval : NULL);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_set_string(config_setting_t *setting, const char *value)
-{
- if(setting->type == CONFIG_TYPE_NONE)
- setting->type = CONFIG_TYPE_STRING;
- else if(setting->type != CONFIG_TYPE_STRING)
- return(CONFIG_FALSE);
-
- if(setting->value.sval)
- _delete(setting->value.sval);
-
- setting->value.sval = (value == NULL) ? NULL : strdup(value);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_set_format(config_setting_t *setting, short format)
-{
- if(((setting->type != CONFIG_TYPE_INT)
- && (setting->type != CONFIG_TYPE_INT64))
- || ((format != CONFIG_FORMAT_DEFAULT) && (format != CONFIG_FORMAT_HEX)))
- return(CONFIG_FALSE);
-
- setting->format = format;
-
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-short config_setting_get_format(config_setting_t *setting)
-{
- return(setting->format);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_lookup_from(config_setting_t *setting,
- const char *path)
-{
- const char *p = path;
- config_setting_t *found;
-
- for(;;)
- {
- while(*p && strchr(PATH_TOKENS, *p))
- p++;
-
- if(! *p)
- break;
-
- if(*p == '[')
- found = config_setting_get_elem(setting, atoi(++p));
- else
- found = config_setting_get_member(setting, p);
-
- if(! found)
- break;
-
- setting = found;
-
- while(! strchr(PATH_TOKENS, *p))
- p++;
- }
-
- return(*p ? NULL : setting);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_lookup(const config_t *config, const char *path)
-{
- return(config_lookup_from(config->root, path));
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_lookup_string(const config_t *config, const char *path,
- const char **value)
-{
- const config_setting_t *s = config_lookup(config, path);
- if(! s)
- return(CONFIG_FALSE);
-
- if(config_setting_type(s) != CONFIG_TYPE_STRING)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_string(s);
-
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_lookup_int(const config_t *config, const char *path,
- int *value)
-{
- const config_setting_t *s = config_lookup(config, path);
- if(! s)
- return(CONFIG_FALSE);
-
- if(config_setting_type(s) != CONFIG_TYPE_INT)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_int(s);
-
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_lookup_int64(const config_t *config, const char *path,
- long long *value)
-{
- const config_setting_t *s = config_lookup(config, path);
- if(! s)
- return(CONFIG_FALSE);
-
- if(config_setting_type(s) != CONFIG_TYPE_INT64)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_int64(s);
-
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_lookup_float(const config_t *config, const char *path,
- double *value)
-{
- const config_setting_t *s = config_lookup(config, path);
- if(! s)
- return(CONFIG_FALSE);
-
- if(config_setting_type(s) != CONFIG_TYPE_FLOAT)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_float(s);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_lookup_bool(const config_t *config, const char *path, int *value)
-{
- const config_setting_t *s = config_lookup(config, path);
- if(! s)
- return(CONFIG_FALSE);
-
- if(config_setting_type(s) != CONFIG_TYPE_BOOL)
- return(CONFIG_FALSE);
-
- *value = config_setting_get_bool(s);
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_get_int_elem(const config_setting_t *vector, int idx)
-{
- const config_setting_t *element = config_setting_get_elem(vector, idx);
-
- return(element ? config_setting_get_int(element) : 0);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_set_int_elem(config_setting_t *vector,
- int idx, int value)
-{
- config_setting_t *element = NULL;
-
- if((vector->type != CONFIG_TYPE_ARRAY) && (vector->type != CONFIG_TYPE_LIST))
- return(NULL);
-
- if(idx < 0)
- {
- if(! __config_vector_checktype(vector, CONFIG_TYPE_INT))
- return(NULL);
-
- element = config_setting_create(vector, NULL, CONFIG_TYPE_INT);
- }
- else
- {
- element = config_setting_get_elem(vector, idx);
-
- if(! element)
- return(NULL);
- }
-
- if(! config_setting_set_int(element, value))
- return(NULL);
-
- return(element);
-}
-
-/* ------------------------------------------------------------------------- */
-
-long long config_setting_get_int64_elem(const config_setting_t *vector,
- int idx)
-{
- const config_setting_t *element = config_setting_get_elem(vector, idx);
-
- return(element ? config_setting_get_int64(element) : 0);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_set_int64_elem(config_setting_t *vector,
- int idx, long long value)
-{
- config_setting_t *element = NULL;
-
- if((vector->type != CONFIG_TYPE_ARRAY) && (vector->type != CONFIG_TYPE_LIST))
- return(NULL);
-
- if(idx < 0)
- {
- if(! __config_vector_checktype(vector, CONFIG_TYPE_INT64))
- return(NULL);
-
- element = config_setting_create(vector, NULL, CONFIG_TYPE_INT64);
- }
- else
- {
- element = config_setting_get_elem(vector, idx);
-
- if(! element)
- return(NULL);
- }
-
- if(! config_setting_set_int64(element, value))
- return(NULL);
-
- return(element);
-}
-
-/* ------------------------------------------------------------------------- */
-
-double config_setting_get_float_elem(const config_setting_t *vector, int idx)
-{
- config_setting_t *element = config_setting_get_elem(vector, idx);
-
- return(element ? config_setting_get_float(element) : 0.0);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_set_float_elem(config_setting_t *vector,
- int idx, double value)
-{
- config_setting_t *element = NULL;
-
- if((vector->type != CONFIG_TYPE_ARRAY) && (vector->type != CONFIG_TYPE_LIST))
- return(NULL);
-
- if(idx < 0)
- {
- if(! __config_vector_checktype(vector, CONFIG_TYPE_FLOAT))
- return(NULL);
-
- element = config_setting_create(vector, NULL, CONFIG_TYPE_FLOAT);
- }
- else
- element = config_setting_get_elem(vector, idx);
-
- if(! element)
- return(NULL);
-
- if(! config_setting_set_float(element, value))
- return(NULL);
-
- return(element);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_get_bool_elem(const config_setting_t *vector, int idx)
-{
- config_setting_t *element = config_setting_get_elem(vector, idx);
-
- if(! element)
- return(CONFIG_FALSE);
-
- if(element->type != CONFIG_TYPE_BOOL)
- return(CONFIG_FALSE);
-
- return(element->value.ival);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_set_bool_elem(config_setting_t *vector,
- int idx, int value)
-{
- config_setting_t *element = NULL;
-
- if((vector->type != CONFIG_TYPE_ARRAY) && (vector->type != CONFIG_TYPE_LIST))
- return(NULL);
-
- if(idx < 0)
- {
- if(! __config_vector_checktype(vector, CONFIG_TYPE_BOOL))
- return(NULL);
-
- element = config_setting_create(vector, NULL, CONFIG_TYPE_BOOL);
- }
- else
- element = config_setting_get_elem(vector, idx);
-
- if(! element)
- return(NULL);
-
- if(! config_setting_set_bool(element, value))
- return(NULL);
-
- return(element);
-}
-
-/* ------------------------------------------------------------------------- */
-
-const char *config_setting_get_string_elem(const config_setting_t *vector,
- int idx)
-{
- config_setting_t *element = config_setting_get_elem(vector, idx);
-
- if(! element)
- return(NULL);
-
- if(element->type != CONFIG_TYPE_STRING)
- return(NULL);
-
- return(element->value.sval);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_set_string_elem(config_setting_t *vector,
- int idx, const char *value)
-{
- config_setting_t *element = NULL;
-
- if((vector->type != CONFIG_TYPE_ARRAY) && (vector->type != CONFIG_TYPE_LIST))
- return(NULL);
-
- if(idx < 0)
- {
- if(! __config_vector_checktype(vector, CONFIG_TYPE_STRING))
- return(NULL);
-
- element = config_setting_create(vector, NULL, CONFIG_TYPE_STRING);
- }
- else
- element = config_setting_get_elem(vector, idx);
-
- if(! element)
- return(NULL);
-
- if(! config_setting_set_string(element, value))
- return(NULL);
-
- return(element);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_get_elem(const config_setting_t *vector,
- unsigned int idx)
-{
- config_list_t *list = vector->value.list;
-
- if(((vector->type != CONFIG_TYPE_ARRAY)
- && (vector->type != CONFIG_TYPE_LIST)
- && (vector->type != CONFIG_TYPE_GROUP)) || ! list)
- return(NULL);
-
- if(idx >= list->length)
- return(NULL);
-
- return(list->elements[idx]);
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_get_member(const config_setting_t *setting,
- const char *name)
-{
- if(setting->type != CONFIG_TYPE_GROUP)
- return(NULL);
-
- return(__config_list_search(setting->value.list, name, NULL));
-}
-
-/* ------------------------------------------------------------------------- */
-
-void config_set_destructor(config_t *config, void (*destructor)(void *))
-{
- config->destructor = destructor;
-}
-
-/* ------------------------------------------------------------------------- */
-
-void config_set_include_dir(config_t *config, const char *include_dir)
-{
- _delete(config->include_dir);
- config->include_dir = strdup(include_dir);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_length(const config_setting_t *setting)
-{
- if((setting->type != CONFIG_TYPE_GROUP)
- && (setting->type != CONFIG_TYPE_ARRAY)
- && (setting->type != CONFIG_TYPE_LIST))
- return(0);
-
- if(! setting->value.list)
- return(0);
-
- return(setting->value.list->length);
-}
-
-/* ------------------------------------------------------------------------- */
-
-void config_setting_set_hook(config_setting_t *setting, void *hook)
-{
- setting->hook = hook;
-}
-
-/* ------------------------------------------------------------------------- */
-
-config_setting_t *config_setting_add(config_setting_t *parent,
- const char *name, int type)
-{
- if((type < CONFIG_TYPE_NONE) || (type > CONFIG_TYPE_LIST))
- return(NULL);
-
- if(! parent)
- return(NULL);
-
- if((parent->type == CONFIG_TYPE_ARRAY) || (parent->type == CONFIG_TYPE_LIST))
- name = NULL;
-
- if(name)
- {
- if(! __config_validate_name(name))
- return(NULL);
- }
-
- if(config_setting_get_member(parent, name) != NULL)
- return(NULL); /* already exists */
-
- return(config_setting_create(parent, name, type));
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_remove(config_setting_t *parent, const char *name)
-{
- unsigned int idx;
- config_setting_t *setting;
-
- if(! parent)
- return(CONFIG_FALSE);
-
- if(parent->type != CONFIG_TYPE_GROUP)
- return(CONFIG_FALSE);
-
- if(! (setting = __config_list_search(parent->value.list, name, &idx)))
- return(CONFIG_FALSE);
-
- __config_list_remove(parent->value.list, idx);
- __config_setting_destroy(setting);
-
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_remove_elem(config_setting_t *parent, unsigned int idx)
-{
- config_list_t *list;
- config_setting_t *removed = NULL;
-
- if(! parent)
- return(CONFIG_FALSE);
-
- list = parent->value.list;
-
- if(((parent->type != CONFIG_TYPE_ARRAY)
- && (parent->type != CONFIG_TYPE_LIST)
- && (parent->type != CONFIG_TYPE_GROUP)) || ! list)
- return(CONFIG_FALSE);
-
- if(idx >= list->length)
- return(CONFIG_FALSE);
-
- removed = __config_list_remove(list, idx);
- __config_setting_destroy(removed);
-
- return(CONFIG_TRUE);
-}
-
-/* ------------------------------------------------------------------------- */
-
-int config_setting_index(const config_setting_t *setting)
-{
- config_setting_t **found = NULL;
- config_list_t *list;
- int i;
-
- if(! setting->parent)
- return(-1);
-
- list = setting->parent->value.list;
-
- for(i = 0, found = list->elements; i < list->length; ++i, ++found)
- {
- if(*found == setting)
- return(i);
- }
-
- return(-1);
-}
-
-/* ------------------------------------------------------------------------- */
-/* eof */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/libconfig.h
--- a/yt/utilities/_libconfig/libconfig.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,309 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#ifndef __libconfig_h
-#define __libconfig_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
-#if defined(LIBCONFIG_STATIC)
-#define LIBCONFIG_API
-#elif defined(LIBCONFIG_EXPORTS)
-#define LIBCONFIG_API __declspec(dllexport)
-#else /* ! LIBCONFIG_EXPORTS */
-#define LIBCONFIG_API __declspec(dllimport)
-#endif /* LIBCONFIG_STATIC */
-#else /* ! WIN32 */
-#define LIBCONFIG_API
-#endif /* WIN32 */
-
-#define LIBCONFIG_VER_MAJOR 1
-#define LIBCONFIG_VER_MINOR 4
-#define LIBCONFIG_VER_REVISION 6
-
-#include <stdio.h>
-
-#define CONFIG_TYPE_NONE 0
-#define CONFIG_TYPE_GROUP 1
-#define CONFIG_TYPE_INT 2
-#define CONFIG_TYPE_INT64 3
-#define CONFIG_TYPE_FLOAT 4
-#define CONFIG_TYPE_STRING 5
-#define CONFIG_TYPE_BOOL 6
-#define CONFIG_TYPE_ARRAY 7
-#define CONFIG_TYPE_LIST 8
-
-#define CONFIG_FORMAT_DEFAULT 0
-#define CONFIG_FORMAT_HEX 1
-
-#define CONFIG_OPTION_AUTOCONVERT 0x01
-
-#define CONFIG_TRUE (1)
-#define CONFIG_FALSE (0)
-
-typedef union config_value_t
-{
- int ival;
- long long llval;
- double fval;
- char *sval;
- struct config_list_t *list;
-} config_value_t;
-
-typedef struct config_setting_t
-{
- char *name;
- short type;
- short format;
- config_value_t value;
- struct config_setting_t *parent;
- struct config_t *config;
- void *hook;
- unsigned int line;
- const char *file;
-} config_setting_t;
-
-typedef enum
-{
- CONFIG_ERR_NONE = 0,
- CONFIG_ERR_FILE_IO = 1,
- CONFIG_ERR_PARSE = 2
-} config_error_t;
-
-typedef struct config_list_t
-{
- unsigned int length;
- config_setting_t **elements;
-} config_list_t;
-
-typedef struct config_t
-{
- config_setting_t *root;
- void (*destructor)(void *);
- unsigned short flags;
- unsigned short tab_width;
- const char *include_dir;
- const char *error_text;
- const char *error_file;
- int error_line;
- config_error_t error_type;
- const char **filenames;
- unsigned int num_filenames;
-} config_t;
-
-extern LIBCONFIG_API int config_read(config_t *config, FILE *stream);
-extern LIBCONFIG_API void config_write(const config_t *config, FILE *stream);
-
-extern LIBCONFIG_API void config_set_auto_convert(config_t *config, int flag);
-extern LIBCONFIG_API int config_get_auto_convert(const config_t *config);
-
-extern LIBCONFIG_API int config_read_string(config_t *config, const char *str);
-
-extern LIBCONFIG_API int config_read_file(config_t *config,
- const char *filename);
-extern LIBCONFIG_API int config_write_file(config_t *config,
- const char *filename);
-
-extern LIBCONFIG_API void config_set_destructor(config_t *config,
- void (*destructor)(void *));
-extern LIBCONFIG_API void config_set_include_dir(config_t *config,
- const char *include_dir);
-
-extern LIBCONFIG_API void config_init(config_t *config);
-extern LIBCONFIG_API void config_destroy(config_t *config);
-
-extern LIBCONFIG_API int config_setting_get_int(
- const config_setting_t *setting);
-extern LIBCONFIG_API long long config_setting_get_int64(
- const config_setting_t *setting);
-extern LIBCONFIG_API double config_setting_get_float(
- const config_setting_t *setting);
-extern LIBCONFIG_API int config_setting_get_bool(
- const config_setting_t *setting);
-extern LIBCONFIG_API const char *config_setting_get_string(
- const config_setting_t *setting);
-
-extern LIBCONFIG_API int config_setting_lookup_int(
- const config_setting_t *setting, const char *name, int *value);
-extern LIBCONFIG_API int config_setting_lookup_int64(
- const config_setting_t *setting, const char *name, long long *value);
-extern LIBCONFIG_API int config_setting_lookup_float(
- const config_setting_t *setting, const char *name, double *value);
-extern LIBCONFIG_API int config_setting_lookup_bool(
- const config_setting_t *setting, const char *name, int *value);
-extern LIBCONFIG_API int config_setting_lookup_string(
- const config_setting_t *setting, const char *name, const char **value);
-
-extern LIBCONFIG_API int config_setting_set_int(config_setting_t *setting,
- int value);
-extern LIBCONFIG_API int config_setting_set_int64(config_setting_t *setting,
- long long value);
-extern LIBCONFIG_API int config_setting_set_float(config_setting_t *setting,
- double value);
-extern LIBCONFIG_API int config_setting_set_bool(config_setting_t *setting,
- int value);
-extern LIBCONFIG_API int config_setting_set_string(config_setting_t *setting,
- const char *value);
-
-extern LIBCONFIG_API int config_setting_set_format(config_setting_t *setting,
- short format);
-extern LIBCONFIG_API short config_setting_get_format(config_setting_t *setting);
-
-extern LIBCONFIG_API int config_setting_get_int_elem(
- const config_setting_t *setting, int idx);
-extern LIBCONFIG_API long long config_setting_get_int64_elem(
- const config_setting_t *setting, int idx);
-extern LIBCONFIG_API double config_setting_get_float_elem(
- const config_setting_t *setting, int idx);
-extern LIBCONFIG_API int config_setting_get_bool_elem(
- const config_setting_t *setting, int idx);
-extern LIBCONFIG_API const char *config_setting_get_string_elem(
- const config_setting_t *setting, int idx);
-
-extern LIBCONFIG_API config_setting_t *config_setting_set_int_elem(
- config_setting_t *setting, int idx, int value);
-extern LIBCONFIG_API config_setting_t *config_setting_set_int64_elem(
- config_setting_t *setting, int idx, long long value);
-extern LIBCONFIG_API config_setting_t *config_setting_set_float_elem(
- config_setting_t *setting, int idx, double value);
-extern LIBCONFIG_API config_setting_t *config_setting_set_bool_elem(
- config_setting_t *setting, int idx, int value);
-extern LIBCONFIG_API config_setting_t *config_setting_set_string_elem(
- config_setting_t *setting, int idx, const char *value);
-
-#define /* const char * */ config_get_include_dir(/* const config_t * */ C) \
- ((C)->include_dir)
-
-#define /* int */ config_setting_type(/* const config_setting_t * */ S) \
- ((S)->type)
-
-#define /* int */ config_setting_is_group(/* const config_setting_t * */ S) \
- ((S)->type == CONFIG_TYPE_GROUP)
-#define /* int */ config_setting_is_array(/* const config_setting_t * */ S) \
- ((S)->type == CONFIG_TYPE_ARRAY)
-#define /* int */ config_setting_is_list(/* const config_setting_t * */ S) \
- ((S)->type == CONFIG_TYPE_LIST)
-
-#define /* int */ config_setting_is_aggregate( \
- /* const config_setting_t * */ S) \
- (((S)->type == CONFIG_TYPE_GROUP) || ((S)->type == CONFIG_TYPE_LIST) \
- || ((S)->type == CONFIG_TYPE_ARRAY))
-
-#define /* int */ config_setting_is_number(/* const config_setting_t * */ S) \
- (((S)->type == CONFIG_TYPE_INT) \
- || ((S)->type == CONFIG_TYPE_INT64) \
- || ((S)->type == CONFIG_TYPE_FLOAT))
-
-#define /* int */ config_setting_is_scalar(/* const config_setting_t * */ S) \
- (((S)->type == CONFIG_TYPE_BOOL) || ((S)->type == CONFIG_TYPE_STRING) \
- || config_setting_is_number(S))
-
-#define /* const char * */ config_setting_name( \
- /* const config_setting_t * */ S) \
- ((S)->name)
-
-#define /* config_setting_t * */ config_setting_parent( \
- /* const config_setting_t * */ S) \
- ((S)->parent)
-
-#define /* int */ config_setting_is_root( \
- /* const config_setting_t * */ S) \
- ((S)->parent ? CONFIG_FALSE : CONFIG_TRUE)
-
-extern LIBCONFIG_API int config_setting_index(const config_setting_t *setting);
-
-extern LIBCONFIG_API int config_setting_length(
- const config_setting_t *setting);
-extern LIBCONFIG_API config_setting_t *config_setting_get_elem(
- const config_setting_t *setting, unsigned int idx);
-
-extern LIBCONFIG_API config_setting_t *config_setting_get_member(
- const config_setting_t *setting, const char *name);
-
-extern LIBCONFIG_API config_setting_t *config_setting_add(
- config_setting_t *parent, const char *name, int type);
-extern LIBCONFIG_API int config_setting_remove(config_setting_t *parent,
- const char *name);
-extern LIBCONFIG_API int config_setting_remove_elem(config_setting_t *parent,
- unsigned int idx);
-extern LIBCONFIG_API void config_setting_set_hook(config_setting_t *setting,
- void *hook);
-
-#define config_setting_get_hook(S) ((S)->hook)
-
-extern LIBCONFIG_API config_setting_t *config_lookup(const config_t *config,
- const char *path);
-extern LIBCONFIG_API config_setting_t *config_lookup_from(
- config_setting_t *setting, const char *path);
-
-extern LIBCONFIG_API int config_lookup_int(const config_t *config,
- const char *path, int *value);
-extern LIBCONFIG_API int config_lookup_int64(const config_t *config,
- const char *path,
- long long *value);
-extern LIBCONFIG_API int config_lookup_float(const config_t *config,
- const char *path, double *value);
-extern LIBCONFIG_API int config_lookup_bool(const config_t *config,
- const char *path, int *value);
-extern LIBCONFIG_API int config_lookup_string(const config_t *config,
- const char *path,
- const char **value);
-
-#define /* config_setting_t * */ config_root_setting( \
- /* const config_t * */ C) \
- ((C)->root)
-
-#define /* void */ config_set_tab_width(/* config_t * */ C, \
- /* unsigned short */ W) \
- (C)->tab_width = ((W) & 0x0F)
-
-#define /* unsigned char */ config_get_tab_width(/* const config_t * */ C) \
- ((C)->tab_width)
-
-#define /* unsigned short */ config_setting_source_line( \
- /* const config_setting_t * */ S) \
- ((S)->line)
-
-#define /* const char */ config_setting_source_file( \
- /* const config_setting_t * */ S) \
- ((S)->file)
-
-#define /* const char * */ config_error_text(/* const config_t * */ C) \
- ((C)->error_text)
-
-#define /* const char * */ config_error_file(/* const config_t * */ C) \
- ((C)->error_file)
-
-#define /* int */ config_error_line(/* const config_t * */ C) \
- ((C)->error_line)
-
-#define /* config_error_t */ config_error_type(/* const config_t * */ C) \
- ((C)->error_type)
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* __libconfig_h */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/parsectx.h
--- a/yt/utilities/_libconfig/parsectx.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#ifndef __libconfig_parsectx_h
-#define __libconfig_parsectx_h
-
-#include "libconfig.h"
-#include "strbuf.h"
-
-struct parse_context
-{
- config_t *config;
- config_setting_t *parent;
- config_setting_t *setting;
- char *name;
- strbuf_t string;
-};
-
-#define parsectx_init(C) \
- memset((C), 0, sizeof(struct parse_context))
-#define parsectx_cleanup(C) \
- free((void *)(strbuf_release(&((C)->string))))
-
-#define parsectx_append_string(C, S) \
- strbuf_append(&((C)->string), (S))
-#define parsectx_take_string(C) \
- strbuf_release(&((C)->string))
-
-#endif /* __libconfig_parsectx_h */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/scanctx.c
--- a/yt/utilities/_libconfig/scanctx.c Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,171 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#include "scanctx.h"
-#include "wincompat.h"
-
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-
-#define STRING_BLOCK_SIZE 64
-#define CHUNK_SIZE 32
-
-/* ------------------------------------------------------------------------- */
-
-static const char *err_bad_include = "cannot open include file";
-static const char *err_include_too_deep = "include file nesting too deep";
-
-/* ------------------------------------------------------------------------- */
-
-static const char *__scanctx_add_filename(struct scan_context *ctx,
- const char *filename)
-{
- unsigned int count = ctx->num_filenames;
- const char **f;
-
- for(f = ctx->filenames; count > 0; ++f, --count)
- {
- if(!strcmp(*f, filename))
- {
- free((void *)filename);
- return(*f); /* already in list */
- }
- }
-
- if((ctx->num_filenames % CHUNK_SIZE) == 0)
- {
- ctx->filenames = (const char **)realloc(
- (void *)ctx->filenames,
- (ctx->num_filenames + CHUNK_SIZE) * sizeof(const char *));
- }
-
- ctx->filenames[ctx->num_filenames] = filename;
- ++ctx->num_filenames;
- return(filename);
-}
-
-/* ------------------------------------------------------------------------- */
-
-void scanctx_init(struct scan_context *ctx, const char *top_filename)
-{
- memset(ctx, 0, sizeof(struct scan_context));
- if(top_filename)
- ctx->top_filename = __scanctx_add_filename(ctx, strdup(top_filename));
-}
-
-/* ------------------------------------------------------------------------- */
-
-const char **scanctx_cleanup(struct scan_context *ctx,
- unsigned int *num_filenames)
-{
- int i;
-
- for(i = 0; i < ctx->depth; ++i)
- fclose(ctx->streams[i]);
-
- free((void *)(strbuf_release(&(ctx->string))));
-
- *num_filenames = ctx->num_filenames;
- return(ctx->filenames);
-}
-
-/* ------------------------------------------------------------------------- */
-
-FILE *scanctx_push_include(struct scan_context *ctx, void *buffer,
- const char **error)
-{
- FILE *fp = NULL;
- const char *file;
- char *full_file = NULL;
-
- *error = NULL;
-
- if(ctx->depth == MAX_INCLUDE_DEPTH)
- {
- *error = err_include_too_deep;
- return(NULL);
- }
-
- file = scanctx_take_string(ctx);
- if(ctx->config->include_dir)
- {
- full_file = (char *)malloc(strlen(ctx->config->include_dir) + strlen(file)
- + 2);
- strcpy(full_file, ctx->config->include_dir);
- strcat(full_file, FILE_SEPARATOR);
- strcat(full_file, file);
- }
-
- fp = fopen(full_file ? full_file : file, "rt");
- free((void *)full_file);
-
- if(fp)
- {
- ctx->streams[ctx->depth] = fp;
- ctx->files[ctx->depth] = __scanctx_add_filename(ctx, file);
- ctx->buffers[ctx->depth] = buffer;
- ++(ctx->depth);
- }
- else
- {
- free((void *)file);
- *error = err_bad_include;
- }
-
- return(fp);
-}
-
-/* ------------------------------------------------------------------------- */
-
-void *scanctx_pop_include(struct scan_context *ctx)
-{
- void *buffer;
-
- if(ctx->depth == 0)
- return(NULL); /* stack underflow */
-
- --(ctx->depth);
- buffer = ctx->buffers[ctx->depth];
- fclose(ctx->streams[ctx->depth]);
-
- return(buffer);
-}
-
-/* ------------------------------------------------------------------------- */
-
-char *scanctx_take_string(struct scan_context *ctx)
-{
- char *r = strbuf_release(&(ctx->string));
-
- return(r ? r : strdup(""));
-}
-
-/* ------------------------------------------------------------------------- */
-
-const char *scanctx_current_filename(struct scan_context *ctx)
-{
- return((ctx->depth == 0) ? ctx->top_filename : ctx->files[ctx->depth - 1]);
-}
-
-/* ------------------------------------------------------------------------- */
-/* eof */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/scanctx.h
--- a/yt/utilities/_libconfig/scanctx.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#ifndef __libconfig_scanctx_h
-#define __libconfig_scanctx_h
-
-#include "libconfig.h"
-#include "strbuf.h"
-
-#include <stdio.h>
-#include <sys/types.h>
-
-#define MAX_INCLUDE_DEPTH 10
-
-struct scan_context
-{
- config_t *config;
- const char *top_filename;
- const char *files[MAX_INCLUDE_DEPTH];
- void *buffers[MAX_INCLUDE_DEPTH];
- FILE *streams[MAX_INCLUDE_DEPTH];
- int depth;
- strbuf_t string;
- const char **filenames;
- unsigned int num_filenames;
-};
-
-extern void scanctx_init(struct scan_context *ctx, const char *top_filename);
-extern const char **scanctx_cleanup(struct scan_context *ctx,
- unsigned int *num_filenames);
-
-extern FILE *scanctx_push_include(struct scan_context *ctx, void *prev_buffer,
- const char **error);
-extern void *scanctx_pop_include(struct scan_context *ctx);
-
-#define scanctx_append_string(C, S) \
- strbuf_append(&((C)->string), (S))
-
-extern char *scanctx_take_string(struct scan_context *ctx);
-
-extern const char *scanctx_current_filename(struct scan_context *ctx);
-
-#endif /* __libconfig_scanctx_h */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/scanner.c
--- a/yt/utilities/_libconfig/scanner.c Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,2342 +0,0 @@
-#line 2 "scanner.c"
-
-#line 4 "scanner.c"
-
-#define YY_INT_ALIGNED short int
-
-/* A lexical scanner generated by flex */
-
-#define FLEX_SCANNER
-#define YY_FLEX_MAJOR_VERSION 2
-#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 35
-#if YY_FLEX_SUBMINOR_VERSION > 0
-#define FLEX_BETA
-#endif
-
-/* First, we deal with platform-specific or compiler-specific issues. */
-
-/* begin standard C headers. */
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <stdlib.h>
-
-/* end standard C headers. */
-
-/* flex integer type definitions */
-
-#ifndef FLEXINT_H
-#define FLEXINT_H
-
-/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
-
-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-
-/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
- * if you want the limit (max/min) macros for int types.
- */
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS 1
-#endif
-
-#include <inttypes.h>
-typedef int8_t flex_int8_t;
-typedef uint8_t flex_uint8_t;
-typedef int16_t flex_int16_t;
-typedef uint16_t flex_uint16_t;
-typedef int32_t flex_int32_t;
-typedef uint32_t flex_uint32_t;
-#else
-typedef signed char flex_int8_t;
-typedef short int flex_int16_t;
-typedef int flex_int32_t;
-typedef unsigned char flex_uint8_t;
-typedef unsigned short int flex_uint16_t;
-typedef unsigned int flex_uint32_t;
-#endif /* ! C99 */
-
-/* Limits of integral types. */
-#ifndef INT8_MIN
-#define INT8_MIN (-128)
-#endif
-#ifndef INT16_MIN
-#define INT16_MIN (-32767-1)
-#endif
-#ifndef INT32_MIN
-#define INT32_MIN (-2147483647-1)
-#endif
-#ifndef INT8_MAX
-#define INT8_MAX (127)
-#endif
-#ifndef INT16_MAX
-#define INT16_MAX (32767)
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX (2147483647)
-#endif
-#ifndef UINT8_MAX
-#define UINT8_MAX (255U)
-#endif
-#ifndef UINT16_MAX
-#define UINT16_MAX (65535U)
-#endif
-#ifndef UINT32_MAX
-#define UINT32_MAX (4294967295U)
-#endif
-
-#endif /* ! FLEXINT_H */
-
-#ifdef __cplusplus
-
-/* The "const" storage-class-modifier is valid. */
-#define YY_USE_CONST
-
-#else /* ! __cplusplus */
-
-/* C99 requires __STDC__ to be defined as 1. */
-#if defined (__STDC__)
-
-#define YY_USE_CONST
-
-#endif /* defined (__STDC__) */
-#endif /* ! __cplusplus */
-
-#ifdef YY_USE_CONST
-#define yyconst const
-#else
-#define yyconst
-#endif
-
-/* Returned upon end-of-file. */
-#define YY_NULL 0
-
-/* Promotes a possibly negative, possibly signed char to an unsigned
- * integer for use as an array index. If the signed char is negative,
- * we want to instead treat it as an 8-bit unsigned char, hence the
- * double cast.
- */
-#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
-
-/* An opaque pointer. */
-#ifndef YY_TYPEDEF_YY_SCANNER_T
-#define YY_TYPEDEF_YY_SCANNER_T
-typedef void* yyscan_t;
-#endif
-
-/* For convenience, these vars (plus the bison vars far below)
- are macros in the reentrant scanner. */
-#define yyin yyg->yyin_r
-#define yyout yyg->yyout_r
-#define yyextra yyg->yyextra_r
-#define yyleng yyg->yyleng_r
-#define yytext yyg->yytext_r
-#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
-#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
-#define yy_flex_debug yyg->yy_flex_debug_r
-
-/* Enter a start condition. This macro really ought to take a parameter,
- * but we do it the disgusting crufty way forced on us by the ()-less
- * definition of BEGIN.
- */
-#define BEGIN yyg->yy_start = 1 + 2 *
-
-/* Translate the current start state into a value that can be later handed
- * to BEGIN to return to the state. The YYSTATE alias is for lex
- * compatibility.
- */
-#define YY_START ((yyg->yy_start - 1) / 2)
-#define YYSTATE YY_START
-
-/* Action number for EOF rule of a given start state. */
-#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
-
-/* Special action meaning "start processing a new file". */
-#define YY_NEW_FILE libconfig_yyrestart(yyin ,yyscanner )
-
-#define YY_END_OF_BUFFER_CHAR 0
-
-/* Size of default input buffer. */
-#ifndef YY_BUF_SIZE
-#define YY_BUF_SIZE 16384
-#endif
-
-/* The state buf must be large enough to hold one state per character in the main buffer.
- */
-#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
-
-#ifndef YY_TYPEDEF_YY_BUFFER_STATE
-#define YY_TYPEDEF_YY_BUFFER_STATE
-typedef struct yy_buffer_state *YY_BUFFER_STATE;
-#endif
-
-#ifndef YY_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef size_t yy_size_t;
-#endif
-
-#define EOB_ACT_CONTINUE_SCAN 0
-#define EOB_ACT_END_OF_FILE 1
-#define EOB_ACT_LAST_MATCH 2
-
- /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
- * access to the local variable yy_act. Since yyless() is a macro, it would break
- * existing scanners that call yyless() from OUTSIDE libconfig_yylex.
- * One obvious solution it to make yy_act a global. I tried that, and saw
- * a 5% performance hit in a non-yylineno scanner, because yy_act is
- * normally declared as a register variable-- so it is not worth it.
- */
- #define YY_LESS_LINENO(n) \
- do { \
- int yyl;\
- for ( yyl = n; yyl < yyleng; ++yyl )\
- if ( yytext[yyl] == '\n' )\
- --yylineno;\
- }while(0)
-
-/* Return all but the first "n" matched characters back to the input stream. */
-#define yyless(n) \
- do \
- { \
- /* Undo effects of setting up yytext. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- *yy_cp = yyg->yy_hold_char; \
- YY_RESTORE_YY_MORE_OFFSET \
- yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
- YY_DO_BEFORE_ACTION; /* set up yytext again */ \
- } \
- while ( 0 )
-
-#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
-
-#ifndef YY_STRUCT_YY_BUFFER_STATE
-#define YY_STRUCT_YY_BUFFER_STATE
-struct yy_buffer_state
- {
- FILE *yy_input_file;
-
- char *yy_ch_buf; /* input buffer */
- char *yy_buf_pos; /* current position in input buffer */
-
- /* Size of input buffer in bytes, not including room for EOB
- * characters.
- */
- yy_size_t yy_buf_size;
-
- /* Number of characters read into yy_ch_buf, not including EOB
- * characters.
- */
- yy_size_t yy_n_chars;
-
- /* Whether we "own" the buffer - i.e., we know we created it,
- * and can realloc() it to grow it, and should free() it to
- * delete it.
- */
- int yy_is_our_buffer;
-
- /* Whether this is an "interactive" input source; if so, and
- * if we're using stdio for input, then we want to use getc()
- * instead of fread(), to make sure we stop fetching input after
- * each newline.
- */
- int yy_is_interactive;
-
- /* Whether we're considered to be at the beginning of a line.
- * If so, '^' rules will be active on the next match, otherwise
- * not.
- */
- int yy_at_bol;
-
- int yy_bs_lineno; /**< The line count. */
- int yy_bs_column; /**< The column count. */
-
- /* Whether to try to fill the input buffer when we reach the
- * end of it.
- */
- int yy_fill_buffer;
-
- int yy_buffer_status;
-
-#define YY_BUFFER_NEW 0
-#define YY_BUFFER_NORMAL 1
- /* When an EOF's been seen but there's still some text to process
- * then we mark the buffer as YY_EOF_PENDING, to indicate that we
- * shouldn't try reading from the input source any more. We might
- * still have a bunch of tokens to match, though, because of
- * possible backing-up.
- *
- * When we actually see the EOF, we change the status to "new"
- * (via libconfig_yyrestart()), so that the user can continue scanning by
- * just pointing yyin at a new input file.
- */
-#define YY_BUFFER_EOF_PENDING 2
-
- };
-#endif /* !YY_STRUCT_YY_BUFFER_STATE */
-
-/* We provide macros for accessing buffer states in case in the
- * future we want to put the buffer states in a more general
- * "scanner state".
- *
- * Returns the top of the stack, or NULL.
- */
-#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
- ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
- : NULL)
-
-/* Same as previous macro, but useful when we know that the buffer stack is not
- * NULL or when we need an lvalue. For internal use only.
- */
-#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
-
-void libconfig_yyrestart (FILE *input_file ,yyscan_t yyscanner );
-void libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
-YY_BUFFER_STATE libconfig_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
-void libconfig_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
-void libconfig_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
-void libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
-void libconfig_yypop_buffer_state (yyscan_t yyscanner );
-
-static void libconfig_yyensure_buffer_stack (yyscan_t yyscanner );
-static void libconfig_yy_load_buffer_state (yyscan_t yyscanner );
-static void libconfig_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
-
-#define YY_FLUSH_BUFFER libconfig_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
-
-YY_BUFFER_STATE libconfig_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
-YY_BUFFER_STATE libconfig_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
-YY_BUFFER_STATE libconfig_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
-
-void *libconfig_yyalloc (yy_size_t ,yyscan_t yyscanner );
-void *libconfig_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
-void libconfig_yyfree (void * ,yyscan_t yyscanner );
-
-#define yy_new_buffer libconfig_yy_create_buffer
-
-#define yy_set_interactive(is_interactive) \
- { \
- if ( ! YY_CURRENT_BUFFER ){ \
- libconfig_yyensure_buffer_stack (yyscanner); \
- YY_CURRENT_BUFFER_LVALUE = \
- libconfig_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
- }
-
-#define yy_set_bol(at_bol) \
- { \
- if ( ! YY_CURRENT_BUFFER ){\
- libconfig_yyensure_buffer_stack (yyscanner); \
- YY_CURRENT_BUFFER_LVALUE = \
- libconfig_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
- }
-
-#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
-
-#define libconfig_yywrap(n) 1
-#define YY_SKIP_YYWRAP
-
-typedef unsigned char YY_CHAR;
-
-typedef int yy_state_type;
-
-#define yytext_ptr yytext_r
-
-static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
-static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
-static int yy_get_next_buffer (yyscan_t yyscanner );
-static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
-
-/* Done after the current pattern has been matched and before the
- * corresponding action - sets up yytext.
- */
-#define YY_DO_BEFORE_ACTION \
- yyg->yytext_ptr = yy_bp; \
- yyleng = (size_t) (yy_cp - yy_bp); \
- yyg->yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
- yyg->yy_c_buf_p = yy_cp;
-
-#define YY_NUM_RULES 40
-#define YY_END_OF_BUFFER 41
-/* This struct is not used in this scanner,
- but its presence is necessary. */
-struct yy_trans_info
- {
- flex_int32_t yy_verify;
- flex_int32_t yy_nxt;
- };
-static yyconst flex_int16_t yy_accept[105] =
- { 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 41, 39,
- 21, 20, 20, 5, 39, 35, 36, 28, 39, 23,
- 29, 39, 30, 30, 22, 37, 28, 28, 33, 34,
- 24, 25, 21, 39, 3, 4, 3, 6, 14, 40,
- 16, 19, 40, 21, 0, 38, 28, 29, 30, 29,
- 0, 1, 0, 29, 0, 30, 0, 28, 28, 21,
- 0, 0, 2, 6, 12, 0, 11, 10, 7, 8,
- 9, 16, 18, 17, 0, 29, 29, 0, 0, 29,
- 30, 31, 28, 28, 0, 0, 0, 29, 32, 28,
- 26, 0, 0, 32, 27, 0, 0, 0, 13, 0,
-
- 0, 0, 15, 0
- } ;
-
-static yyconst flex_int32_t yy_ec[256] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 1, 4, 5, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 1, 6, 7, 1, 1, 1, 1, 8,
- 9, 10, 11, 12, 13, 14, 15, 16, 17, 17,
- 17, 17, 17, 17, 17, 17, 17, 18, 19, 1,
- 20, 1, 1, 21, 22, 23, 23, 23, 24, 25,
- 26, 26, 26, 26, 26, 27, 26, 26, 26, 26,
- 26, 28, 29, 30, 31, 26, 26, 32, 26, 26,
- 33, 34, 35, 1, 36, 1, 22, 23, 37, 38,
-
- 39, 40, 26, 26, 41, 26, 26, 42, 26, 43,
- 26, 26, 26, 44, 29, 45, 46, 26, 26, 32,
- 26, 26, 47, 1, 48, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1
- } ;
-
-static yyconst flex_int32_t yy_meta[49] =
- { 0,
- 1, 1, 1, 1, 1, 2, 1, 1, 1, 3,
- 1, 1, 3, 1, 1, 4, 4, 1, 1, 1,
- 1, 4, 4, 4, 4, 3, 3, 3, 3, 3,
- 3, 3, 1, 2, 1, 3, 4, 4, 4, 4,
- 3, 3, 3, 3, 3, 3, 1, 1
- } ;
-
-static yyconst flex_int16_t yy_base[115] =
- { 0,
- 0, 47, 47, 48, 46, 47, 48, 49, 205, 206,
- 202, 206, 206, 206, 200, 206, 206, 0, 45, 206,
- 47, 50, 60, 74, 206, 206, 180, 28, 206, 206,
- 206, 206, 64, 160, 206, 206, 185, 0, 206, 63,
- 0, 206, 83, 197, 195, 206, 0, 88, 102, 98,
- 62, 206, 194, 104, 119, 169, 0, 67, 65, 121,
- 152, 146, 206, 0, 206, 0, 206, 206, 206, 206,
- 206, 0, 206, 206, 108, 117, 122, 134, 132, 136,
- 206, 141, 138, 116, 129, 131, 140, 142, 136, 130,
- 0, 120, 112, 206, 0, 85, 0, 72, 206, 63,
-
- 98, 158, 206, 206, 169, 173, 177, 181, 183, 187,
- 191, 89, 66, 63
- } ;
-
-static yyconst flex_int16_t yy_def[115] =
- { 0,
- 104, 1, 105, 105, 106, 106, 107, 107, 104, 104,
- 104, 104, 104, 104, 108, 104, 104, 109, 104, 104,
- 104, 104, 104, 104, 104, 104, 109, 109, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 110, 104, 104,
- 111, 104, 104, 104, 108, 104, 109, 104, 104, 104,
- 104, 104, 108, 104, 104, 104, 112, 109, 109, 104,
- 104, 104, 104, 110, 104, 113, 104, 104, 104, 104,
- 104, 111, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 112, 109, 109, 104, 104, 104, 104, 104, 109,
- 109, 104, 104, 104, 109, 104, 114, 104, 104, 104,
-
- 104, 104, 104, 0, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104
- } ;
-
-static yyconst flex_int16_t yy_nxt[255] =
- { 0,
- 10, 11, 12, 13, 13, 14, 15, 16, 17, 18,
- 19, 20, 19, 21, 22, 23, 24, 25, 26, 25,
- 10, 18, 18, 18, 27, 18, 18, 18, 18, 28,
- 18, 18, 29, 10, 30, 10, 18, 18, 18, 27,
- 18, 18, 18, 18, 28, 18, 31, 32, 33, 36,
- 36, 39, 39, 42, 42, 59, 37, 37, 48, 52,
- 49, 49, 50, 50, 53, 60, 99, 34, 65, 86,
- 51, 59, 75, 54, 75, 49, 49, 76, 76, 40,
- 40, 43, 43, 55, 61, 51, 56, 54, 73, 49,
- 49, 57, 82, 83, 66, 84, 67, 55, 55, 102,
-
- 56, 101, 68, 50, 50, 69, 70, 71, 83, 100,
- 84, 51, 55, 50, 50, 54, 74, 49, 49, 77,
- 77, 51, 60, 76, 76, 55, 51, 78, 56, 79,
- 98, 79, 76, 76, 80, 80, 51, 77, 77, 91,
- 55, 61, 78, 97, 87, 78, 87, 80, 80, 88,
- 88, 80, 80, 95, 91, 88, 88, 88, 88, 102,
- 78, 96, 94, 103, 93, 92, 90, 89, 95, 35,
- 35, 35, 35, 38, 38, 38, 38, 41, 41, 41,
- 41, 45, 45, 45, 45, 47, 47, 64, 85, 64,
- 64, 72, 62, 72, 72, 81, 46, 46, 44, 63,
-
- 62, 58, 46, 44, 104, 9, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104
- } ;
-
-static yyconst flex_int16_t yy_chk[255] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 4, 5, 6, 7, 8, 28, 3, 4, 19, 22,
- 19, 19, 21, 21, 22, 33, 114, 2, 40, 113,
- 21, 28, 51, 23, 51, 23, 23, 51, 51, 5,
- 6, 7, 8, 23, 33, 21, 23, 24, 43, 24,
- 24, 23, 112, 58, 40, 59, 40, 24, 23, 101,
-
- 24, 100, 40, 48, 48, 40, 40, 40, 58, 98,
- 59, 48, 24, 50, 50, 49, 43, 49, 49, 54,
- 54, 50, 60, 75, 75, 49, 48, 54, 49, 55,
- 96, 55, 76, 76, 55, 55, 50, 77, 77, 84,
- 49, 60, 54, 93, 78, 77, 78, 79, 79, 78,
- 78, 80, 80, 90, 84, 87, 87, 88, 88, 102,
- 77, 92, 89, 102, 86, 85, 83, 82, 90, 105,
- 105, 105, 105, 106, 106, 106, 106, 107, 107, 107,
- 107, 108, 108, 108, 108, 109, 109, 110, 62, 110,
- 110, 111, 61, 111, 111, 56, 53, 45, 44, 37,
-
- 34, 27, 15, 11, 9, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104
- } ;
-
-/* Table of booleans, true if rule could match eol. */
-static yyconst flex_int32_t yy_rule_can_match_eol[41] =
- { 0,
-0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
- 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, };
-
-/* The intent behind this definition is that it'll catch
- * any uses of REJECT which flex missed.
- */
-#define REJECT reject_used_but_not_detected
-#define yymore() yymore_used_but_not_detected
-#define YY_MORE_ADJ 0
-#define YY_RESTORE_YY_MORE_OFFSET
-#line 1 "scanner.l"
-/* -*- mode: C -*- */
-/* --------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-#define YY_NO_UNISTD_H 1
-#line 35 "scanner.l"
-
-#ifdef _MSC_VER
-#pragma warning (disable: 4996)
-#endif
-
-#include <stdlib.h>
-#include <ctype.h>
-#include <string.h>
-#include "grammar.h"
-#include "wincompat.h"
-#include "parsectx.h"
-#include "scanctx.h"
-
-#define YY_NO_INPUT // Suppress generation of useless input() function
-
-static unsigned long long fromhex(const char *s)
-{
-#ifdef __MINGW32__
-
- /* MinGW's strtoull() seems to be broken; it only returns the lower
- * 32 bits...
- */
-
- const char *p = s;
- unsigned long long val = 0;
-
- if(*p != '0')
- return(0);
-
- ++p;
-
- if(*p != 'x' && *p != 'X')
- return(0);
-
- for(++p; isxdigit(*p); ++p)
- {
- val <<= 4;
- val |= ((*p < 'A') ? (*p & 0xF) : (9 + (*p & 0x7)));
- }
-
- return(val);
-
-#else /* ! __MINGW32__ */
-
- return(strtoull(s, NULL, 16));
-
-#endif /* __MINGW32__ */
-}
-
-
-#line 617 "scanner.c"
-
-#define INITIAL 0
-#define COMMENT 1
-#define STRING 2
-#define INCLUDE 3
-
-#ifndef YY_NO_UNISTD_H
-/* Special case for "unistd.h", since it is non-ANSI. We include it way
- * down here because we want the user's section 1 to have been scanned first.
- * The user has a chance to override it with an option.
- */
-#include <unistd.h>
-#endif
-
-#define YY_EXTRA_TYPE struct scan_context *
-
-/* Holds the entire state of the reentrant scanner. */
-struct yyguts_t
- {
-
- /* User-defined. Not touched by flex. */
- YY_EXTRA_TYPE yyextra_r;
-
- /* The rest are the same as the globals declared in the non-reentrant scanner. */
- FILE *yyin_r, *yyout_r;
- size_t yy_buffer_stack_top; /**< index of top of stack. */
- size_t yy_buffer_stack_max; /**< capacity of stack. */
- YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
- char yy_hold_char;
- yy_size_t yy_n_chars;
- yy_size_t yyleng_r;
- char *yy_c_buf_p;
- int yy_init;
- int yy_start;
- int yy_did_buffer_switch_on_eof;
- int yy_start_stack_ptr;
- int yy_start_stack_depth;
- int *yy_start_stack;
- yy_state_type yy_last_accepting_state;
- char* yy_last_accepting_cpos;
-
- int yylineno_r;
- int yy_flex_debug_r;
-
- char *yytext_r;
- int yy_more_flag;
- int yy_more_len;
-
- YYSTYPE * yylval_r;
-
- }; /* end struct yyguts_t */
-
-static int yy_init_globals (yyscan_t yyscanner );
-
- /* This must go here because YYSTYPE and YYLTYPE are included
- * from bison output in section 1.*/
- # define yylval yyg->yylval_r
-
-int libconfig_yylex_init (yyscan_t* scanner);
-
-int libconfig_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
-
-/* Accessor methods to globals.
- These are made visible to non-reentrant scanners for convenience. */
-
-int libconfig_yylex_destroy (yyscan_t yyscanner );
-
-int libconfig_yyget_debug (yyscan_t yyscanner );
-
-void libconfig_yyset_debug (int debug_flag ,yyscan_t yyscanner );
-
-YY_EXTRA_TYPE libconfig_yyget_extra (yyscan_t yyscanner );
-
-void libconfig_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
-
-FILE *libconfig_yyget_in (yyscan_t yyscanner );
-
-void libconfig_yyset_in (FILE * in_str ,yyscan_t yyscanner );
-
-FILE *libconfig_yyget_out (yyscan_t yyscanner );
-
-void libconfig_yyset_out (FILE * out_str ,yyscan_t yyscanner );
-
-yy_size_t libconfig_yyget_leng (yyscan_t yyscanner );
-
-char *libconfig_yyget_text (yyscan_t yyscanner );
-
-int libconfig_yyget_lineno (yyscan_t yyscanner );
-
-void libconfig_yyset_lineno (int line_number ,yyscan_t yyscanner );
-
-YYSTYPE * libconfig_yyget_lval (yyscan_t yyscanner );
-
-void libconfig_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
-
-/* Macros after this point can all be overridden by user definitions in
- * section 1.
- */
-
-#ifndef YY_SKIP_YYWRAP
-#ifdef __cplusplus
-extern "C" int libconfig_yywrap (yyscan_t yyscanner );
-#else
-extern int libconfig_yywrap (yyscan_t yyscanner );
-#endif
-#endif
-
-#ifndef yytext_ptr
-static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
-#endif
-
-#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
-#endif
-
-#ifndef YY_NO_INPUT
-
-#ifdef __cplusplus
-static int yyinput (yyscan_t yyscanner );
-#else
-static int input (yyscan_t yyscanner );
-#endif
-
-#endif
-
-/* Amount of stuff to slurp up with each read. */
-#ifndef YY_READ_BUF_SIZE
-#define YY_READ_BUF_SIZE 8192
-#endif
-
-/* Copy whatever the last rule matched to the standard output. */
-#ifndef ECHO
-/* This used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite().
- */
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
-#endif
-
-/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
-#ifndef YY_INPUT
-#define YY_INPUT(buf,result,max_size) \
- if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
- { \
- int c = '*'; \
- yy_size_t n; \
- for ( n = 0; n < max_size && \
- (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
- buf[n] = (char) c; \
- if ( c == '\n' ) \
- buf[n++] = (char) c; \
- if ( c == EOF && ferror( yyin ) ) \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- result = n; \
- } \
- else \
- { \
- errno=0; \
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
- { \
- if( errno != EINTR) \
- { \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- break; \
- } \
- errno=0; \
- clearerr(yyin); \
- } \
- }\
-\
-
-#endif
-
-/* No semi-colon after return; correct usage is to write "yyterminate();" -
- * we don't want an extra ';' after the "return" because that will cause
- * some compilers to complain about unreachable statements.
- */
-#ifndef yyterminate
-#define yyterminate() return YY_NULL
-#endif
-
-/* Number of entries by which start-condition stack grows. */
-#ifndef YY_START_STACK_INCR
-#define YY_START_STACK_INCR 25
-#endif
-
-/* Report a fatal error. */
-#ifndef YY_FATAL_ERROR
-#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
-#endif
-
-/* end tables serialization structures and prototypes */
-
-/* Default declaration of generated scanner - a define so the user can
- * easily add parameters.
- */
-#ifndef YY_DECL
-#define YY_DECL_IS_OURS 1
-
-extern int libconfig_yylex \
- (YYSTYPE * yylval_param ,yyscan_t yyscanner);
-
-#define YY_DECL int libconfig_yylex \
- (YYSTYPE * yylval_param , yyscan_t yyscanner)
-#endif /* !YY_DECL */
-
-/* Code executed at the beginning of each rule, after yytext and yyleng
- * have been set up.
- */
-#ifndef YY_USER_ACTION
-#define YY_USER_ACTION
-#endif
-
-/* Code executed at the end of each rule. */
-#ifndef YY_BREAK
-#define YY_BREAK break;
-#endif
-
-#define YY_RULE_SETUP \
- if ( yyleng > 0 ) \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
- (yytext[yyleng - 1] == '\n'); \
- YY_USER_ACTION
-
-/** The main scanner function which does all the work.
- */
-YY_DECL
-{
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
-#line 100 "scanner.l"
-
-
-#line 855 "scanner.c"
-
- yylval = yylval_param;
-
- if ( !yyg->yy_init )
- {
- yyg->yy_init = 1;
-
-#ifdef YY_USER_INIT
- YY_USER_INIT;
-#endif
-
- if ( ! yyg->yy_start )
- yyg->yy_start = 1; /* first start state */
-
- if ( ! yyin )
- yyin = stdin;
-
- if ( ! yyout )
- yyout = stdout;
-
- if ( ! YY_CURRENT_BUFFER ) {
- libconfig_yyensure_buffer_stack (yyscanner);
- YY_CURRENT_BUFFER_LVALUE =
- libconfig_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
- }
-
- libconfig_yy_load_buffer_state(yyscanner );
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
- {
- yy_cp = yyg->yy_c_buf_p;
-
- /* Support of yytext. */
- *yy_cp = yyg->yy_hold_char;
-
- /* yy_bp points to the position in yy_ch_buf of the start of
- * the current run.
- */
- yy_bp = yy_cp;
-
- yy_current_state = yyg->yy_start;
- yy_current_state += YY_AT_BOL();
-yy_match:
- do
- {
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 105 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- ++yy_cp;
- }
- while ( yy_base[yy_current_state] != 206 );
-
-yy_find_action:
- yy_act = yy_accept[yy_current_state];
- if ( yy_act == 0 )
- { /* have to back up */
- yy_cp = yyg->yy_last_accepting_cpos;
- yy_current_state = yyg->yy_last_accepting_state;
- yy_act = yy_accept[yy_current_state];
- }
-
- YY_DO_BEFORE_ACTION;
-
- if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
- {
- int yyl;
- for ( yyl = 0; yyl < yyleng; ++yyl )
- if ( yytext[yyl] == '\n' )
-
- do{ yylineno++;
- yycolumn=0;
- }while(0)
-;
- }
-
-do_action: /* This label is used only to access EOF actions. */
-
- switch ( yy_act )
- { /* beginning of action switch */
- case 0: /* must back up */
- /* undo the effects of YY_DO_BEFORE_ACTION */
- *yy_cp = yyg->yy_hold_char;
- yy_cp = yyg->yy_last_accepting_cpos;
- yy_current_state = yyg->yy_last_accepting_state;
- goto yy_find_action;
-
-case 1:
-YY_RULE_SETUP
-#line 102 "scanner.l"
-{ BEGIN COMMENT; }
- YY_BREAK
-case 2:
-YY_RULE_SETUP
-#line 103 "scanner.l"
-{ BEGIN INITIAL; }
- YY_BREAK
-case 3:
-YY_RULE_SETUP
-#line 104 "scanner.l"
-{ /* ignore */ }
- YY_BREAK
-case 4:
-/* rule 4 can match eol */
-YY_RULE_SETUP
-#line 105 "scanner.l"
-{ /* ignore */ }
- YY_BREAK
-case 5:
-YY_RULE_SETUP
-#line 107 "scanner.l"
-{ BEGIN STRING; }
- YY_BREAK
-case 6:
-/* rule 6 can match eol */
-YY_RULE_SETUP
-#line 108 "scanner.l"
-{ scanctx_append_string(yyextra, yytext); }
- YY_BREAK
-case 7:
-YY_RULE_SETUP
-#line 109 "scanner.l"
-{ scanctx_append_string(yyextra, "\n"); }
- YY_BREAK
-case 8:
-YY_RULE_SETUP
-#line 110 "scanner.l"
-{ scanctx_append_string(yyextra, "\r"); }
- YY_BREAK
-case 9:
-YY_RULE_SETUP
-#line 111 "scanner.l"
-{ scanctx_append_string(yyextra, "\t"); }
- YY_BREAK
-case 10:
-YY_RULE_SETUP
-#line 112 "scanner.l"
-{ scanctx_append_string(yyextra, "\f"); }
- YY_BREAK
-case 11:
-YY_RULE_SETUP
-#line 113 "scanner.l"
-{ scanctx_append_string(yyextra, "\\"); }
- YY_BREAK
-case 12:
-YY_RULE_SETUP
-#line 114 "scanner.l"
-{ scanctx_append_string(yyextra, "\""); }
- YY_BREAK
-case 13:
-YY_RULE_SETUP
-#line 115 "scanner.l"
-{
- char c[2] = { (char)(strtol(yytext + 2, NULL, 16) & 0xFF),
- 0 };
- scanctx_append_string(yyextra, c);
- }
- YY_BREAK
-case 14:
-YY_RULE_SETUP
-#line 120 "scanner.l"
-{
- yylval->sval = scanctx_take_string(yyextra);
- BEGIN INITIAL;
- return(TOK_STRING);
- }
- YY_BREAK
-case 15:
-YY_RULE_SETUP
-#line 126 "scanner.l"
-{ BEGIN INCLUDE; }
- YY_BREAK
-case 16:
-/* rule 16 can match eol */
-YY_RULE_SETUP
-#line 127 "scanner.l"
-{ scanctx_append_string(yyextra, yytext); }
- YY_BREAK
-case 17:
-YY_RULE_SETUP
-#line 128 "scanner.l"
-{ scanctx_append_string(yyextra, "\\"); }
- YY_BREAK
-case 18:
-YY_RULE_SETUP
-#line 129 "scanner.l"
-{ scanctx_append_string(yyextra, "\""); }
- YY_BREAK
-case 19:
-YY_RULE_SETUP
-#line 130 "scanner.l"
-{
- const char *error;
- FILE *fp = scanctx_push_include(yyextra,
- (void *)YY_CURRENT_BUFFER,
- &error);
- if(fp)
- {
- yyin = fp;
- libconfig_yy_switch_to_buffer(libconfig_yy_create_buffer(yyin,YY_BUF_SIZE,yyscanner),yyscanner);
- }
- else
- {
- yyextra->config->error_text = error;
- yyextra->config->error_file = scanctx_current_filename(
- yyextra);
- yyextra->config->error_line = libconfig_yyget_lineno(
- yyscanner);
- return TOK_ERROR;
- }
- BEGIN INITIAL;
- }
- YY_BREAK
-case 20:
-/* rule 20 can match eol */
-YY_RULE_SETUP
-#line 154 "scanner.l"
-{ /* ignore */ }
- YY_BREAK
-case 21:
-YY_RULE_SETUP
-#line 155 "scanner.l"
-{ /* ignore */ }
- YY_BREAK
-case 22:
-YY_RULE_SETUP
-#line 157 "scanner.l"
-{ return(TOK_EQUALS); }
- YY_BREAK
-case 23:
-YY_RULE_SETUP
-#line 158 "scanner.l"
-{ return(TOK_COMMA); }
- YY_BREAK
-case 24:
-YY_RULE_SETUP
-#line 159 "scanner.l"
-{ return(TOK_GROUP_START); }
- YY_BREAK
-case 25:
-YY_RULE_SETUP
-#line 160 "scanner.l"
-{ return(TOK_GROUP_END); }
- YY_BREAK
-case 26:
-YY_RULE_SETUP
-#line 161 "scanner.l"
-{ yylval->ival = 1; return(TOK_BOOLEAN); }
- YY_BREAK
-case 27:
-YY_RULE_SETUP
-#line 162 "scanner.l"
-{ yylval->ival = 0; return(TOK_BOOLEAN); }
- YY_BREAK
-case 28:
-YY_RULE_SETUP
-#line 163 "scanner.l"
-{ yylval->sval = yytext; return(TOK_NAME); }
- YY_BREAK
-case 29:
-YY_RULE_SETUP
-#line 164 "scanner.l"
-{ yylval->fval = atof(yytext); return(TOK_FLOAT); }
- YY_BREAK
-case 30:
-YY_RULE_SETUP
-#line 165 "scanner.l"
-{ yylval->llval = atoll(yytext); return(TOK_INTEGER64); }
- YY_BREAK
-case 31:
-YY_RULE_SETUP
-#line 166 "scanner.l"
-{
- yylval->ival = strtoul(yytext, NULL, 16);
- return(TOK_HEX);
- }
- YY_BREAK
-case 32:
-YY_RULE_SETUP
-#line 170 "scanner.l"
-{ yylval->llval = fromhex(yytext); return(TOK_HEX64); }
- YY_BREAK
-case 33:
-YY_RULE_SETUP
-#line 171 "scanner.l"
-{ return(TOK_ARRAY_START); }
- YY_BREAK
-case 34:
-YY_RULE_SETUP
-#line 172 "scanner.l"
-{ return(TOK_ARRAY_END); }
- YY_BREAK
-case 35:
-YY_RULE_SETUP
-#line 173 "scanner.l"
-{ return(TOK_LIST_START); }
- YY_BREAK
-case 36:
-YY_RULE_SETUP
-#line 174 "scanner.l"
-{ return(TOK_LIST_END); }
- YY_BREAK
-case 37:
-YY_RULE_SETUP
-#line 175 "scanner.l"
-{ return(TOK_END); }
- YY_BREAK
-case 38:
-*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
-yyg->yy_c_buf_p = yy_cp -= 1;
-YY_DO_BEFORE_ACTION; /* set up yytext again */
-YY_RULE_SETUP
-#line 176 "scanner.l"
-{ /* ignore */ }
- YY_BREAK
-case 39:
-YY_RULE_SETUP
-#line 177 "scanner.l"
-{ return(TOK_GARBAGE); }
- YY_BREAK
-case YY_STATE_EOF(INITIAL):
-case YY_STATE_EOF(COMMENT):
-case YY_STATE_EOF(STRING):
-case YY_STATE_EOF(INCLUDE):
-#line 179 "scanner.l"
-{
- YY_BUFFER_STATE buf = (YY_BUFFER_STATE)scanctx_pop_include(
- yyextra);
- if(buf)
- {
- libconfig_yy_delete_buffer(YY_CURRENT_BUFFER,yyscanner);
- libconfig_yy_switch_to_buffer(buf,yyscanner);
- }
- else
- yyterminate();
- }
- YY_BREAK
-case 40:
-YY_RULE_SETUP
-#line 190 "scanner.l"
-ECHO;
- YY_BREAK
-#line 1208 "scanner.c"
-
- case YY_END_OF_BUFFER:
- {
- /* Amount of text matched not including the EOB char. */
- int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
-
- /* Undo the effects of YY_DO_BEFORE_ACTION. */
- *yy_cp = yyg->yy_hold_char;
- YY_RESTORE_YY_MORE_OFFSET
-
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
- {
- /* We're scanning a new file or input source. It's
- * possible that this happened because the user
- * just pointed yyin at a new source and called
- * libconfig_yylex(). If so, then we have to assure
- * consistency between YY_CURRENT_BUFFER and our
- * globals. Here is the right place to do so, because
- * this is the first action (other than possibly a
- * back-up) that will match for the new input source.
- */
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
- }
-
- /* Note that here we test for yy_c_buf_p "<=" to the position
- * of the first EOB in the buffer, since yy_c_buf_p will
- * already have been incremented past the NUL character
- * (since all states make transitions on EOB to the
- * end-of-buffer state). Contrast this with the test
- * in input().
- */
- if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
- { /* This was really a NUL. */
- yy_state_type yy_next_state;
-
- yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
-
- yy_current_state = yy_get_previous_state( yyscanner );
-
- /* Okay, we're now positioned to make the NUL
- * transition. We couldn't have
- * yy_get_previous_state() go ahead and do it
- * for us because it doesn't know how to deal
- * with the possibility of jamming (and we don't
- * want to build jamming into it because then it
- * will run more slowly).
- */
-
- yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
-
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
-
- if ( yy_next_state )
- {
- /* Consume the NUL. */
- yy_cp = ++yyg->yy_c_buf_p;
- yy_current_state = yy_next_state;
- goto yy_match;
- }
-
- else
- {
- yy_cp = yyg->yy_c_buf_p;
- goto yy_find_action;
- }
- }
-
- else switch ( yy_get_next_buffer( yyscanner ) )
- {
- case EOB_ACT_END_OF_FILE:
- {
- yyg->yy_did_buffer_switch_on_eof = 0;
-
- if ( libconfig_yywrap(yyscanner ) )
- {
- /* Note: because we've taken care in
- * yy_get_next_buffer() to have set up
- * yytext, we can now set up
- * yy_c_buf_p so that if some total
- * hoser (like flex itself) wants to
- * call the scanner after we return the
- * YY_NULL, it'll still work - another
- * YY_NULL will get returned.
- */
- yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
-
- yy_act = YY_STATE_EOF(YY_START);
- goto do_action;
- }
-
- else
- {
- if ( ! yyg->yy_did_buffer_switch_on_eof )
- YY_NEW_FILE;
- }
- break;
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- yyg->yy_c_buf_p =
- yyg->yytext_ptr + yy_amount_of_matched_text;
-
- yy_current_state = yy_get_previous_state( yyscanner );
-
- yy_cp = yyg->yy_c_buf_p;
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- goto yy_match;
-
- case EOB_ACT_LAST_MATCH:
- yyg->yy_c_buf_p =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
-
- yy_current_state = yy_get_previous_state( yyscanner );
-
- yy_cp = yyg->yy_c_buf_p;
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- goto yy_find_action;
- }
- break;
- }
-
- default:
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--no action found" );
- } /* end of action switch */
- } /* end of scanning one token */
-} /* end of libconfig_yylex */
-
-/* yy_get_next_buffer - try to read in a new buffer
- *
- * Returns a code representing an action:
- * EOB_ACT_LAST_MATCH -
- * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
- * EOB_ACT_END_OF_FILE - end of file
- */
-static int yy_get_next_buffer (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
- register char *source = yyg->yytext_ptr;
- register int number_to_move, i;
- int ret_val;
-
- if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--end of buffer missed" );
-
- if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
- { /* Don't try to fill the buffer, so this is an EOF. */
- if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
- {
- /* We matched a single character, the EOB, so
- * treat this as a final EOF.
- */
- return EOB_ACT_END_OF_FILE;
- }
-
- else
- {
- /* We matched some text prior to the EOB, first
- * process it.
- */
- return EOB_ACT_LAST_MATCH;
- }
- }
-
- /* Try to read more data. */
-
- /* First move last chars to start of buffer. */
- number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
-
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
-
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
- /* don't do the read, it's not guaranteed to return an EOF,
- * just force an EOF
- */
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
-
- else
- {
- yy_size_t num_to_read =
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
-
- while ( num_to_read <= 0 )
- { /* Not enough room in the buffer - grow it. */
-
- /* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
-
- int yy_c_buf_p_offset =
- (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
-
- if ( b->yy_is_our_buffer )
- {
- yy_size_t new_size = b->yy_buf_size * 2;
-
- if ( new_size <= 0 )
- b->yy_buf_size += b->yy_buf_size / 8;
- else
- b->yy_buf_size *= 2;
-
- b->yy_ch_buf = (char *)
- /* Include room in for 2 EOB chars. */
- libconfig_yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
- }
- else
- /* Can't grow it, we don't own it. */
- b->yy_ch_buf = 0;
-
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR(
- "fatal error - scanner input buffer overflow" );
-
- yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
-
- num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
- number_to_move - 1;
-
- }
-
- if ( num_to_read > YY_READ_BUF_SIZE )
- num_to_read = YY_READ_BUF_SIZE;
-
- /* Read in more data. */
- YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- yyg->yy_n_chars, num_to_read );
-
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
-
- if ( yyg->yy_n_chars == 0 )
- {
- if ( number_to_move == YY_MORE_ADJ )
- {
- ret_val = EOB_ACT_END_OF_FILE;
- libconfig_yyrestart(yyin ,yyscanner);
- }
-
- else
- {
- ret_val = EOB_ACT_LAST_MATCH;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
- YY_BUFFER_EOF_PENDING;
- }
- }
-
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
-
- if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
- /* Extend the array by 50%, plus the number we really need. */
- yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) libconfig_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
- if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
- }
-
- yyg->yy_n_chars += number_to_move;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
-
- yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
-
- return ret_val;
-}
-
-/* yy_get_previous_state - get the state just before the EOB char was reached */
-
- static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
-{
- register yy_state_type yy_current_state;
- register char *yy_cp;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- yy_current_state = yyg->yy_start;
- yy_current_state += YY_AT_BOL();
-
- for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
- {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 105 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- }
-
- return yy_current_state;
-}
-
-/* yy_try_NUL_trans - try to make a transition on the NUL character
- *
- * synopsis
- * next_state = yy_try_NUL_trans( current_state );
- */
- static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
-{
- register int yy_is_jam;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
- register char *yy_cp = yyg->yy_c_buf_p;
-
- register YY_CHAR yy_c = 1;
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 105 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- yy_is_jam = (yy_current_state == 104);
-
- return yy_is_jam ? 0 : yy_current_state;
-}
-
-#ifndef YY_NO_INPUT
-#ifdef __cplusplus
- static int yyinput (yyscan_t yyscanner)
-#else
- static int input (yyscan_t yyscanner)
-#endif
-
-{
- int c;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
-
- if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
- {
- /* yy_c_buf_p now points to the character we want to return.
- * If this occurs *before* the EOB characters, then it's a
- * valid NUL; if not, then we've hit the end of the buffer.
- */
- if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
- /* This was really a NUL. */
- *yyg->yy_c_buf_p = '\0';
-
- else
- { /* need more input */
- yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
- ++yyg->yy_c_buf_p;
-
- switch ( yy_get_next_buffer( yyscanner ) )
- {
- case EOB_ACT_LAST_MATCH:
- /* This happens because yy_g_n_b()
- * sees that we've accumulated a
- * token and flags that we need to
- * try matching the token before
- * proceeding. But for input(),
- * there's no matching to consider.
- * So convert the EOB_ACT_LAST_MATCH
- * to EOB_ACT_END_OF_FILE.
- */
-
- /* Reset buffer status. */
- libconfig_yyrestart(yyin ,yyscanner);
-
- /*FALLTHROUGH*/
-
- case EOB_ACT_END_OF_FILE:
- {
- if ( libconfig_yywrap(yyscanner ) )
- return 0;
-
- if ( ! yyg->yy_did_buffer_switch_on_eof )
- YY_NEW_FILE;
-#ifdef __cplusplus
- return yyinput(yyscanner);
-#else
- return input(yyscanner);
-#endif
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
- break;
- }
- }
- }
-
- c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
- *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
- yyg->yy_hold_char = *++yyg->yy_c_buf_p;
-
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
- if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol )
-
- do{ yylineno++;
- yycolumn=0;
- }while(0)
-;
-
- return c;
-}
-#endif /* ifndef YY_NO_INPUT */
-
-/** Immediately switch to a different input stream.
- * @param input_file A readable stream.
- * @param yyscanner The scanner object.
- * @note This function does not reset the start condition to @c INITIAL .
- */
- void libconfig_yyrestart (FILE * input_file , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if ( ! YY_CURRENT_BUFFER ){
- libconfig_yyensure_buffer_stack (yyscanner);
- YY_CURRENT_BUFFER_LVALUE =
- libconfig_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
- }
-
- libconfig_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
- libconfig_yy_load_buffer_state(yyscanner );
-}
-
-/** Switch to a different input buffer.
- * @param new_buffer The new input buffer.
- * @param yyscanner The scanner object.
- */
- void libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- /* TODO. We should be able to replace this entire function body
- * with
- * libconfig_yypop_buffer_state();
- * libconfig_yypush_buffer_state(new_buffer);
- */
- libconfig_yyensure_buffer_stack (yyscanner);
- if ( YY_CURRENT_BUFFER == new_buffer )
- return;
-
- if ( YY_CURRENT_BUFFER )
- {
- /* Flush out information for old buffer. */
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
-
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
- libconfig_yy_load_buffer_state(yyscanner );
-
- /* We don't actually know whether we did this switch during
- * EOF (libconfig_yywrap()) processing, but the only time this flag
- * is looked at is after libconfig_yywrap() is called, so it's safe
- * to go ahead and always set it.
- */
- yyg->yy_did_buffer_switch_on_eof = 1;
-}
-
-static void libconfig_yy_load_buffer_state (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
- yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
- yyg->yy_hold_char = *yyg->yy_c_buf_p;
-}
-
-/** Allocate and initialize an input buffer state.
- * @param file A readable stream.
- * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
- * @param yyscanner The scanner object.
- * @return the allocated buffer state.
- */
- YY_BUFFER_STATE libconfig_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
-{
- YY_BUFFER_STATE b;
-
- b = (YY_BUFFER_STATE) libconfig_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in libconfig_yy_create_buffer()" );
-
- b->yy_buf_size = size;
-
- /* yy_ch_buf has to be 2 characters longer than the size given because
- * we need to put in 2 end-of-buffer characters.
- */
- b->yy_ch_buf = (char *) libconfig_yyalloc(b->yy_buf_size + 2 ,yyscanner );
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in libconfig_yy_create_buffer()" );
-
- b->yy_is_our_buffer = 1;
-
- libconfig_yy_init_buffer(b,file ,yyscanner);
-
- return b;
-}
-
-/** Destroy the buffer.
- * @param b a buffer created with libconfig_yy_create_buffer()
- * @param yyscanner The scanner object.
- */
- void libconfig_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if ( ! b )
- return;
-
- if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
-
- if ( b->yy_is_our_buffer )
- libconfig_yyfree((void *) b->yy_ch_buf ,yyscanner );
-
- libconfig_yyfree((void *) b ,yyscanner );
-}
-
-#ifndef __cplusplus
-extern int isatty (int );
-#endif /* __cplusplus */
-
-/* Initializes or reinitializes a buffer.
- * This function is sometimes called more than once on the same buffer,
- * such as during a libconfig_yyrestart() or at EOF.
- */
- static void libconfig_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
-
-{
- int oerrno = errno;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- libconfig_yy_flush_buffer(b ,yyscanner);
-
- b->yy_input_file = file;
- b->yy_fill_buffer = 1;
-
- /* If b is the current buffer, then libconfig_yy_init_buffer was _probably_
- * called from libconfig_yyrestart() or through yy_get_next_buffer.
- * In that case, we don't want to reset the lineno or column.
- */
- if (b != YY_CURRENT_BUFFER){
- b->yy_bs_lineno = 1;
- b->yy_bs_column = 0;
- }
-
- b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
-
- errno = oerrno;
-}
-
-/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
- * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
- * @param yyscanner The scanner object.
- */
- void libconfig_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( ! b )
- return;
-
- b->yy_n_chars = 0;
-
- /* We always need two end-of-buffer characters. The first causes
- * a transition to the end-of-buffer state. The second causes
- * a jam in that state.
- */
- b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
-
- b->yy_buf_pos = &b->yy_ch_buf[0];
-
- b->yy_at_bol = 1;
- b->yy_buffer_status = YY_BUFFER_NEW;
-
- if ( b == YY_CURRENT_BUFFER )
- libconfig_yy_load_buffer_state(yyscanner );
-}
-
-/** Pushes the new state onto the stack. The new state becomes
- * the current state. This function will allocate the stack
- * if necessary.
- * @param new_buffer The new state.
- * @param yyscanner The scanner object.
- */
-void libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (new_buffer == NULL)
- return;
-
- libconfig_yyensure_buffer_stack(yyscanner);
-
- /* This block is copied from libconfig_yy_switch_to_buffer. */
- if ( YY_CURRENT_BUFFER )
- {
- /* Flush out information for old buffer. */
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
-
- /* Only push if top exists. Otherwise, replace top. */
- if (YY_CURRENT_BUFFER)
- yyg->yy_buffer_stack_top++;
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
-
- /* copied from libconfig_yy_switch_to_buffer. */
- libconfig_yy_load_buffer_state(yyscanner );
- yyg->yy_did_buffer_switch_on_eof = 1;
-}
-
-/** Removes and deletes the top of the stack, if present.
- * The next element becomes the new top.
- * @param yyscanner The scanner object.
- */
-void libconfig_yypop_buffer_state (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (!YY_CURRENT_BUFFER)
- return;
-
- libconfig_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
- YY_CURRENT_BUFFER_LVALUE = NULL;
- if (yyg->yy_buffer_stack_top > 0)
- --yyg->yy_buffer_stack_top;
-
- if (YY_CURRENT_BUFFER) {
- libconfig_yy_load_buffer_state(yyscanner );
- yyg->yy_did_buffer_switch_on_eof = 1;
- }
-}
-
-/* Allocates the stack if it does not exist.
- * Guarantees space for at least one push.
- */
-static void libconfig_yyensure_buffer_stack (yyscan_t yyscanner)
-{
- yy_size_t num_to_alloc;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if (!yyg->yy_buffer_stack) {
-
- /* First allocation is just for 2 elements, since we don't know if this
- * scanner will even need a stack. We use 2 instead of 1 to avoid an
- * immediate realloc on the next call.
- */
- num_to_alloc = 1;
- yyg->yy_buffer_stack = (struct yy_buffer_state**)libconfig_yyalloc
- (num_to_alloc * sizeof(struct yy_buffer_state*)
- , yyscanner);
- if ( ! yyg->yy_buffer_stack )
- YY_FATAL_ERROR( "out of dynamic memory in libconfig_yyensure_buffer_stack()" );
-
- memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
-
- yyg->yy_buffer_stack_max = num_to_alloc;
- yyg->yy_buffer_stack_top = 0;
- return;
- }
-
- if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
-
- /* Increase the buffer to prepare for a possible push. */
- int grow_size = 8 /* arbitrary grow size */;
-
- num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
- yyg->yy_buffer_stack = (struct yy_buffer_state**)libconfig_yyrealloc
- (yyg->yy_buffer_stack,
- num_to_alloc * sizeof(struct yy_buffer_state*)
- , yyscanner);
- if ( ! yyg->yy_buffer_stack )
- YY_FATAL_ERROR( "out of dynamic memory in libconfig_yyensure_buffer_stack()" );
-
- /* zero only the new slots.*/
- memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
- yyg->yy_buffer_stack_max = num_to_alloc;
- }
-}
-
-/** Setup the input buffer state to scan directly from a user-specified character buffer.
- * @param base the character buffer
- * @param size the size in bytes of the character buffer
- * @param yyscanner The scanner object.
- * @return the newly allocated buffer state object.
- */
-YY_BUFFER_STATE libconfig_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
-{
- YY_BUFFER_STATE b;
-
- if ( size < 2 ||
- base[size-2] != YY_END_OF_BUFFER_CHAR ||
- base[size-1] != YY_END_OF_BUFFER_CHAR )
- /* They forgot to leave room for the EOB's. */
- return 0;
-
- b = (YY_BUFFER_STATE) libconfig_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in libconfig_yy_scan_buffer()" );
-
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
- b->yy_buf_pos = b->yy_ch_buf = base;
- b->yy_is_our_buffer = 0;
- b->yy_input_file = 0;
- b->yy_n_chars = b->yy_buf_size;
- b->yy_is_interactive = 0;
- b->yy_at_bol = 1;
- b->yy_fill_buffer = 0;
- b->yy_buffer_status = YY_BUFFER_NEW;
-
- libconfig_yy_switch_to_buffer(b ,yyscanner );
-
- return b;
-}
-
-/** Setup the input buffer state to scan a string. The next call to libconfig_yylex() will
- * scan from a @e copy of @a str.
- * @param yystr a NUL-terminated string to scan
- * @param yyscanner The scanner object.
- * @return the newly allocated buffer state object.
- * @note If you want to scan bytes that may contain NUL values, then use
- * libconfig_yy_scan_bytes() instead.
- */
-YY_BUFFER_STATE libconfig_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
-{
-
- return libconfig_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
-}
-
-/** Setup the input buffer state to scan the given bytes. The next call to libconfig_yylex() will
- * scan from a @e copy of @a bytes.
- * @param bytes the byte buffer to scan
- * @param len the number of bytes in the buffer pointed to by @a bytes.
- * @param yyscanner The scanner object.
- * @return the newly allocated buffer state object.
- */
-YY_BUFFER_STATE libconfig_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
-{
- YY_BUFFER_STATE b;
- char *buf;
- yy_size_t n, i;
-
- /* Get memory for full buffer, including space for trailing EOB's. */
- n = _yybytes_len + 2;
- buf = (char *) libconfig_yyalloc(n ,yyscanner );
- if ( ! buf )
- YY_FATAL_ERROR( "out of dynamic memory in libconfig_yy_scan_bytes()" );
-
- for ( i = 0; i < _yybytes_len; ++i )
- buf[i] = yybytes[i];
-
- buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
-
- b = libconfig_yy_scan_buffer(buf,n ,yyscanner);
- if ( ! b )
- YY_FATAL_ERROR( "bad buffer in libconfig_yy_scan_bytes()" );
-
- /* It's okay to grow etc. this buffer, and we should throw it
- * away when we're done.
- */
- b->yy_is_our_buffer = 1;
-
- return b;
-}
-
-#ifndef YY_EXIT_FAILURE
-#define YY_EXIT_FAILURE 2
-#endif
-
-static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
-{
- (void) fprintf( stderr, "%s\n", msg );
- exit( YY_EXIT_FAILURE );
-}
-
-/* Redefine yyless() so it works in section 3 code. */
-
-#undef yyless
-#define yyless(n) \
- do \
- { \
- /* Undo effects of setting up yytext. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- yytext[yyleng] = yyg->yy_hold_char; \
- yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
- yyg->yy_hold_char = *yyg->yy_c_buf_p; \
- *yyg->yy_c_buf_p = '\0'; \
- yyleng = yyless_macro_arg; \
- } \
- while ( 0 )
-
-/* Accessor methods (get/set functions) to struct members. */
-
-/** Get the user-defined data for this scanner.
- * @param yyscanner The scanner object.
- */
-YY_EXTRA_TYPE libconfig_yyget_extra (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyextra;
-}
-
-/** Get the current line number.
- * @param yyscanner The scanner object.
- */
-int libconfig_yyget_lineno (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if (! YY_CURRENT_BUFFER)
- return 0;
-
- return yylineno;
-}
-
-/** Get the current column number.
- * @param yyscanner The scanner object.
- */
-int libconfig_yyget_column (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if (! YY_CURRENT_BUFFER)
- return 0;
-
- return yycolumn;
-}
-
-/** Get the input stream.
- * @param yyscanner The scanner object.
- */
-FILE *libconfig_yyget_in (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyin;
-}
-
-/** Get the output stream.
- * @param yyscanner The scanner object.
- */
-FILE *libconfig_yyget_out (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyout;
-}
-
-/** Get the length of the current token.
- * @param yyscanner The scanner object.
- */
-yy_size_t libconfig_yyget_leng (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyleng;
-}
-
-/** Get the current token.
- * @param yyscanner The scanner object.
- */
-
-char *libconfig_yyget_text (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yytext;
-}
-
-/** Set the user-defined data. This data is never touched by the scanner.
- * @param user_defined The data to be associated with this scanner.
- * @param yyscanner The scanner object.
- */
-void libconfig_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyextra = user_defined ;
-}
-
-/** Set the current line number.
- * @param line_number
- * @param yyscanner The scanner object.
- */
-void libconfig_yyset_lineno (int line_number , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- /* lineno is only valid if an input buffer exists. */
- if (! YY_CURRENT_BUFFER )
- yy_fatal_error( "libconfig_yyset_lineno called with no buffer" , yyscanner);
-
- yylineno = line_number;
-}
-
-/** Set the current column.
- * @param line_number
- * @param yyscanner The scanner object.
- */
-void libconfig_yyset_column (int column_no , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- /* column is only valid if an input buffer exists. */
- if (! YY_CURRENT_BUFFER )
- yy_fatal_error( "libconfig_yyset_column called with no buffer" , yyscanner);
-
- yycolumn = column_no;
-}
-
-/** Set the input stream. This does not discard the current
- * input buffer.
- * @param in_str A readable stream.
- * @param yyscanner The scanner object.
- * @see libconfig_yy_switch_to_buffer
- */
-void libconfig_yyset_in (FILE * in_str , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyin = in_str ;
-}
-
-void libconfig_yyset_out (FILE * out_str , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyout = out_str ;
-}
-
-int libconfig_yyget_debug (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yy_flex_debug;
-}
-
-void libconfig_yyset_debug (int bdebug , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_flex_debug = bdebug ;
-}
-
-/* Accessor methods for yylval and yylloc */
-
-YYSTYPE * libconfig_yyget_lval (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yylval;
-}
-
-void libconfig_yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yylval = yylval_param;
-}
-
-/* User-visible API */
-
-/* libconfig_yylex_init is special because it creates the scanner itself, so it is
- * the ONLY reentrant function that doesn't take the scanner as the last argument.
- * That's why we explicitly handle the declaration, instead of using our macros.
- */
-
-int libconfig_yylex_init(yyscan_t* ptr_yy_globals)
-
-{
- if (ptr_yy_globals == NULL){
- errno = EINVAL;
- return 1;
- }
-
- *ptr_yy_globals = (yyscan_t) libconfig_yyalloc ( sizeof( struct yyguts_t ), NULL );
-
- if (*ptr_yy_globals == NULL){
- errno = ENOMEM;
- return 1;
- }
-
- /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
- memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
-
- return yy_init_globals ( *ptr_yy_globals );
-}
-
-/* libconfig_yylex_init_extra has the same functionality as libconfig_yylex_init, but follows the
- * convention of taking the scanner as the last argument. Note however, that
- * this is a *pointer* to a scanner, as it will be allocated by this call (and
- * is the reason, too, why this function also must handle its own declaration).
- * The user defined value in the first argument will be available to libconfig_yyalloc in
- * the yyextra field.
- */
-
-int libconfig_yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
-
-{
- struct yyguts_t dummy_yyguts;
-
- libconfig_yyset_extra (yy_user_defined, &dummy_yyguts);
-
- if (ptr_yy_globals == NULL){
- errno = EINVAL;
- return 1;
- }
-
- *ptr_yy_globals = (yyscan_t) libconfig_yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
-
- if (*ptr_yy_globals == NULL){
- errno = ENOMEM;
- return 1;
- }
-
- /* By setting to 0xAA, we expose bugs in
- yy_init_globals. Leave at 0x00 for releases. */
- memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
-
- libconfig_yyset_extra (yy_user_defined, *ptr_yy_globals);
-
- return yy_init_globals ( *ptr_yy_globals );
-}
-
-static int yy_init_globals (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- /* Initialization is the same as for the non-reentrant scanner.
- * This function is called from libconfig_yylex_destroy(), so don't allocate here.
- */
-
- yyg->yy_buffer_stack = 0;
- yyg->yy_buffer_stack_top = 0;
- yyg->yy_buffer_stack_max = 0;
- yyg->yy_c_buf_p = (char *) 0;
- yyg->yy_init = 0;
- yyg->yy_start = 0;
-
- yyg->yy_start_stack_ptr = 0;
- yyg->yy_start_stack_depth = 0;
- yyg->yy_start_stack = NULL;
-
-/* Defined in main.c */
-#ifdef YY_STDINIT
- yyin = stdin;
- yyout = stdout;
-#else
- yyin = (FILE *) 0;
- yyout = (FILE *) 0;
-#endif
-
- /* For future reference: Set errno on error, since we are called by
- * libconfig_yylex_init()
- */
- return 0;
-}
-
-/* libconfig_yylex_destroy is for both reentrant and non-reentrant scanners. */
-int libconfig_yylex_destroy (yyscan_t yyscanner)
-{
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- /* Pop the buffer stack, destroying each element. */
- while(YY_CURRENT_BUFFER){
- libconfig_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
- YY_CURRENT_BUFFER_LVALUE = NULL;
- libconfig_yypop_buffer_state(yyscanner);
- }
-
- /* Destroy the stack itself. */
- libconfig_yyfree(yyg->yy_buffer_stack ,yyscanner);
- yyg->yy_buffer_stack = NULL;
-
- /* Destroy the start condition stack. */
- libconfig_yyfree(yyg->yy_start_stack ,yyscanner );
- yyg->yy_start_stack = NULL;
-
- /* Reset the globals. This is important in a non-reentrant scanner so the next time
- * libconfig_yylex() is called, initialization will occur. */
- yy_init_globals( yyscanner);
-
- /* Destroy the main struct (reentrant only). */
- libconfig_yyfree ( yyscanner , yyscanner );
- yyscanner = NULL;
- return 0;
-}
-
-/*
- * Internal utility routines.
- */
-
-#ifndef yytext_ptr
-static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
-{
- register int i;
- for ( i = 0; i < n; ++i )
- s1[i] = s2[i];
-}
-#endif
-
-#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
-{
- register int n;
- for ( n = 0; s[n]; ++n )
- ;
-
- return n;
-}
-#endif
-
-void *libconfig_yyalloc (yy_size_t size , yyscan_t yyscanner)
-{
- return (void *) malloc( size );
-}
-
-void *libconfig_yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
-{
- /* The cast to (char *) in the following accommodates both
- * implementations that use char* generic pointers, and those
- * that use void* generic pointers. It works with the latter
- * because both ANSI C and C++ allow castless assignment from
- * any pointer type to void*, and deal with argument conversions
- * as though doing an assignment.
- */
- return (void *) realloc( (char *) ptr, size );
-}
-
-void libconfig_yyfree (void * ptr , yyscan_t yyscanner)
-{
- free( (char *) ptr ); /* see libconfig_yyrealloc() for (char *) cast */
-}
-
-#define YYTABLES_NAME "yytables"
-
-#line 190 "scanner.l"
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/scanner.h
--- a/yt/utilities/_libconfig/scanner.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,326 +0,0 @@
-#ifndef libconfig_yyHEADER_H
-#define libconfig_yyHEADER_H 1
-#define libconfig_yyIN_HEADER 1
-
-#line 6 "scanner.h"
-
-#line 8 "scanner.h"
-
-#define YY_INT_ALIGNED short int
-
-/* A lexical scanner generated by flex */
-
-#define FLEX_SCANNER
-#define YY_FLEX_MAJOR_VERSION 2
-#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 33
-#if YY_FLEX_SUBMINOR_VERSION > 0
-#define FLEX_BETA
-#endif
-
-/* First, we deal with platform-specific or compiler-specific issues. */
-
-/* begin standard C headers. */
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <stdlib.h>
-
-/* end standard C headers. */
-
-/* flex integer type definitions */
-
-#ifndef FLEXINT_H
-#define FLEXINT_H
-
-/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
-
-#if __STDC_VERSION__ >= 199901L
-
-/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
- * if you want the limit (max/min) macros for int types.
- */
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS 1
-#endif
-
-#include <inttypes.h>
-typedef int8_t flex_int8_t;
-typedef uint8_t flex_uint8_t;
-typedef int16_t flex_int16_t;
-typedef uint16_t flex_uint16_t;
-typedef int32_t flex_int32_t;
-typedef uint32_t flex_uint32_t;
-#else
-typedef signed char flex_int8_t;
-typedef short int flex_int16_t;
-typedef int flex_int32_t;
-typedef unsigned char flex_uint8_t;
-typedef unsigned short int flex_uint16_t;
-typedef unsigned int flex_uint32_t;
-#endif /* ! C99 */
-
-/* Limits of integral types. */
-#ifndef INT8_MIN
-#define INT8_MIN (-128)
-#endif
-#ifndef INT16_MIN
-#define INT16_MIN (-32767-1)
-#endif
-#ifndef INT32_MIN
-#define INT32_MIN (-2147483647-1)
-#endif
-#ifndef INT8_MAX
-#define INT8_MAX (127)
-#endif
-#ifndef INT16_MAX
-#define INT16_MAX (32767)
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX (2147483647)
-#endif
-#ifndef UINT8_MAX
-#define UINT8_MAX (255U)
-#endif
-#ifndef UINT16_MAX
-#define UINT16_MAX (65535U)
-#endif
-#ifndef UINT32_MAX
-#define UINT32_MAX (4294967295U)
-#endif
-
-#endif /* ! FLEXINT_H */
-
-#ifdef __cplusplus
-
-/* The "const" storage-class-modifier is valid. */
-#define YY_USE_CONST
-
-#else /* ! __cplusplus */
-
-#if __STDC__
-
-#define YY_USE_CONST
-
-#endif /* __STDC__ */
-#endif /* ! __cplusplus */
-
-#ifdef YY_USE_CONST
-#define yyconst const
-#else
-#define yyconst
-#endif
-
-/* An opaque pointer. */
-#ifndef YY_TYPEDEF_YY_SCANNER_T
-#define YY_TYPEDEF_YY_SCANNER_T
-typedef void* yyscan_t;
-#endif
-
-/* For convenience, these vars (plus the bison vars far below)
- are macros in the reentrant scanner. */
-#define yyin yyg->yyin_r
-#define yyout yyg->yyout_r
-#define yyextra yyg->yyextra_r
-#define yyleng yyg->yyleng_r
-#define yytext yyg->yytext_r
-#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
-#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
-#define yy_flex_debug yyg->yy_flex_debug_r
-
-int libconfig_yylex_init (yyscan_t* scanner);
-
-#ifndef YY_TYPEDEF_YY_BUFFER_STATE
-#define YY_TYPEDEF_YY_BUFFER_STATE
-typedef struct yy_buffer_state *YY_BUFFER_STATE;
-#endif
-
-/* The following is because we cannot portably get our hands on size_t
- * (without autoconf's help, which isn't available because we want
- * flex-generated scanners to compile on their own).
- */
-
-#ifndef YY_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef unsigned int yy_size_t;
-#endif
-
-#ifndef YY_STRUCT_YY_BUFFER_STATE
-#define YY_STRUCT_YY_BUFFER_STATE
-struct yy_buffer_state
- {
- FILE *yy_input_file;
-
- char *yy_ch_buf; /* input buffer */
- char *yy_buf_pos; /* current position in input buffer */
-
- /* Size of input buffer in bytes, not including room for EOB
- * characters.
- */
- yy_size_t yy_buf_size;
-
- /* Number of characters read into yy_ch_buf, not including EOB
- * characters.
- */
- int yy_n_chars;
-
- /* Whether we "own" the buffer - i.e., we know we created it,
- * and can realloc() it to grow it, and should free() it to
- * delete it.
- */
- int yy_is_our_buffer;
-
- /* Whether this is an "interactive" input source; if so, and
- * if we're using stdio for input, then we want to use getc()
- * instead of fread(), to make sure we stop fetching input after
- * each newline.
- */
- int yy_is_interactive;
-
- /* Whether we're considered to be at the beginning of a line.
- * If so, '^' rules will be active on the next match, otherwise
- * not.
- */
- int yy_at_bol;
-
- int yy_bs_lineno; /**< The line count. */
- int yy_bs_column; /**< The column count. */
-
- /* Whether to try to fill the input buffer when we reach the
- * end of it.
- */
- int yy_fill_buffer;
-
- int yy_buffer_status;
-
- };
-#endif /* !YY_STRUCT_YY_BUFFER_STATE */
-
-void libconfig_yyrestart (FILE *input_file ,yyscan_t yyscanner );
-void libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
-YY_BUFFER_STATE libconfig_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
-void libconfig_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
-void libconfig_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
-void libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
-void libconfig_yypop_buffer_state (yyscan_t yyscanner );
-
-YY_BUFFER_STATE libconfig_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
-YY_BUFFER_STATE libconfig_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
-YY_BUFFER_STATE libconfig_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
-
-void *libconfig_yyalloc (yy_size_t ,yyscan_t yyscanner );
-void *libconfig_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
-void libconfig_yyfree (void * ,yyscan_t yyscanner );
-
-#define libconfig_yywrap(n) 1
-#define YY_SKIP_YYWRAP
-
-#define yytext_ptr yytext_r
-
-#ifdef YY_HEADER_EXPORT_START_CONDITIONS
-#define INITIAL 0
-#define COMMENT 1
-
-#endif
-
-#ifndef YY_EXTRA_TYPE
-#define YY_EXTRA_TYPE void *
-#endif
-
-/* Accessor methods to globals.
- These are made visible to non-reentrant scanners for convenience. */
-
-int libconfig_yylex_destroy (yyscan_t yyscanner );
-
-int libconfig_yyget_debug (yyscan_t yyscanner );
-
-void libconfig_yyset_debug (int debug_flag ,yyscan_t yyscanner );
-
-YY_EXTRA_TYPE libconfig_yyget_extra (yyscan_t yyscanner );
-
-void libconfig_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
-
-FILE *libconfig_yyget_in (yyscan_t yyscanner );
-
-void libconfig_yyset_in (FILE * in_str ,yyscan_t yyscanner );
-
-FILE *libconfig_yyget_out (yyscan_t yyscanner );
-
-void libconfig_yyset_out (FILE * out_str ,yyscan_t yyscanner );
-
-int libconfig_yyget_leng (yyscan_t yyscanner );
-
-char *libconfig_yyget_text (yyscan_t yyscanner );
-
-int libconfig_yyget_lineno (yyscan_t yyscanner );
-
-void libconfig_yyset_lineno (int line_number ,yyscan_t yyscanner );
-
-YYSTYPE * libconfig_yyget_lval (yyscan_t yyscanner );
-
-void libconfig_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
-
-/* Macros after this point can all be overridden by user definitions in
- * section 1.
- */
-
-#ifndef YY_SKIP_YYWRAP
-#ifdef __cplusplus
-extern "C" int libconfig_yywrap (yyscan_t yyscanner );
-#else
-extern int libconfig_yywrap (yyscan_t yyscanner );
-#endif
-#endif
-
-#ifndef yytext_ptr
-static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
-#endif
-
-#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
-#endif
-
-#ifndef YY_NO_INPUT
-
-#endif
-
-/* Amount of stuff to slurp up with each read. */
-#ifndef YY_READ_BUF_SIZE
-#define YY_READ_BUF_SIZE 8192
-#endif
-
-/* Number of entries by which start-condition stack grows. */
-#ifndef YY_START_STACK_INCR
-#define YY_START_STACK_INCR 25
-#endif
-
-/* Default declaration of generated scanner - a define so the user can
- * easily add parameters.
- */
-#ifndef YY_DECL
-#define YY_DECL_IS_OURS 1
-
-extern int libconfig_yylex (YYSTYPE * yylval_param ,yyscan_t yyscanner);
-
-#define YY_DECL int libconfig_yylex (YYSTYPE * yylval_param , yyscan_t yyscanner)
-#endif /* !YY_DECL */
-
-/* yy_get_previous_state - get the state just before the EOB char was reached */
-
-#undef YY_NEW_FILE
-#undef YY_FLUSH_BUFFER
-#undef yy_set_bol
-#undef yy_new_buffer
-#undef yy_set_interactive
-#undef YY_DO_BEFORE_ACTION
-
-#ifdef YY_DECL_IS_OURS
-#undef YY_DECL_IS_OURS
-#undef YY_DECL
-#endif
-
-#line 130 "scanner.l"
-
-#line 325 "scanner.h"
-#undef libconfig_yyIN_HEADER
-#endif /* libconfig_yyHEADER_H */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/scanner.l
--- a/yt/utilities/_libconfig/scanner.l Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,188 +0,0 @@
-/* -*- mode: C -*- */
-/* --------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-%option nounistd
-%option reentrant
-%option noyywrap
-%option yylineno
-%option nounput
-%option bison-bridge
-%option header-file="scanner.h"
-%option outfile="lex.yy.c"
-%option extra-type="struct scan_context *"
-
-%{
-
-#ifdef _MSC_VER
-#pragma warning (disable: 4996)
-#endif
-
-#include <stdlib.h>
-#include <ctype.h>
-#include <string.h>
-#include "grammar.h"
-#include "wincompat.h"
-#include "parsectx.h"
-#include "scanctx.h"
-
-#define YY_NO_INPUT // Suppress generation of useless input() function
-
-static unsigned long long fromhex(const char *s)
-{
-#ifdef __MINGW32__
-
- /* MinGW's strtoull() seems to be broken; it only returns the lower
- * 32 bits...
- */
-
- const char *p = s;
- unsigned long long val = 0;
-
- if(*p != '0')
- return(0);
-
- ++p;
-
- if(*p != 'x' && *p != 'X')
- return(0);
-
- for(++p; isxdigit(*p); ++p)
- {
- val <<= 4;
- val |= ((*p < 'A') ? (*p & 0xF) : (9 + (*p & 0x7)));
- }
-
- return(val);
-
-#else /* ! __MINGW32__ */
-
- return(strtoull(s, NULL, 16));
-
-#endif /* __MINGW32__ */
-}
-
-%}
-
-true [Tt][Rr][Uu][Ee]
-false [Ff][Aa][Ll][Ss][Ee]
-name [A-Za-z\*][-A-Za-z0-9_\*]*
-integer64 [-+]?[0-9]+(L(L)?)?
-hex 0[Xx][0-9A-Fa-f]+
-hex64 0[Xx][0-9A-Fa-f]+L(L)?
-hexchar \\[Xx][0-9A-Fa-f]{2}
-float ([-+]?([0-9]*)?\.[0-9]*([eE][-+]?[0-9]+)?)|([-+]?([0-9]+)(\.[0-9]*)?[eE][-+]?[0-9]+)
-comment (#|\/\/).*$
-include_open ^[ \t]*@include[ \t]+\"
-
-%x COMMENT STRING INCLUDE
-
-%%
-
-\/\* { BEGIN COMMENT; }
-<COMMENT>\*\/ { BEGIN INITIAL; }
-<COMMENT>. { /* ignore */ }
-<COMMENT>\n { /* ignore */ }
-
-\" { BEGIN STRING; }
-<STRING>[^\"\\]+ { scanctx_append_string(yyextra, yytext); }
-<STRING>\\n { scanctx_append_string(yyextra, "\n"); }
-<STRING>\\r { scanctx_append_string(yyextra, "\r"); }
-<STRING>\\t { scanctx_append_string(yyextra, "\t"); }
-<STRING>\\f { scanctx_append_string(yyextra, "\f"); }
-<STRING>\\\\ { scanctx_append_string(yyextra, "\\"); }
-<STRING>\\\" { scanctx_append_string(yyextra, "\""); }
-<STRING>{hexchar} {
- char c[2] = { (char)(strtol(yytext + 2, NULL, 16) & 0xFF),
- 0 };
- scanctx_append_string(yyextra, c);
- }
-<STRING>\" {
- yylval->sval = scanctx_take_string(yyextra);
- BEGIN INITIAL;
- return(TOK_STRING);
- }
-
-{include_open} { BEGIN INCLUDE; }
-<INCLUDE>[^\"\\]+ { scanctx_append_string(yyextra, yytext); }
-<INCLUDE>\\\\ { scanctx_append_string(yyextra, "\\"); }
-<INCLUDE>\\\" { scanctx_append_string(yyextra, "\""); }
-<INCLUDE>\" {
- const char *error;
- FILE *fp = scanctx_push_include(yyextra,
- (void *)YY_CURRENT_BUFFER,
- &error);
- if(fp)
- {
- yyin = fp;
- yy_switch_to_buffer(
- yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner),
- yyscanner);
- }
- else
- {
- yyextra->config->error_text = error;
- yyextra->config->error_file = scanctx_current_filename(
- yyextra);
- yyextra->config->error_line = libconfig_yyget_lineno(
- yyscanner);
- return TOK_ERROR;
- }
- BEGIN INITIAL;
- }
-
-\n|\r|\f { /* ignore */ }
-[ \t]+ { /* ignore */ }
-
-\=|\: { return(TOK_EQUALS); }
-, { return(TOK_COMMA); }
-\{ { return(TOK_GROUP_START); }
-\} { return(TOK_GROUP_END); }
-{true} { yylval->ival = 1; return(TOK_BOOLEAN); }
-{false} { yylval->ival = 0; return(TOK_BOOLEAN); }
-{name} { yylval->sval = yytext; return(TOK_NAME); }
-{float} { yylval->fval = atof(yytext); return(TOK_FLOAT); }
-{integer64} { yylval->llval = atoll(yytext); return(TOK_INTEGER64); }
-{hex} {
- yylval->ival = strtoul(yytext, NULL, 16);
- return(TOK_HEX);
- }
-{hex64} { yylval->llval = fromhex(yytext); return(TOK_HEX64); }
-\[ { return(TOK_ARRAY_START); }
-\] { return(TOK_ARRAY_END); }
-\( { return(TOK_LIST_START); }
-\) { return(TOK_LIST_END); }
-; { return(TOK_END); }
-{comment} { /* ignore */ }
-. { return(TOK_GARBAGE); }
-
-<<EOF>> {
- YY_BUFFER_STATE buf = (YY_BUFFER_STATE)scanctx_pop_include(
- yyextra);
- if(buf)
- {
- yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
- yy_switch_to_buffer(buf, yyscanner);
- }
- else
- yyterminate();
- }
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/strbuf.c
--- a/yt/utilities/_libconfig/strbuf.c Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#include "strbuf.h"
-
-#include <string.h>
-#include <stdlib.h>
-
-#define STRING_BLOCK_SIZE 64
-
-/* ------------------------------------------------------------------------- */
-
-char *strbuf_release(strbuf_t *buf)
-{
- char *r = buf->string;
- memset(buf, 0, sizeof(strbuf_t));
- return(r);
-}
-
-/* ------------------------------------------------------------------------- */
-
-void strbuf_append(strbuf_t *buf, const char *text)
-{
- static const size_t mask = ~(STRING_BLOCK_SIZE - 1);
- size_t len = strlen(text);
- size_t newlen = buf->length + len + 1; /* add 1 for NUL */
-
- if(newlen > buf->capacity)
- {
- buf->capacity = (newlen + (STRING_BLOCK_SIZE - 1)) & mask;
- buf->string = (char *)realloc(buf->string, buf->capacity);
- }
-
- strcpy(buf->string + buf->length, text);
- buf->length += len;
-}
-
-/* ------------------------------------------------------------------------- */
-/* eof */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/strbuf.h
--- a/yt/utilities/_libconfig/strbuf.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#ifndef __libconfig_strbuf_h
-#define __libconfig_strbuf_h
-
-#include <string.h>
-#include <sys/types.h>
-
-typedef struct
-{
- char *string;
- size_t length;
- size_t capacity;
-} strbuf_t;
-
-char *strbuf_release(strbuf_t *buf);
-
-void strbuf_append(strbuf_t *buf, const char *text);
-
-#endif /* __libconfig_strbuf_h */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/_libconfig/wincompat.h
--- a/yt/utilities/_libconfig/wincompat.h Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,90 +0,0 @@
-/* ----------------------------------------------------------------------------
- libconfig - A library for processing structured configuration files
- Copyright (C) 2005-2011 Mark A Lindner
-
- This file is part of libconfig.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, see
- <http://www.gnu.org/licenses/>.
- ----------------------------------------------------------------------------
-*/
-
-#ifndef __wincompat_h
-#define __wincompat_h
-
-#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
-
-#ifdef _MSC_VER
-#pragma warning (disable: 4996)
-#endif
-
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
-#define snprintf _snprintf
-
-#ifndef __MINGW32__
-#define atoll _atoi64
-#define strtoull _strtoui64
-#endif /* __MINGW32__ */
-
-#endif
-
-#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) \
- || defined(__MINGW32__))
-
-/* Why does gcc on MinGW use the Visual C++ style format directives
- * for 64-bit integers? Inquiring minds want to know....
- */
-
-#define INT64_FMT "%I64d"
-#define UINT64_FMT "%I64u"
-
-#define INT64_HEX_FMT "%I64X"
-
-#define FILE_SEPARATOR "\\"
-
-#else /* defined(WIN32) || defined(__MINGW32__) */
-
-#define INT64_FMT "%lld"
-#define UINT64_FMT "%llu"
-
-#define INT64_HEX_FMT "%llX"
-
-#define FILE_SEPARATOR "/"
-
-#endif /* defined(WIN32) || defined(__MINGW32__) */
-
-#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__)) \
- && ! defined(__MINGW32__)
-
-#define INT64_CONST(I) (I ## i64)
-#define UINT64_CONST(I) (I ## Ui64)
-
-#ifndef INT32_MAX
-#define INT32_MAX (2147483647)
-#endif
-
-#ifndef INT32_MIN
-#define INT32_MIN (-2147483647-1)
-#endif
-
-#else /* defined(WIN32) && ! defined(__MINGW32__) */
-
-#define INT64_CONST(I) (I ## LL)
-#define UINT64_CONST(I) (I ## ULL)
-
-#endif /* defined(WIN32) && ! defined(__MINGW32__) */
-
-#endif /* __wincompat_h */
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/amr_kdtree/__init__.py
--- a/yt/utilities/amr_kdtree/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/amr_kdtree/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,3 +1,15 @@
"""
Initialize amr_kdtree
+
+Authors:
+ * Samuel Skillman
+
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/amr_kdtree/amr_kdtools.py
--- a/yt/utilities/amr_kdtree/amr_kdtools.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/amr_kdtree/amr_kdtools.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,20 @@
"""
AMR kD-Tree Tools
-Authors: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
+Authors:
+ * Samuel Skillman
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Samuel Skillman. All Rights Reserved.
- This file is part of yt.
+"""
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
import numpy as np
from yt.funcs import *
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/amr_kdtree/amr_kdtree.py
--- a/yt/utilities/amr_kdtree/amr_kdtree.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/amr_kdtree/amr_kdtree.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,28 +1,20 @@
"""
AMR kD-Tree Framework
-Authors: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
+Authors:
+ * Samuel Skillman
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Samuel Skillman. All Rights Reserved.
- This file is part of yt.
+"""
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
from yt.funcs import *
import numpy as np
import h5py
@@ -556,6 +548,3 @@
print kd_sum_volume(hv.tree.trunk)
print kd_node_check(hv.tree.trunk)
print 'Time: %e seconds' % (t2-t1)
-
-
-
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/amr_kdtree/api.py
--- a/yt/utilities/amr_kdtree/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/amr_kdtree/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,26 +1,18 @@
"""
API for yt.utilities.amr_kdtree
-Authors: Samuel Skillman <samskillman@gmail.com>
-Affiliation: University of Colorado at Boulder
+Authors:
+ * Samuel Skillman
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Samuel Skillman. All Rights Reserved.
- This file is part of yt.
+"""
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
from amr_kdtree import AMRKDTree
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/answer_testing/__init__.py
--- a/yt/utilities/answer_testing/__init__.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/answer_testing/__init__.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,24 +1,17 @@
"""
The components of the Enzo testing mechanism
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/answer_testing/api.py
--- a/yt/utilities/answer_testing/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/answer_testing/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,33 +1,23 @@
"""
API for enzo_test
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
from .runner import \
RegressionTestRunner, \
RegressionTestStorage, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/answer_testing/default_tests.py
--- a/yt/utilities/answer_testing/default_tests.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/answer_testing/default_tests.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Default tests
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.mods import *
from output_tests import YTStaticOutputTest, create_test
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/answer_testing/framework.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Answer Testing using Nose as a starting point
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import logging
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/answer_testing/hydro_tests.py
--- a/yt/utilities/answer_testing/hydro_tests.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/answer_testing/hydro_tests.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Hydro tests
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import matplotlib
import pylab
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/answer_testing/output_tests.py
--- a/yt/utilities/answer_testing/output_tests.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/answer_testing/output_tests.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Base classes for answer testing
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import matplotlib
from yt.mods import *
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/answer_testing/runner.py
--- a/yt/utilities/answer_testing/runner.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/answer_testing/runner.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Runner mechanism for answer testing
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import matplotlib
import os, shelve, cPickle, sys, imp, tempfile
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/api.py
--- a/yt/utilities/api.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/api.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,19 @@
"""
API for yt.utilities
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: UCSD
-Author: J.S. Oishi <jsoishi@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: MSU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
+ * J.S. Oishi
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/command_line.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
A means of running standalone commands with a shared set of options.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from yt.config import ytcfg
ytcfg["yt","__command_line"] = "True"
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/cosmology.py
--- a/yt/utilities/cosmology.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/cosmology.py Mon Sep 09 14:13:42 2013 -0400
@@ -2,27 +2,20 @@
Cosmology calculator based on http://www.kempner.net/cosmic.php. Also,
conversion functions between time and redshift pulled from Enzo.
-Author: Britton Smith <brittons@origins.colorado.edu>
-Affiliation: CASA/University of CO, Boulder
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008-2011 Britton Smith. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/data_point_utilities.c
--- a/yt/utilities/data_point_utilities.c Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/data_point_utilities.c Mon Sep 09 14:13:42 2013 -0400
@@ -1,23 +1,10 @@
-/************************************************************************
-* Copyright (C) 2007-2009 Matthew Turk. All Rights Reserved.
-*
-* This file is part of yt.
-*
-* yt is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-************************************************************************/
-
+/*******************************************************************************
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+*******************************************************************************/
//
// data_point_utilities
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/decompose.py
--- a/yt/utilities/decompose.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/decompose.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Automagical cartesian domain decomposition.
-Author: Kacper Kowalik <xarthisius.kk@gmail.com>
-Affiliation: CA UMK
-Author: Artur Gawryszczak <gawrysz@gmail.com>
-Affiliation: PCSS
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Kacper Kowalik. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Kacper Kowalik
+ * Artur Gawryszczak
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/definitions.py
--- a/yt/utilities/definitions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/definitions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,20 @@
"""
Various definitions for various other modules and routines
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-@todo: Move into yt.Defs, along with enki.EnkiDefs
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
+Authors:
+ * Matthew Turk
- This file is part of yt.
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
+"""
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from .physical_constants import \
mpc_per_mpc, kpc_per_mpc, pc_per_mpc, au_per_mpc, rsun_per_mpc, \
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/exceptions.py
--- a/yt/utilities/exceptions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/exceptions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
This is a library of yt-defined exceptions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2009 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
# We don't need to import 'exceptions'
#import exceptions
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/flagging_methods.py
--- a/yt/utilities/flagging_methods.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/flagging_methods.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Utilities for flagging zones for refinement in a dataset
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np # For modern purposes
from yt.utilities.lib import grow_flagging_field
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/fortran_utils.py
--- a/yt/utilities/fortran_utils.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/fortran_utils.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Utilities for reading Fortran files.
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt.enzotools.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import struct
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/grid_data_format/tests/test_writer.py
--- a/yt/utilities/grid_data_format/tests/test_writer.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/grid_data_format/tests/test_writer.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Testsuite for writing yt data to GDF
-Author: Kacper Kowalik <xarthisius.kk@gmail.com>
-Affiliation: Torun Center for Astronomy, NCU
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Kacper Kowalik. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Kacper Kowalik
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import tempfile
import shutil
import os
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/grid_data_format/writer.py
--- a/yt/utilities/grid_data_format/writer.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/grid_data_format/writer.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,30 +1,22 @@
"""
Writing yt data to a GDF file.
-Authors: Casey W. Stark <caseywstark@gmail.com>
-Affiliation: UC Berkeley
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Casey W. Stark. All Rights Reserved.
-
- This file is part of yt.
-
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+Authors:
+ * Casey Stark
+ * Kacper Kowalik
+ * Andrew Myers
"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
+
import os
import sys
import h5py
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/hdf5_light_reader.c
--- a/yt/utilities/hdf5_light_reader.c Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/hdf5_light_reader.c Mon Sep 09 14:13:42 2013 -0400
@@ -1,23 +1,10 @@
-/************************************************************************
-* Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
-*
-* This file is part of yt.
-*
-* yt is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-************************************************************************/
-
+/*******************************************************************************
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+*******************************************************************************/
//
// HDF5_LightReader
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/initial_conditions.py
--- a/yt/utilities/initial_conditions.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/initial_conditions.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Painting zones in a grid
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: Columbia University
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2012 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/io_handler.py
--- a/yt/utilities/io_handler.py Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/io_handler.py Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
The data-file handling functions
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2007-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
from collections import defaultdict
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/CICDeposit.pyx
--- a/yt/utilities/lib/CICDeposit.pyx Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/lib/CICDeposit.pyx Mon Sep 09 14:13:42 2013 -0400
@@ -1,29 +1,21 @@
"""
Simple integrators for the radiative transfer equation
-Author: Britton Smith <brittonsmith@gmail.com>
-Affiliation: CASA/University of Colorado
-Author: Christopher Moody <juxtaposicion@gmail.com>
-Affiliation: cemoody@ucsc.edu
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Britton Smith
+ * Christopher Moody
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
cimport numpy as np
cimport cython
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/COPYING.healpix
--- a/yt/utilities/lib/COPYING.healpix Mon Sep 09 11:46:51 2013 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/ContourFinding.pyx
--- a/yt/utilities/lib/ContourFinding.pyx Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/lib/ContourFinding.pyx Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
A two-pass contour finding algorithm
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2010-2011 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
cimport numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/DepthFirstOctree.pyx
--- a/yt/utilities/lib/DepthFirstOctree.pyx Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/lib/DepthFirstOctree.pyx Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
This is a recursive function to return a depth-first octree
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
cimport numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/FixedInterpolator.c
--- a/yt/utilities/lib/FixedInterpolator.c Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/lib/FixedInterpolator.c Mon Sep 09 14:13:42 2013 -0400
@@ -1,23 +1,10 @@
-/************************************************************************
-* Copyright (C) 2009 Matthew Turk. All Rights Reserved.
-*
-* This file is part of yt.
-*
-* yt is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-************************************************************************/
-
+/*******************************************************************************
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+*******************************************************************************/
//
// A small, tiny, itty bitty module for computation-intensive interpolation
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/FixedInterpolator.h
--- a/yt/utilities/lib/FixedInterpolator.h Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/lib/FixedInterpolator.h Mon Sep 09 14:13:42 2013 -0400
@@ -1,24 +1,10 @@
-/************************************************************************
-* Copyright (C) 2009 Matthew Turk. All Rights Reserved.
-*
-* This file is part of yt.
-*
-* yt is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see <http://www.gnu.org/licenses/>.
-*
-************************************************************************/
-
-
+/*******************************************************************************
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+*******************************************************************************/
//
// A small, tiny, itty bitty module for computation-intensive interpolation
// that I can't seem to make fast in Cython
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/GridTree.pyx
--- a/yt/utilities/lib/GridTree.pyx Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/lib/GridTree.pyx Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Matching points on the grid to specific grids
-Author: John ZuHone <jzuhone@gmail.com>
-Affiliation: NASA/Goddard Space Flight Center
-Homepage: http://yt-project.org/
-License:
-Copyright (C) 2012 John ZuHone. All Rights Reserved.
-This file is part of yt.
+Authors:
+ * John ZuHone
-yt is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+"""
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-----------------------------------------------------------------------------
import numpy as np
cimport numpy as np
diff -r 079e456c38a8 -r 2d06aa201903 yt/utilities/lib/Interpolators.pyx
--- a/yt/utilities/lib/Interpolators.pyx Mon Sep 09 11:46:51 2013 -0400
+++ b/yt/utilities/lib/Interpolators.pyx Mon Sep 09 14:13:42 2013 -0400
@@ -1,27 +1,20 @@
"""
Simple interpolators
-Author: Matthew Turk <matthewturk@gmail.com>
-Affiliation: KIPAC/SLAC/Stanford
-Homepage: http://yt-project.org/
-License:
- Copyright (C) 2008 Matthew Turk. All Rights Reserved.
- This file is part of yt.
+Authors:
+ * Matthew Turk
- yt is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+"""
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
+#-----------------------------------------------------------------------------
+# Copyright (c) 2013, yt Development Team.
+#
+# Distributed under the terms of the Modified BSD License.
+#
+# The full license is in the file COPYING.txt, distributed with this software.
+#-------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment