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

[JOSS]: Issue with path in In Short sections #332

Closed
trevorb1 opened this issue Nov 23, 2024 · 0 comments · Fixed by #338
Closed

[JOSS]: Issue with path in In Short sections #332

trevorb1 opened this issue Nov 23, 2024 · 0 comments · Fixed by #338
Assignees
Milestone

Comments

@trevorb1
Copy link

The first command in the In Short section states to create the input path by:

import adopt_net0 as adopt
import json
from pathlib import Path

input_data_path = "path_to_your_input_data_folder"
adopt.create_optimization_templates(input_data_path)

I believe the input path file should be specified using the pathlib library

input_data_path = Path("path_to_your_input_data_folder")

Else you run into the following error:

with open(input_data_path / "Topology.json", "r") as json_file:
    topology = json.load(json_file)
TypeError: unsupported operand type(s) for /: 'str' and 'str'
@trevorb1 trevorb1 changed the title [JOSSS]: Issue with path in In Short sections [JOSS]: Issue with path in In Short sections Nov 23, 2024
@JeanWi JeanWi added this to the v0.1.5 milestone Nov 23, 2024
@JeanWi JeanWi linked a pull request Nov 23, 2024 that will close this issue
@JeanWi JeanWi self-assigned this Nov 23, 2024
@JeanWi JeanWi closed this as completed Nov 24, 2024
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 a pull request may close this issue.

2 participants