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

piff_des/tests/run_data_fits.py fails to read psf from config.yaml file #63

Closed
areshernandez opened this issue Sep 6, 2017 · 0 comments
Milestone

Comments

@areshernandez
Copy link
Collaborator

areshernandez commented Sep 6, 2017

run_data_fits.py runs into some trouble when attempting to read the config.yaml file. Specifically, I copied this file from "/nfs/slac/g/ki/ki18/cpd/Projects/piff_des/configs/des_optatmo.yaml" and only changed its name from "des_optatmo.yaml" to "config.yaml." It seems to run into trouble when trying to read the use_gradient boolean. Is "use_gradient" a new feature in config.yaml? If so, is there something in psf.py that needs to be changed to work properly with it?

Traceback (most recent call last):
  File "tests/run_data_fits.py", line 243, in <module>
    run(**kwargs)
  File "tests/run_data_fits.py", line 108, in run
    psf = piff.PSF.process(config['psf'], logger=logger)
  File "/u/ec/aresh/Piff-wavefront/piff/psf.py", line 82, in process
    psf = cls(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'use_gradient'
@cpadavis cpadavis closed this as completed Sep 6, 2017
@rmjarvis rmjarvis added this to the Version 1.0 milestone Feb 26, 2023
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

3 participants