Skip to content

Commit

Permalink
pacman.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Apr 29, 2021
1 parent 62fe085 commit 3c43c2e
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 344 deletions.
41 changes: 41 additions & 0 deletions pacman/config_setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright (c) 2017-2019 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import os
from spinn_utilities.config_holder import (
add_default_cfg, clear_cfg_files)
from spinn_machine.config_setup import add_spinn_machine_cfg

BASE_CONFIG_FILE = "pacman.cfg"


def reset_configs():
"""
Resets the configs so only the local default config is included.
.. note::
This file should only be called from PACMAN/unittests
"""
clear_cfg_files()
add_pacman_cfg()


def add_pacman_cfg():
"""
Add the local cfg and all dependent cfg files.
"""
add_spinn_machine_cfg() # This add its dependencies too
add_default_cfg(os.path.join(os.path.dirname(__file__), BASE_CONFIG_FILE))
4 changes: 4 additions & 0 deletions pacman/pacman.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Adds or overwrites values in /home/brenninc/spinnaker/PACMAN/pacman.cfg
# Which in turn adds or overwrites values in SpiNNUtils/spinn_utilities/spinn_utilities.cfg

# This is a place holder for any future PACMAN level cfg settings
310 changes: 0 additions & 310 deletions pacman/spinnaker.cfg

This file was deleted.

34 changes: 0 additions & 34 deletions pacman/spinnaker.cfg.template

This file was deleted.

Loading

0 comments on commit 3c43c2e

Please sign in to comment.