Skip to content

Commit

Permalink
reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Sep 15, 2024
1 parent cb2d075 commit a76aff7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pybamm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def generate():
if is_running_tests():
return

Check warning on line 47 in src/pybamm/config.py

View check run for this annotation

Codecov / codecov/patch

src/pybamm/config.py#L46-L47

Added lines #L46 - L47 were not covered by tests

# Check if the config file already exists
if read() is not None:
return

Check warning on line 51 in src/pybamm/config.py

View check run for this annotation

Codecov / codecov/patch

src/pybamm/config.py#L50-L51

Added lines #L50 - L51 were not covered by tests

config_file = _get_config_file()

Check warning on line 53 in src/pybamm/config.py

View check run for this annotation

Codecov / codecov/patch

src/pybamm/config.py#L53

Added line #L53 was not covered by tests

# Create the directory if it doesn't exist
config_file.parent.mkdir(parents=True, exist_ok=True)

Check warning on line 56 in src/pybamm/config.py

View check run for this annotation

Codecov / codecov/patch

src/pybamm/config.py#L56

Added line #L56 was not covered by tests

# Check if the config file already exists
if read() is not None:
return

# Generate a UUID
unique_id = uuid.uuid4()

Check warning on line 59 in src/pybamm/config.py

View check run for this annotation

Codecov / codecov/patch

src/pybamm/config.py#L59

Added line #L59 was not covered by tests

Expand Down

0 comments on commit a76aff7

Please sign in to comment.