pyCycle icon indicating copy to clipboard operation
pyCycle copied to clipboard

Variable 'DESIGN.burner.dPqP' not found

Open willise31 opened this issue 5 months ago • 3 comments

When I try to run the simple_turbojet.py example, I get this error, and it says did you mean one of the following: ['DESIGN.burner.Fl_I:FAR', 'DESIGN.burner.Fl_I:tot:P', 'DESIGN.burner.Fl_O:tot:P', 'DESIGN.burner.MN', 'DESIGN.burner.Wfuel', 'DESIGN.burner.Wout', 'DESIGN.burner.out_stat.Ps', 'DESIGN.nozz.dPqP', 'burner.dPqP']." It seems like the calculations work because if I comment out the print statements for the burner and the nozzle, the code runs all the way through, but for some reason the print_burner and print_nozzle functions are causing trouble. I am using version 4.3.0 and I used pip3 install -e '.[all]' to install om-pycycle. Any help would be appreciated, thanks!

willise31 avatar Jun 30 '25 16:06 willise31

Did you pull the latest changes from pycyle. This bug was solved in PR #103

arushkumarsingh avatar Jun 30 '25 16:06 arushkumarsingh

It seems to be working now. There seems to be a problem with pip3 install -e '.[all]' when on one of the tags instead of on the master branch. I deleted the git repo, recloned it, and used pip3 install -e '.[all]' while still on the master branch, and ran the simple_turbojet.py and it worked. When I switch to tag 4.3.0, I get the same error. Just something to be aware of if not already. Thank you for the help

willise31 avatar Jun 30 '25 17:06 willise31

I think we will need to increment the pycycle version to 4.3.1 and then upload it to pypi.

Kenneth-T-Moore avatar Jun 30 '25 20:06 Kenneth-T-Moore