You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To control lolenc from iquip, functionality must be added to recognize and work with both C and C++ files.
How the feature is implemented
In explore.py, a code block was added to the _addFile method to recognize .cpp and .c files. The code ensures that these files are included in the list of files processed by the method, alongside .py files.
@pyqtSlot(list, object)def_addFile(self, experimentList: List[str], widget: Union[QTreeWidget, QTreeWidgetItem]):
"""Adds the files into the children of the widget. A file or directory which starts with "_" will be ignored, e.g. __pycache__/. Args: experimentList: The list of files under the widget path. widget: See _FileFinderThread class. """forexperimentFileinexperimentList:
ifexperimentFile.startswith("_"):
continueifexperimentFile.endswith("/"):
experimentFileItem=QTreeWidgetItem(widget)
experimentFileItem.setText(0, experimentFile[:-1])
# Make an empty item for indicating that it is a directory.QTreeWidgetItem(experimentFileItem)
elif (
experimentFile.endswith(".cpp") orexperimentFile.endswith(".c") orexperimentFile.endswith(".py")
):
experimentFileItem=QTreeWidgetItem(widget)
experimentFileItem.setText(0, experimentFile)
The text was updated successfully, but these errors were encountered:
Feature you want to implement
To control lolenc from iquip, functionality must be added to recognize and work with both C and C++ files.
How the feature is implemented
In
explore.py
, a code block was added to the_addFile
method to recognize.cpp
and.c
files. The code ensures that these files are included in the list of files processed by the method, alongside.py
files.The text was updated successfully, but these errors were encountered: