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

apply constrains onto structure in fitting.py #12

Open
dragonyanglong opened this issue Apr 8, 2018 · 1 comment
Open

apply constrains onto structure in fitting.py #12

dragonyanglong opened this issue Apr 8, 2018 · 1 comment

Comments

@dragonyanglong
Copy link
Owner

For pdffit2:
'''
for key, var in struc.constraints.items():
key_ascii = key.encode('ascii')
formula_ascii = var.formula.encode('ascii')
self.server.constrain(key_ascii, formula_ascii)
'''
where self.server is pdffit2 server.

Make it working for CMI as well.

@dragonyanglong
Copy link
Owner Author

image

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