Skip to content

Commit

Permalink
Add AS Major (#589)
Browse files Browse the repository at this point in the history
* Added as major

* Ran prettier, unbroke test

* Added requirement to frontend

* Fixed up frontend

* Fixed slot count error

* Ran req-gen
  • Loading branch information
zachary-kent authored Nov 29, 2021
1 parent b2d2bd2 commit 50ba420
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Array [
"Major-AEM-Management Requirements",
"Major-AEM-Quantitative Methods Elective Requirements",
"Major-AEM-Quantitative Methods Requirements",
"Major-AS-Basic Physical Sciences",
"Major-AS-Computer Science",
"Major-AS-Core",
"Major-AS-Electives",
"Major-AS-Mathematics",
"Major-AS-Statistics",
"Major-ASTRO-Concentration",
"Major-ASTRO-Experimental or Data Analysis Course in Astronomy",
"Major-ASTRO-Introductory Mathematics Sequence",
Expand Down
6 changes: 6 additions & 0 deletions src/requirements/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import humanEcologyRequirements from './colleges/he';
import ilrRequirements from './colleges/il';

import aemRequirements from './majors/aem';
import asRequirements from './majors/as';
import astroRequrements from './majors/astro';
import bioRequirements from './majors/bio';
import bioEngineeringRequirements from './majors/be';
Expand Down Expand Up @@ -115,6 +116,11 @@ const json: RequirementsJson = {
schools: ['AG', 'BU'],
requirements: aemRequirements,
},
AS: {
name: 'Atmospheric Science',
schools: ['AG'],
requirements: asRequirements,
},
ASTRO: {
name: 'Astronomy',
schools: ['AS1', 'AS2'],
Expand Down
93 changes: 93 additions & 0 deletions src/requirements/data/majors/as.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import { CollegeOrMajorRequirement } from '@/requirements/types';
import { includesWithSingleRequirement, includesWithSubRequirements } from '../checkers-common';

const asRequirements: readonly CollegeOrMajorRequirement[] = [
{
name: 'Core',
description: 'EAS 3050, EAS 3410, EAS 3420, EAS 3520, EAS 4470, and EAS 4510',
source:
'https://www.eas.cornell.edu/eas/programs/undergraduate-programs/bs-atmospheric-sciences/major-requirements',
checker: includesWithSubRequirements(
['EAS 3050'],
['EAS 3410'],
['EAS 3420'],
['EAS 3520'],
['EAS 4470'],
['EAS 4510']
),
fulfilledBy: 'courses',
perSlotMinCount: [1, 1, 1, 1, 1, 1],
slotNames: ['EAS 3050', 'EAS 3410', 'EAS 3420', 'EAS 3520', 'EAS 4470', 'EAS 4510'],
},
{
name: 'Electives',
description: 'Choose at least 2 other atmospheric courses',
source:
'https://www.eas.cornell.edu/eas/programs/undergraduate-programs/bs-atmospheric-sciences/major-requirements',
checker: includesWithSingleRequirement(
'EAS 1310',
'EAS 1330',
'EAS 1340',
'EAS 2500',
'EAS 2680',
'EAS 3340',
'EAS 4350',
'EAS 4570',
'EAS 4700',
'EAS 4800',
'EAS 4860',
'EAS 4960',
'EAS 4980'
),
fulfilledBy: 'courses',
perSlotMinCount: [2],
slotNames: ['Course'],
},
{
name: 'Mathematics',
description: 'MATH 1110, MATH 1120, MATH 1920 or MATH 2130, and MATH 2930',
source:
'https://www.eas.cornell.edu/eas/programs/undergraduate-programs/bs-atmospheric-sciences/major-requirements',
checker: includesWithSubRequirements(
['MATH 1110'],
['MATH 1120'],
['MATH 1920', 'MATH 2130'],
['MATH 2930']
),
fulfilledBy: 'courses',
perSlotMinCount: [1, 1, 1, 1],
slotNames: ['MATH 1110', 'MATH 1120', 'MATH 1920 or MATH 2130', 'MATH 2930'],
},
{
name: 'Statistics',
description: 'AEM 2100 or equivalent',
source:
'https://www.eas.cornell.edu/eas/programs/undergraduate-programs/bs-atmospheric-sciences/major-requirements',
checker: includesWithSingleRequirement('AEM 2100'),
fulfilledBy: 'courses',
perSlotMinCount: [1],
slotNames: ['AEM 2100'],
},
{
name: 'Computer Science',
description: 'EAS 2900 or equivalent',
source:
'https://www.eas.cornell.edu/eas/programs/undergraduate-programs/bs-atmospheric-sciences/major-requirements',
checker: includesWithSingleRequirement('EAS 2900'),
fulfilledBy: 'courses',
perSlotMinCount: [1],
slotNames: ['EAS 2900'],
},
{
name: 'Basic Physical Sciences',
description: 'PHYS 2207, PHYS 2208, and CHEM 1560',
source:
'https://www.eas.cornell.edu/eas/programs/undergraduate-programs/bs-atmospheric-sciences/major-requirements',
checker: includesWithSubRequirements(['PHYS 2207'], ['PHYS 2208'], ['CHEM 1560']),
fulfilledBy: 'courses',
perSlotMinCount: [1, 1, 1],
slotNames: ['PHYS 2207', 'PHYS 2208', 'CHEM 1560'],
},
];

export default asRequirements;
173 changes: 173 additions & 0 deletions src/requirements/decorated-requirements.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50ba420

Please sign in to comment.