Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a test ouptput file #1050

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion regolith/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"formalletter": FormalLetterBuilder,
"grade": GradeReportBuilder,
"grades": GradeReportBuilder,
"grantreport": GrantReportBuilder,
"grant-report": GrantReportBuilder,
"html": HtmlBuilder,
"internalhtml": InternalHtmlBuilder,
"postdocad": PostdocadBuilder,
Expand Down
2 changes: 1 addition & 1 deletion regolith/builders/grantreportbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
124 changes: 124 additions & 0 deletions tests/outputs/grant-report/SymPy-1.1_report_2017-04-01_2018-03-31.txt
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions tests/test_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"preslist",
"publist",
"recent-collabs",
"beamplan",
# "grantreport",
"grant-report",
"resume",
"review-man",
# reading-lists need tests for this
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -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",
Expand Down