Last active
April 15, 2025 10:06
-
-
Save waltherg/6071963 to your computer and use it in GitHub Desktop.
AUTO 07p run from an iPython Notebook
Hello ! Thanks for the wonderful tip. I try no to work out how to run AUTO from within a Python script. I haven't done it before and it gave me an error on the !echo
. I tried this:
import os
import sys
auto_directory = os.system("echo $AUTO_DIR")
print auto_directory
#auto_directory = !echo $AUTO_DIR
if auto_directory == ['']:
home = os.system("echo $HOME")
auto_directory = home[0]+'/auto/07p/'
sys.path.append(auto_directory+'/python')
else:
sys.path.append(auto_directory[0] + '/python')
import AUTOCommands as ac
import AUTOclui as acl
import interactiveBindings as ib
import runAUTO as ra
But apparently os.system("echo $HOME")
does not give me the HOME directory. Do you know what should I do?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear Dr.Waltherg,
Greetings!
I'm working in AUTO-07p, doing continuation and bifurcation analysis.I've a dynamical system of dimension 8 (8 first order ODEs) and 1 continuation parameter. I successfully performed continuation analysis of stationary points along with stability, but in the bifurcation diagram I could see results only for six states as a function of parameter instead of 8. However, when I try to access the data using the command as shown in the attached image (highlighted), I could see information about all the eight states U(1) ..U(8). I'm not able to understand where is it storing the data and how to access the same. Could you please help me resolve this issue.
If needed i can send .f90, c.*, fort.7,fort.8 and fort.9 to your email. Thanks.
Regards,
Kumara