Skip to content

Commit

Permalink
added is_valid_* predicate functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rvianello committed Jul 26, 2015
1 parent 40c6413 commit fd6e689
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django_rdkit/models/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def __init__(self, *args, **kwargs):
('mol_inchi', models.TextField),
('mol_inchikey', models.TextField),
('mol_formula', models.TextField),
('is_valid_smiles', models.BooleanField),
('is_valid_ctab', models.BooleanField),
('is_valid_smarts', models.BooleanField),
('is_valid_mol_pkl', models.BooleanField),
]:
_F = type(str(function.upper()), (_Func,),
{ 'function': function, 'default_output_field': fieldkls(),})
Expand Down

0 comments on commit fd6e689

Please sign in to comment.