-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from C-Accel-CRIPT/feat/rcbc
feat(typescript): add rcbc
- Loading branch information
Showing
23 changed files
with
1,683 additions
and
119 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
{ | ||
"name": "cript-typescript", | ||
"version": "1.0.0", | ||
"description": "Set of typescript code to convert raw data (*.csv, *.ts) to CRIPT *.json format", | ||
"description": "Set of typescript code to convert raw data (*.xlsx, *.csv, *.ts) to CRIPT *.json format", | ||
"main": "index.js", | ||
"scripts": { | ||
"afrl": "npx ts-node ./src/afrl/index.ts", | ||
"rcbc": "npx ts-node ./src/rcbc/index.ts", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "npx tsc", | ||
"afrl": "npx ts-node ./src/afrl", | ||
"bcdb": "npx ts-node ./src/bcdb", | ||
"rcbc": "npx ts-node ./src/rcbc", | ||
"test": "bash ./test.sh" | ||
}, | ||
"author": "Bérenger Dalle-Cort, CRIPT, MIT", | ||
"license": "MIT", | ||
"dependencies": { | ||
"csvtojson": "^2.0.10", | ||
"jsonstream-ts": "^1.3.6", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.3" | ||
"tsconfig-paths": "^4.2.0", | ||
"typescript": "^5.0.3", | ||
"xlsx": "^0.18.5" | ||
}, | ||
"devDependencies": { | ||
"tsconfig-paths": "^4.2.0" | ||
"@types/node": "^18.15.12" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# RCBC | ||
|
||
This script export to CRIPT JSON a statically | ||
The JSON is produced by strigifying the main object (project) following a set of rules (cf ../utilities/cript-json.ts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ICollection } from "@cript"; | ||
import { default_notes } from "./shared"; | ||
import * as experiments from "./experiments"; | ||
|
||
export const collection: ICollection = { | ||
name: "Olsen et al. PPV-b-PI", | ||
notes: default_notes, | ||
inventory: [], | ||
experiment: [...Object.values(experiments)], | ||
node: ['Collection'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { IComputation } from "@cript"; | ||
import * as datasets from "./datasets"; | ||
|
||
export const analysis_PPVbPI_42 = { | ||
name: '1/T Analysis PPV-b-PI-42', | ||
node: ['Computation'], | ||
input_data: [ datasets.saxs_ppvbpi_42] | ||
} as IComputation; | ||
|
||
export const peak_phase_id_PPVbPI_42 = { | ||
name: 'Peak Phase ID PPV-b-PI-42', | ||
node: ['Computation'], | ||
input_data: [ datasets.saxs_ppvbpi_42] | ||
} as IComputation; | ||
|
||
export const analysis_PPVbPI_59 = { | ||
name: '1/T Analysis PPV-b-PI-59', | ||
node: ['Computation'], | ||
input_data: [ datasets.saxs_ppvbpi_59] | ||
} as IComputation; | ||
|
||
export const peak_phase_id_PPVbPI_59 = { | ||
name: 'Peak Phase ID PPV-b-PI-59', | ||
node: ['Computation'], | ||
input_data: [ datasets.saxs_ppvbpi_59] | ||
} as IComputation; | ||
|
||
export const analysis_PPVbPI_72 = { | ||
name: '1/T Analysis PPV-b-PI-72', | ||
node: ['Computation'], | ||
input_data: [ datasets.saxs_ppvbpi_72] | ||
} as IComputation; | ||
|
||
export const peak_phase_id_PPVbPI_72 = { | ||
name: 'Peak Phase ID PPV-b-PI-72', | ||
node: ['Computation'], | ||
input_data: [ datasets.saxs_ppvbpi_72] | ||
} as IComputation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { IData } from "@cript"; | ||
|
||
export const nmr_diether: IData = { | ||
name: "NMR diether", | ||
node: ["Data"], | ||
}; | ||
|
||
export const nmr_aldehyde: IData = { | ||
name: "NMR aldehyde", | ||
node: ["Data"], | ||
}; | ||
|
||
export const gpc_ppv: IData = { | ||
name: "GPC PPV", | ||
node: ["Data"], | ||
}; | ||
|
||
export const density_column_ppv: IData = { | ||
name: "Density Column PPV", | ||
node: ["Data"], | ||
}; | ||
|
||
export const dsc_ppv: IData = { | ||
name: "DSC PPV", | ||
node: ["Data"], | ||
}; | ||
|
||
export const nmr_ppv: IData = { | ||
name: "NMR PPV", | ||
node: ["Data"], | ||
}; | ||
|
||
export const nmr_imine: IData = { | ||
name: "NMR imine", | ||
node: ["Data"], | ||
}; | ||
|
||
export const pom_ppv: IData = { | ||
name: "POM PPV", | ||
node: ["Data"], | ||
}; | ||
|
||
export const gpc_pi_synth_42: IData = { | ||
name: "GPC PI-42", | ||
node: ["Data"] | ||
} | ||
|
||
export const gpc_pi_synth_59: IData = { | ||
name: "GPC PI-59", | ||
node: ["Data"] | ||
} | ||
|
||
export const gpc_pi_synth_72: IData = { | ||
name: "GPC PI-72", | ||
node: ["Data"] | ||
} | ||
|
||
export const gpc_pi_synth_89: IData = { | ||
name: "GPC PI-89", | ||
node: ["Data"] | ||
} | ||
|
||
export const saxs_ppvbpi_42: IData = { | ||
name: "SAXS PPV-b-PI-42", | ||
node: ["Data"] | ||
} | ||
|
||
export const saxs_ppvbpi_59: IData = { | ||
name: "SAXS PPV-b-PI-59", | ||
node: ["Data"] | ||
} | ||
|
||
export const saxs_ppvbpi_72: IData = { | ||
name: "SAXS PPV-b-PI-72", | ||
node: ["Data"] | ||
} | ||
|
||
export const saxs_ppvbpi_89: IData = { | ||
name: "SAXS PPV-b-PI-89", | ||
node: ["Data"] | ||
} |
Oops, something went wrong.