From e97a276c4b979b9eaea97aa3d7dc1c439b015f4f Mon Sep 17 00:00:00 2001 From: Simon Billinge Date: Fri, 3 Nov 2023 14:05:12 -0400 Subject: [PATCH] adding a test ouptput file --- regolith/builder.py | 2 +- regolith/builders/grantreportbuilder.py | 2 +- ...SymPy-1.1_report_2017-04-01_2018-03-31.txt | 124 ++++++++++++++++++ tests/test_builders.py | 9 +- 4 files changed, 130 insertions(+), 7 deletions(-) create mode 100644 tests/outputs/grant-report/SymPy-1.1_report_2017-04-01_2018-03-31.txt diff --git a/regolith/builder.py b/regolith/builder.py index 3565368dd..666a2cc76 100644 --- a/regolith/builder.py +++ b/regolith/builder.py @@ -30,7 +30,7 @@ "formalletter": FormalLetterBuilder, "grade": GradeReportBuilder, "grades": GradeReportBuilder, - "grantreport": GrantReportBuilder, + "grant-report": GrantReportBuilder, "html": HtmlBuilder, "internalhtml": InternalHtmlBuilder, "postdocad": PostdocadBuilder, diff --git a/regolith/builders/grantreportbuilder.py b/regolith/builders/grantreportbuilder.py index 9d99717fc..4a91f94a3 100644 --- a/regolith/builders/grantreportbuilder.py +++ b/regolith/builders/grantreportbuilder.py @@ -25,7 +25,7 @@ class GrantReportBuilder(LatexBuilderBase): """Build a proposal review from database entries""" - btype = "grantreport" + btype = "grant-report" needed_dbs = ['presentations', 'projecta', 'people', 'grants', 'institutions', 'expenses', 'citations', 'contacts'] diff --git a/tests/outputs/grant-report/SymPy-1.1_report_2017-04-01_2018-03-31.txt b/tests/outputs/grant-report/SymPy-1.1_report_2017-04-01_2018-03-31.txt new file mode 100644 index 000000000..7906afc01 --- /dev/null +++ b/tests/outputs/grant-report/SymPy-1.1_report_2017-04-01_2018-03-31.txt @@ -0,0 +1,124 @@ +NSF 2017-04-01-2018-03-31 Annual Report + +Accomplishments +------------------------------------------------------------------------------ +* What are the major goals of the project? +------------------------------------------------------------------------------ +In real-world applications, materials are rarely perfect crystals and their properties +depend sensitively on defects, nanoscale structures, interfaces, surfaces and multi-scale +heterogeneities. A major challenge is to gain a greater understanding of how such +"imperfect" materials operate, including on different length and time-scales. In situations +as complicated as this it is essential to validate theories against experiment, and vice versa. +A more tightly coupled partnership between experiment and theory is needed, having its roots +in information theory: the models need to capture all the physics of the problem become more +complicated, while at the same time the information content of experimental data is reduced, +due to lower resolution from finite size effects, defects, the presence of multiple components +with overlapping problems, which yield unreliable and non-unique solutions, a bottleneck to +predictive materials discovery. We will develop novel mathematical approaches to address this +problem. We will study as a test case the nanostructure inverse problem (NIP), a well defined +but generally ill-posed materials inverse problem; however, the methods that we develop will +have much broader applicability in the world of materials discovery. + +Goal 1: Develop databases of nanostructure data from model systems +Goal 2: Develop data analytic and stochastic optimization methodologies for robust +nanostructure solutions +Goal 3: Develop software infrastructure for nanostructure modeling that use the databases +and the new methodologies for nanostructure solution +Goal 4: Apply this to real scientific problems + +------------------------------------------------------------------------------ +* What was accomplished under these goals (you must provide information for +at least one of the 4 categories below)? +------------------------------------------------------------------------------ +- Major Activities (currently worked on projecta): +PDF in the cloud (PDFitc): Development of a web-based service for determining +structures from measured PDFs given known structures in structural databases +xpdTools, xpdAcq, xpdAn, xpdView: Software tools for streaming data analysis +and visualization of diffraction data from the XPD diffractometer at NSLS-II +synchrotron. The tools can also be used to analyze data from other diffraction +beamlines. +------------------------------------------------------------------------------ + sb_firstprojectum| First Projectum| ascopatz + My first projectum + + lead presents background reading and initial project plan + meeting | proposed + + develop a detailed plan with dates + mergedpr | proposed + - Specific Objectives: +PDF in the cloud (PDFitc): Development of a web-based service for determining +structures from measured PDFs given known structures in structural databases + +- Significant Results (finished projecta):Key outcomes or Other achievements: +------------------------------------------------------------------------------ +* What opportunities for training and professional development has the project provided? +------------------------------------------------------------------------------}} + +------------------------------------------------------------------------------ +* How have the results been disseminated to communities of interest? +------------------------------------------------------------------------------ +1. Publications +2. Software releases and deployment of software packages on conda-forge and pypi for ease of installation +3. Presentations at conferences and seminars + +------------------------------------------------------------------------------ +* What do you plan to do during the next reporting period to accomplish the goals? +------------------------------------------------------------------------------ +############################################################# +## ## +## ## +## FILL THIS PART IN !!! FILL THIS PART IN !!! ## +## ## +## ## +############################################################# + +------------------------------------------------------------------------------ +Products +------------------------------------------------------------------------------} + +------------------------------------------------------------------------------ +Participants/Organizations +------------------------------------------------------------------------------ +What individuals have worked on the project? + +Name, Most Senior Project Role, Nearest Person Month Worked +} + +What International collaborations have there been? + +What other organizations have been involved as partners?/What other collaborators or contacts have been involved?} + +------------------------------------------------------------------------------ +Impacts +------------------------------------------------------------------------------ +What is the impact on the development of the principal discipline(s) of the project? + +What is the impact on other disciplines? + +What is the impact on the development of human resources? + +What is the impact on physical resources that form infrastructure? + +What is the impact on institutional resources that form infrastructure? + +What is the impact on information resources that form infrastructure? + +What is the impact on technology transfer? + +What is the impact on society beyond science and technology? + +------------------------------------------------------------------------------ +Changes/Problems +------------------------------------------------------------------------------ +Changes in approach and reason for change + +Actual or Anticipated problems or delays and actions or plans to resolve them + +Changes that have a significant impact on expenditures + +Significant changes in use or care of human subjects + +Significant changes in use or care of vertebrate animals + +Significant changes in use or care of biohazards \ No newline at end of file diff --git a/tests/test_builders.py b/tests/test_builders.py index c34981f32..d02f52d24 100644 --- a/tests/test_builders.py +++ b/tests/test_builders.py @@ -23,8 +23,7 @@ "preslist", "publist", "recent-collabs", - "beamplan", -# "grantreport", + "grant-report", "resume", "review-man", # reading-lists need tests for this @@ -106,7 +105,7 @@ def test_builder(bm, db_src, make_db, make_mongodb, monkeypatch): elif bm == "annual-activity": subprocess.run(["regolith", "build", bm, "--no-pdf", "--people", "sbillinge", "--from", "2017-04-01"], check=True, cwd=repo) - elif bm == "grantreport": + elif bm == "grant-report": main(["build", bm, "--no-pdf", "--grant", "SymPy-1.1", "--from", "2017-04-01", "--to", "2018-03-31"]) elif bm == "publist": @@ -231,9 +230,9 @@ def mockreturn(*args, **kwargs): elif bm == "annual-activity": main(["build", bm, "--no-pdf", "--people", "sbillinge", "--from", "2017-04-01"]) - elif bm == "grantreport": + elif bm == "grant-report": main(["build", bm, "--no-pdf", "--grant", "SymPy-1.1", - "--to", "2018-03-31"]) + "--from", "2017-04-01", "--to", "2018-03-31"]) elif bm == "publist": main(["build", bm, "--no-pdf"]) main(["build", bm, "--no-pdf",