-
Notifications
You must be signed in to change notification settings - Fork 77
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
AttributeError: 'Variables' object has no attribute 'create_output_dict' #585
Comments
Could you perhaps list out the packages and versions in your environment? |
The versions of the packages are PyMKS-0.4.1 and Sfepy-2022.3+git.e3b638fb. I am working in a conda environment currently. |
I have a Windows OS as well |
@btthorn1, it looks like we haven't tested PyMKS with version 2022.3 of Sfepy. PyMKS works for sure with version 2022.1. Unfortunately, it looks like the Sfepy API has changed between 2022.1 and 2022.3. Try and revert you Sfepy to 2022.1 and you should be good. I filed this as a bug, so hopefully will be fixed reasonably quickly. |
Hi, I have been attempting to run the "Effective Stiffness of Fiber Composite" introductory notebook and I continue to encounter an error when running the below cell:
y_stress = solve_fe(x_data,
elastic_modulus=(1.3, 2.5),
poissons_ratio=(0.42, 0.35),
macro_strain=0.001)['stress'][..., 0].persist()
The error is:
~\anaconda3\lib\site-packages\pymks\fmks\data\elastic_fe.py in get_displacement(vec, shape)
751 """
752 return pipe(
--> 753 vec.create_output_dict()["u"].data,
754 lambda x: np.reshape(x, (tuple(x + 1 for x in shape) + x.shape[-1:])),
755 )
AttributeError: 'Variables' object has no attribute 'create_output_dict'
Any help that can be offered would be much appreciated!
The text was updated successfully, but these errors were encountered: