Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding new from_github vehicle method #86

Merged
merged 28 commits into from
Feb 7, 2024
Merged

Conversation

robinsteuteville
Copy link
Collaborator

No description provided.

@calbaker

This comment was marked as resolved.

}
Ok(vehicle_name_list)
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

Comment on lines +1843 to +1847
let url = &object.url;
let vehicle_name_sublist = fetch_github_list(Some(url.to_owned()))?;
for name in vehicle_name_sublist.iter() {
vehicle_name_list.push(name.to_owned());
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robinsteuteville Would this only look one level deep into directories?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kylecarow I believe it should look as many levels deep into directories as needed, since it calls fetch_github_list recursively within itself, which should mean that each time it comes across a subdirectory within the current directory it is in, it should start the process over again for that subdirectory, which in turn will uncover any subsubdirectories, etc. Does make my brain hurt a bit, so if you see a problem within the recursive logic let me know, I definitely could be thinking about it wrong!

@@ -39,6 +39,9 @@ include_dir = "0.7.3"
itertools = "0.12.0"
ndarray-stats = "0.5.1"
tempfile = "3.8.1"
url = "2.5.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kylecarow, could you feature gate this stuff?

@kylecarow kylecarow marked this pull request as ready for review February 7, 2024 17:53
@kylecarow kylecarow merged commit 3bb1a61 into fastsim-2 Feb 7, 2024
3 checks passed
@kylecarow kylecarow deleted the vehicle-fetching-caching branch February 7, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants