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

remove 'tests' in base path in main function #1229

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions ARGO/oceancurrent/oceancurrent_file_server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
2. Elements in FILE_PATH_CONFIG is formatted as key-value pairs:
- key: string, the product name.
- value: dict, the root paths (file forlder name) of the products and the subproducts.
3. The rootpath is a list of strings, which are the corresponding file folder name of each product.
4. The subproduct is a list of strings, which are the corresponding file folder name of each subproduct.
3. The rootpath is a list of strings, which are the corresponding path (file folder name) of each product.
4. The subproduct is a list of strings, which are the corresponding path (file folder name) of each subproduct.

"""
FILE_PATH_CONFIG = {
Expand Down Expand Up @@ -273,5 +273,8 @@ def pipeline(self, base_path: str):

if __name__ == '__main__':
file_structure = FileStructureExplorer()
file_structure.pipeline(os.path.join(os.path.dirname(__file__), 'tests'))
try:
file_structure.pipeline(os.path.join(os.path.dirname(__file__)))
except Exception as e:
logger.error(f"Failed to explore file system structure: {e}")
logger.info("File structure exploration completed.")
Loading