From 415c97b87bd1dda6ca959a19dd92cfceb05248b8 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Thu, 23 Feb 2017 09:53:24 +0000 Subject: [PATCH] Changed config file extension from .cfg into .yaml --- .../YAML/bf_unit/{peripheral.cfg => peripheral.yaml} | 0 .../YAML/fringe_stop/{peripheral.cfg => peripheral.yaml} | 0 .../mms_diag_block_gen/{peripheral.cfg => peripheral.yaml} | 0 .../{peripheral.cfg => peripheral.yaml} | 0 .../mms_dp_bsn_align/{peripheral.cfg => peripheral.yaml} | 0 .../mms_dp_fifo_fill/{peripheral.cfg => peripheral.yaml} | 0 tools/oneclick/prestudy/YAML/peripheral.py | 4 ++-- tools/oneclick/prestudy/YAML/read_yaml.py | 6 +++--- tools/oneclick/prestudy/YAML/{system.cfg => system.yaml} | 0 9 files changed, 5 insertions(+), 5 deletions(-) rename tools/oneclick/prestudy/YAML/bf_unit/{peripheral.cfg => peripheral.yaml} (100%) rename tools/oneclick/prestudy/YAML/fringe_stop/{peripheral.cfg => peripheral.yaml} (100%) rename tools/oneclick/prestudy/YAML/mms_diag_block_gen/{peripheral.cfg => peripheral.yaml} (100%) rename tools/oneclick/prestudy/YAML/mms_diag_data_buffer/{peripheral.cfg => peripheral.yaml} (100%) rename tools/oneclick/prestudy/YAML/mms_dp_bsn_align/{peripheral.cfg => peripheral.yaml} (100%) rename tools/oneclick/prestudy/YAML/mms_dp_fifo_fill/{peripheral.cfg => peripheral.yaml} (100%) rename tools/oneclick/prestudy/YAML/{system.cfg => system.yaml} (100%) diff --git a/tools/oneclick/prestudy/YAML/bf_unit/peripheral.cfg b/tools/oneclick/prestudy/YAML/bf_unit/peripheral.yaml similarity index 100% rename from tools/oneclick/prestudy/YAML/bf_unit/peripheral.cfg rename to tools/oneclick/prestudy/YAML/bf_unit/peripheral.yaml diff --git a/tools/oneclick/prestudy/YAML/fringe_stop/peripheral.cfg b/tools/oneclick/prestudy/YAML/fringe_stop/peripheral.yaml similarity index 100% rename from tools/oneclick/prestudy/YAML/fringe_stop/peripheral.cfg rename to tools/oneclick/prestudy/YAML/fringe_stop/peripheral.yaml diff --git a/tools/oneclick/prestudy/YAML/mms_diag_block_gen/peripheral.cfg b/tools/oneclick/prestudy/YAML/mms_diag_block_gen/peripheral.yaml similarity index 100% rename from tools/oneclick/prestudy/YAML/mms_diag_block_gen/peripheral.cfg rename to tools/oneclick/prestudy/YAML/mms_diag_block_gen/peripheral.yaml diff --git a/tools/oneclick/prestudy/YAML/mms_diag_data_buffer/peripheral.cfg b/tools/oneclick/prestudy/YAML/mms_diag_data_buffer/peripheral.yaml similarity index 100% rename from tools/oneclick/prestudy/YAML/mms_diag_data_buffer/peripheral.cfg rename to tools/oneclick/prestudy/YAML/mms_diag_data_buffer/peripheral.yaml diff --git a/tools/oneclick/prestudy/YAML/mms_dp_bsn_align/peripheral.cfg b/tools/oneclick/prestudy/YAML/mms_dp_bsn_align/peripheral.yaml similarity index 100% rename from tools/oneclick/prestudy/YAML/mms_dp_bsn_align/peripheral.cfg rename to tools/oneclick/prestudy/YAML/mms_dp_bsn_align/peripheral.yaml diff --git a/tools/oneclick/prestudy/YAML/mms_dp_fifo_fill/peripheral.cfg b/tools/oneclick/prestudy/YAML/mms_dp_fifo_fill/peripheral.yaml similarity index 100% rename from tools/oneclick/prestudy/YAML/mms_dp_fifo_fill/peripheral.cfg rename to tools/oneclick/prestudy/YAML/mms_dp_fifo_fill/peripheral.yaml diff --git a/tools/oneclick/prestudy/YAML/peripheral.py b/tools/oneclick/prestudy/YAML/peripheral.py index 9a358fb93b..5948d3ac6f 100644 --- a/tools/oneclick/prestudy/YAML/peripheral.py +++ b/tools/oneclick/prestudy/YAML/peripheral.py @@ -167,7 +167,7 @@ class Peripheral: class PeripheralLibrary: - def __init__(self, rootDir, fileName='peripheral.cfg'): + def __init__(self, rootDir, fileName='peripheral.yaml'): """Store the dictionaries from all fileName files in rootDir.""" self.rootDir = rootDir self.fileName = fileName # all peripheral files have the same fileName @@ -248,7 +248,7 @@ class System(Peripheral): Peripheral.__init__(self, None, 1, None) self.filePathName = filePathName self.rootDir = os.environ['RADIOHDL'] + "/tools/oneclick/prestudy/YAML" - self.peri_lib = PeripheralLibrary( self.rootDir, "peripheral.cfg") + self.peri_lib = PeripheralLibrary( self.rootDir, "peripheral.yaml") self.peripherals = [] if filePathName==None: diff --git a/tools/oneclick/prestudy/YAML/read_yaml.py b/tools/oneclick/prestudy/YAML/read_yaml.py index 6465254fa1..d985ff99c3 100644 --- a/tools/oneclick/prestudy/YAML/read_yaml.py +++ b/tools/oneclick/prestudy/YAML/read_yaml.py @@ -23,13 +23,13 @@ ############################################################################### import peripheral import os -from common import * +import common as cm rootDir = os.environ['RADIOHDL'] + "/tools/oneclick/prestudy/YAML" -#peri_lib = peripheral.PeripheralLibrary( rootDir, "peripheral.cfg") +#peri_lib = peripheral.PeripheralLibrary( rootDir, "peripheral.yaml") -system = peripheral.System( rootDir + "/system.cfg") +system = peripheral.System( rootDir + "/system.yaml") system.display_system() diff --git a/tools/oneclick/prestudy/YAML/system.cfg b/tools/oneclick/prestudy/YAML/system.yaml similarity index 100% rename from tools/oneclick/prestudy/YAML/system.cfg rename to tools/oneclick/prestudy/YAML/system.yaml -- GitLab