regolith.builders package
Submodules
regolith.builders.activitylogbuilder module
Builder for CVs.
- class regolith.builders.activitylogbuilder.ActivitylogBuilder(rc)[source]
Bases:
LatexBuilderBase
Build CV from database entries
- btype = 'annual-activity'
- needed_colls = ['groups', 'people', 'grants', 'proposals', 'institutions', 'projects', 'presentations', 'patents', 'citations', 'proposalReviews', 'refereeReports', 'recletts', 'contacts']
regolith.builders.appraisalbuilder module
Builder for CVs.
- class regolith.builders.appraisalbuilder.AppraisalBuilder(rc)[source]
Bases:
LatexBuilderBase
Build CV from database entries
- btype = 'annual-activity'
- needed_colls = ['groups', 'people', 'grants', 'proposals', 'institutions', 'projects', 'presentations', 'patents', 'citations']
regolith.builders.basebuilder module
Builder Base Classes
- class regolith.builders.basebuilder.BuilderBase(rc)[source]
Bases:
object
Base class for builders
- class regolith.builders.basebuilder.LatexBuilderBase(rc)[source]
Bases:
BuilderBase
Base class for Latex builders
regolith.builders.beamplanbuilder module
Builder for the planning of beamtimes.
The plan contains a summary of the information for the experiments in during a beamtime and details about how to carry out the experiments.
- class regolith.builders.beamplanbuilder.BeamPlanBuilder(rc)[source]
Bases:
LatexBuilderBase
Build a file of experiment plans for the beamtime from database entries.
The report is in the ‘.tex’ file. The template of the file is in the ‘templates/beamplan.tex’. The data will be grouped according to beamtime. Each beamtime will generate a file of the plans. If ‘beamtime’ in ‘rc’ are not None, only plans for those beamtime will be generated.
- btype = 'beamplan'
- needed_colls = ['beamplan', 'beamtime']
regolith.builders.coabuilder module
Builder for Recent Collaborators.
For the specified person it returns the name and institution of all graduate student and post-doc advisors, all graduate student advisees, all post-doc advisees in the past 60 monts and all coauthors in the past 48 months.
- class regolith.builders.coabuilder.RecentCollaboratorsBuilder(rc)[source]
Bases:
BuilderBase
Build recent collaborators from database entries
- btype = 'recent-collabs'
- static fill_in_tab(ws, ppl, start_row, template_cell_style=None, cols='ABCDE')[source]
Add the information in person, institution pairs into the table 4 in nsf table.
- needed_colls = ['citations', 'people', 'contacts', 'institutions']
- regolith.builders.coabuilder.copy_cell_style(style_ref_cell)[source]
Copy the cell format to a dictionary.
- regolith.builders.coabuilder.filter_since_date(pubs, rc)[source]
Filter the publications after the since_date.
- regolith.builders.coabuilder.find_coeditors(person, rc)[source]
Get the coeditors info of the person. Return (last, first, inst, journal).
- regolith.builders.coabuilder.format_last_first_institution_names(rc, ppl_names, excluded_inst_name=None)[source]
Get the last name, first name and institution name.
- regolith.builders.coabuilder.format_to_nsf(tups, type_str)[source]
Format the 3 tups to 2 tups. (‘type_str’, ‘last, first’, ‘inst’, …).
- regolith.builders.coabuilder.get_advisees_name_inst(coll, advisor, rc)[source]
Get advisor’s advisees. Yield (last name, first name, institutions)
- regolith.builders.coabuilder.get_advisors_name_inst(advisee, rc)[source]
Get the advisee’s advisor. Yield (last name, first name, institution name).
- regolith.builders.coabuilder.get_coauthors_from_pubs(rc, pubs, not_person)[source]
Get co-authors’ names from the publication. Not include the person itself.
- regolith.builders.coabuilder.get_inst_name(person, rc)[source]
Get the name of instituion of the person’s latest employment.
- regolith.builders.coabuilder.get_person_pubs(coll, person)[source]
Get the publications from one person.
- regolith.builders.coabuilder.get_recent_org(person_info)[source]
Get the person’s most recent organization.
regolith.builders.cpbuilder module
Builder for Current and Pending Reports.
- class regolith.builders.cpbuilder.CPBuilder(rc)[source]
Bases:
LatexBuilderBase
Build current and pending report from database entries
- btype = 'current-pending'
- needed_colls = ['groups', 'people', 'grants', 'proposals']
regolith.builders.cvbuilder module
Builder for CVs.
- class regolith.builders.cvbuilder.CVBuilder(rc)[source]
Bases:
LatexBuilderBase
Build CV from database entries
- btype = 'cv'
- needed_colls = ['institutions', 'people', 'grants', 'citations', 'projects', 'proposals', 'presentations']
regolith.builders.figurebuilder module
Builder for Figure including documents.
regolith.builders.formalletterbuilder module
Builder for publication lists.
regolith.builders.gradebuilder module
Builder for Grade Reports.
- class regolith.builders.gradebuilder.GradeReportBuilder(rc)[source]
Bases:
LatexBuilderBase
- static basename(student_id, course_id)[source]
Returns the base file name for a student in a course.
- btype = 'grades'
- makestats(course)[source]
Returns a dictionary of statistics for a course whose keys are the assignments and whose values are a (mean-problem, std-problem, mean-total, std-total) tuple.
- needed_colls = ['grades', 'courses', 'assignments']
regolith.builders.grantreportbuilder module
Builder for Grant Reports
- class regolith.builders.grantreportbuilder.GrantReportBuilder(rc)[source]
Bases:
LatexBuilderBase
Build a proposal review from database entries
- btype = 'grant-report'
- months_on(grant, person, since=datetime.date(1970, 1, 1), before=datetime.date(2024, 10, 24))[source]
- needed_dbs = ['presentations', 'projecta', 'people', 'grants', 'institutions', 'expenses', 'citations', 'contacts']
regolith.builders.htmlbuilder module
Builder for websites.
- class regolith.builders.htmlbuilder.HtmlBuilder(rc)[source]
Bases:
BuilderBase
Build HTML files for website
- btype = 'html'
regolith.builders.internalhtmlbuilder module
Builder for websites.
- class regolith.builders.internalhtmlbuilder.InternalHtmlBuilder(rc)[source]
Bases:
BuilderBase
Build HTML files for website
- btype = 'internalhtml'
- needed_colls = ['people', 'meetings']
regolith.builders.manuscriptreviewbuilder module
Builder for Current and Pending Reports.
- class regolith.builders.manuscriptreviewbuilder.ManRevBuilder(rc)[source]
Bases:
LatexBuilderBase
Build a manuscript review from database entries
- btype = 'review-man'
- needed_colls = ['refereeReports']
regolith.builders.postdocadbuilder module
Builder for Current and Pending Reports.
- class regolith.builders.postdocadbuilder.PostdocadBuilder(rc)[source]
Bases:
LatexBuilderBase
Build current and pending report from database entries
- btype = 'postdocads'
- needed_colls = ['postdocads']
regolith.builders.preslistbuilder module
Builder for Lists of Presentations.
This builder will build a presentation list for each group-member in each group listed in groups.yml. Group members are indicated in the employment and education sections of the individual in people.yml.
There are a number of filtering options, i.e., for presentation-type (invited, colloquium, seminar, poster, contributed_oral) and for whether the invitation was accepted or declined. As of now, these filters can only be updated by editing this file but may appear as command-line options later. It will also get institution and department information from institutions.yml if they are there.
The author list is built from information in people.yml where possible and contacts.yml as a fallback. The author list is built by first performing a fuzzy search for the person in people.yml, followed by a fuzzy search through contacts.yml (if the person was not found in people.yml), but if the person is absent both database files, it will still build but using the string name given in the presentations.yml. The presentations are output in a ./_build directory.
- class regolith.builders.preslistbuilder.PresListBuilder(rc)[source]
Bases:
LatexBuilderBase
Build list of talks and posters (presentations) from database entries
- btype = 'preslist'
- needed_colls = ['groups', 'institutions', 'people', 'grants', 'presentations', 'contacts']
regolith.builders.proposalreviewbuilder module
Builder for Proposal Reivews.
- class regolith.builders.proposalreviewbuilder.PropRevBuilder(rc)[source]
Bases:
LatexBuilderBase
Build a proposal review from database entries
- btype = 'review-prop'
- needed_colls = ['institutions', 'proposalReviews']
regolith.builders.publistbuilder module
Builder for publication lists.
regolith.builders.readinglistsbuilder module
Builder for Reading Lists.
- class regolith.builders.readinglistsbuilder.ReadingListsBuilder(rc)[source]
Bases:
LatexBuilderBase
Build reading lists from database entries
- btype = 'readinglists'
- needed_colls = ['people', 'reading_lists']
regolith.builders.reimbursementbuilder module
Builder for Resumes.
regolith.builders.resumebuilder module
Builder for Resumes.
- class regolith.builders.resumebuilder.ResumeBuilder(rc)[source]
Bases:
LatexBuilderBase
Build resume from database entries
- btype = 'resume'
- needed_colls = ['institutions', 'people', 'grants', 'citations', 'projects', 'proposals']