Importing opensees.pyd into python script

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
QuaziS
Posts: 3
Joined: Wed May 18, 2016 8:57 am
Location: Stamford University Bangladesh

Importing opensees.pyd into python script

Post by QuaziS » Sat Jan 09, 2021 5:54 am

Hi,

Following the instruction video by Prof. Scott, I could compile the openseespy. I am facing the problem of how to import the opensees.pyd into my python script.

Can you please give some guidance?

mhscott
Posts: 872
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Importing opensees.pyd into python script

Post by mhscott » Sat Jan 09, 2021 9:01 am

import opensees as ops

This should work in your script if you have opensees.pyd in your working directory or path.

QuaziS
Posts: 3
Joined: Wed May 18, 2016 8:57 am
Location: Stamford University Bangladesh

Re: Importing opensees.pyd into python script

Post by QuaziS » Sun Jan 10, 2021 4:39 am

Dear Prof. Scott

Thank you very much for your guidance. I could import and successfully run the module.
[Both were in the same directory].

mhscott
Posts: 872
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Importing opensees.pyd into python script

Post by mhscott » Wed Jan 13, 2021 12:19 pm

Thanks for the coffee :)

Post Reply