Skip to content

Commit

Permalink
model annotation with columns
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelduranfrigola committed Feb 24, 2025
1 parent e83cb62 commit fb785d5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion input.csv

This file was deleted.

2 changes: 1 addition & 1 deletion model/framework/code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ def molweight(smiles_list):
# write output in a .csv file
with open(output_file, "w") as f:
writer = csv.writer(f)
writer.writerow(["value"]) # header
writer.writerow(["mol_weight"]) # header
for o in outputs:
writer.writerow([o])
2 changes: 2 additions & 0 deletions model/framework/columns/run_columns.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name,type,direction,description
mol_weight,float,intermediate,The calculated molecular weight of the molecule in g/mol
2 changes: 0 additions & 2 deletions model/framework/examples/input.csv

This file was deleted.

2 changes: 0 additions & 2 deletions model/framework/examples/output.csv

This file was deleted.

4 changes: 4 additions & 0 deletions model/framework/examples/run_input.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
smiles
Nc1cccc(c1)-c1cc2c(Oc3cccc(O)c3)ncnc2[nH]1
C1=CN=CC=C1C(=O)NN
CC(CN1C=NC2=C(N=CN=C21)N)OCP(=O)(O)O
4 changes: 4 additions & 0 deletions model/framework/examples/run_output.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mol_weight
318.336
137.14199999999997
287.21599999999995

0 comments on commit fb785d5

Please sign in to comment.