Run openseespy in jupyter designsafe-ci

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

Moderators: silvia, selimgunay, Moderators

Post Reply
mohammmad
Posts: 45
Joined: Tue Aug 21, 2018 4:10 am
Contact:

Run openseespy in jupyter designsafe-ci

Post by mohammmad » Sat Apr 03, 2021 7:35 pm

Hello
I want to run my openseespy inputs file in designsafe-ci's jupyter.
The following picture shows my folders and main file:
https://i.postimg.cc/W3KTHXBc/desinfsafe.png
https://postimg.cc/5YwhHq9s

I got an error. But, there is a "asl" folder. Why Jupiter cannot read the TXT file in asl folder???



FileNotFoundError Traceback (most recent call last)
<ipython-input-3-c3814e92362f> in <module>
649 import ReadRecord
650 ## Permform the conversion from SMD record to OpenSees record
--> 651 dt, nPts = ReadRecord.ReadRecord("asl/"+record+'.at2', "far/"+record+'.dat')
652 ##print(dt, nPts)
653 TmaxAnalysis= dt * nPts

~/MyData/20str/ReadRecord.py in ReadRecord(inFilename, outFilename)
37
38 # Open the input file and catch the error if it can't be read
---> 39 inFileID = open(inFilename, 'r')
40
41 # Open output file for writing

FileNotFoundError: [Errno 2] No such file or directory: 'asl/1.at2'

mohammmad
Posts: 45
Joined: Tue Aug 21, 2018 4:10 am
Contact:

Re: Run openseespy in jupyter designsafe-ci

Post by mohammmad » Sun Apr 04, 2021 5:58 am

Hello, every one,
Problem solved. "a" and "t" should be a capital letter (case-sensitive): 'asl/1.AT2'

FileNotFoundError: [Errno 2] No such file or directory: 'asl/1.at2'

Post Reply