Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error instantiating CAG (Python v3.9.7) #4

Open
llzhu opened this issue May 23, 2023 · 0 comments
Open

Error instantiating CAG (Python v3.9.7) #4

llzhu opened this issue May 23, 2023 · 0 comments

Comments

@llzhu
Copy link

llzhu commented May 23, 2023

With the following code:
smiles_list = ['CN(C)CCN(C)C', 'NCCNCCN', 'CC1CNCC(C)N1']
with open(r'C:\Users\lzhu\Documents\AppData\CAG\descriptor_white_list_1.json', 'r') as f:
whitelist = json.load(f)

cag = CAG(smiles_list,
whitelist,
ph_values=[6, 7, 8],
command_dict={},
logfile=r'C:\Users\lzhu\Documents\AppData\CAG\cxcalc.log'
)

I got:
121 for ph_desc in self.whitelist['ph_descriptors']:
--> 122 self._add_command(ph_desc, self.ph_descriptors_dict,
123 postfix='', ph=3.0)
125 for ph in self.ph_values:
...
165 'Found {}'.format(descriptor, type(cmd)))
167 if ph:
168 self._command_dict[descriptor_key] += ['-H', str(ph)]

Exception: Command for descriptor avgpol should be listFound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant