Aviary icon indicating copy to clipboard operation
Aviary copied to clipboard

Aviary cannot properly resolve example model filenames

Open jkirk5 opened this issue 1 year ago • 3 comments

Description

Aviary can't automatically find the files in our example models, partially due to the fact that the filenames of the examples themselves and the folder they are in have different names. When the user asks for a specific example, if they use the filename then the folder can't resolve, and if they ask for the folder name, then Aviary attempts to load the folder itself as the file, which causes an error.

Example

in CMD: aviary run_mission small_single_aisle

PermissionError: [Errno 13] Permission denied: 'C:\Users\jkirk5\Documents\Python\Aviary\aviary\models\small_single_aisle'

Aviary Version

0.9.4-dev

Relevant environment information

No response

jkirk5 avatar Dec 16 '24 22:12 jkirk5

small_single_aisle is a folder name. That's why you get Permission denied error. You need to use a .csv file name instead. For example, aviary run_mission small_single_aisle_GwGm.csv. In this case, there is no error.

xjjiang avatar Dec 31 '24 19:12 xjjiang

small_single_aisle is a folder name. That's why you get Permission denied error. You need to use a .csv file name instead. For example, aviary run_mission small_single_aisle_GwGm.csv. In this case, there is no error.

I've tried that as well and it did not work either, gives me a similar error. I reran it today to double check and got the same results. This was on a windows machine.

jkirk5 avatar Feb 24 '25 17:02 jkirk5

This command aviary run_mission small_single_aisle is not supposed to work because it is a folder name, not a .csv file name.

The command aviary run_mission small_single_aisle_GASP.csv works for me on Linux. My Aviary installation on Windows do not run at all. So, I am not able to test your error.

xjjiang avatar Mar 03 '25 21:03 xjjiang