diff --git a/.codespellrc b/.codespellrc deleted file mode 100644 index 70e4ccb1..00000000 --- a/.codespellrc +++ /dev/null @@ -1,3 +0,0 @@ -[codespell] -skip = .git,*.pdf,*.svg,deprecated,*.xml,*.mediawiki,*.omn,*.toml,./hedweb/static/css/* -ignore-words-list = covert,hed,assertIn diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml new file mode 100644 index 00000000..b1e98916 --- /dev/null +++ b/.github/workflows/links.yaml @@ -0,0 +1,24 @@ +--- +name: Lychee link checker + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + codespell: + name: Lychee link checker + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1 + with: + # Check all markdown, html and reStructuredText files in repo (default) + args: --base . --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' \ No newline at end of file diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 00000000..2ed7bd0e --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,3 @@ + +(_anchor|-anchor) + diff --git a/docs/requirements.txt b/docs/requirements.txt index 458b6d22..d22b259c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,29 +1,29 @@ -attrs>=21.4.0 -click>=8.1.3 -coverage>=6.3.2 -defusedxml>=0.7.1 -et-xmlfile>=1.1.0 -Flask>=3.0.3 -Flask-WTF>=1.2.1 -inflect>=5.5.2 -itsdangerous>=2.2.0 -jdcal>=1.4.1 -Jinja2>=3.1.2 +alabaster==0.7.16 +Babel==2.15.0 +certifi==2024.7.4 +charset-normalizer==3.3.2 +docutils==0.20.1 +idna==3.7 +imagesize==1.4.1 +Jinja2==3.1.4 +markdown-it-py==3.0.0 MarkupSafe==2.1.5 -myst-parser>=0.17.0 -numpy>=1.20.3 -numpydoc>=1.3.1 -openpyxl>=3.0.9 -pandas>=1.3.5 -portalocker>=2.8.2 -Pygments>=2.12.0 -python-dateutil>=2.8.2 -pytz>=2022.1 -semantic_version>=2.9.0 -six==1.16.0 -Sphinx>=4,<8 -SphinxExtensions>=0.2.0 -sphinx_rtd_theme>=1.0.0 -Werkzeug>=2.1.2 -WTForms>=3.0.1 -xlrd>=2.0.1 +mdit-py-plugins==0.4.1 +mdurl==0.1.2 +myst-parser==3.0.1 +packaging==24.1 +Pygments==2.18.0 +PyYAML==6.0.1 +requests==2.32.3 +snowballstemmer==2.2.0 +Sphinx==7.4.7 +sphinx-rtd-theme==2.0.0 +sphinxcontrib-applehelp==1.0.8 +sphinxcontrib-devhelp==1.0.6 +sphinxcontrib-htmlhelp==2.0.6 +sphinxcontrib-jquery==4.1 +sphinxcontrib-jsmath==1.0.1 +sphinxcontrib-qthelp==1.0.8 +sphinxcontrib-serializinghtml==1.1.10 +tomli==2.0.1 +urllib3==2.2.2 diff --git a/hedweb/event_operations.py b/hedweb/event_operations.py index 98662a83..6989e6d5 100644 --- a/hedweb/event_operations.py +++ b/hedweb/event_operations.py @@ -123,17 +123,19 @@ def generate_sidecar(self): extension='.txt', append_datetime=True), bc.MSG_CATEGORY: 'warning', bc.MSG: f"Cannot generate sidecar because skipped and value column names overlap."} - - columns_info = TabularSummary.get_columns_info(self.events.dataframe) - hed_dict = {} - for column_name in columns_info: - if column_name in self.columns_skip: - continue - elif column_name in self.columns_value: - hed_dict[column_name] = generate_sidecar_entry(column_name) - else: - hed_dict[column_name] = generate_sidecar_entry(column_name, - column_values=list(columns_info[column_name].keys())) + tab_sum = TabularSummary(value_cols=self.columns_value, skip_cols=self.columns_skip) + tab_sum.update(self.events.dataframe) + hed_dict = tab_sum.extract_sidecar_template() + # columns_info = TabularSummary.get_columns_info(self.events.dataframe) + # hed_dict = {} + # for column_name in columns_info: + # if column_name in self.columns_skip: + # continue + # elif column_name in self.columns_value: + # hed_dict[column_name] = generate_sidecar_entry(column_name) + # else: + # hed_dict[column_name] = generate_sidecar_entry(column_name, + # column_values=list(columns_info[column_name].keys())) file_name = generate_filename(display_name, name_suffix='_generated', extension='.json', append_datetime=True) return {bc.COMMAND: bc.COMMAND_GENERATE_SIDECAR, bc.COMMAND_TARGET: 'events', diff --git a/hedweb/process_service.py b/hedweb/process_service.py index c7812205..5d764b3c 100644 --- a/hedweb/process_service.py +++ b/hedweb/process_service.py @@ -57,6 +57,7 @@ def set_parameters(arguments, params): arguments[bc.REQUEST_TYPE] = bc.FROM_SERVICE arguments[bc.COLUMNS_CATEGORICAL] = ProcessServices.get_list(bc.COLUMNS_CATEGORICAL, params) arguments[bc.COLUMNS_VALUE] = ProcessServices.get_list(bc.COLUMNS_VALUE, params) + arguments[bc.COLUMNS_SKIP] = ProcessServices.get_list(bc.COLUMNS_SKIP, params) arguments[bc.TAG_COLUMNS] = ProcessServices.get_list(bc.TAG_COLUMNS, params) arguments[bc.HAS_COLUMN_NAMES] = True diff --git a/hedweb/templates/hed-tools-home.html b/hedweb/templates/hed-tools-home.html index 0ffe1f31..b5a35446 100644 --- a/hedweb/templates/hed-tools-home.html +++ b/hedweb/templates/hed-tools-home.html @@ -18,13 +18,14 @@

HED online tools summary

The following table summarizes the available online tools. The tools are organized around the types of data that the tools handle. The Actions refer to the types of actions that can be performed on the data through the online tools. Each action is linked to its corresponding documentation to provide additional - information.

+ information. NEW: an experimental CTagger + online annotation tool is now available.

- + @@ -112,8 +113,8 @@

HED online tools summary

are used by schema developers creating the HED vocabularies and are not of interest to annotators or analysts.

- More detailed help on using these online tools is available at: - HED online tools + More detailed help on using these online tools is available in the + HED online tools documentation.

HED REST services

@@ -121,8 +122,8 @@

HED REST services

The HED online tools are also available as callable web services. More detailed help on calling these services is available at: HED RESTful services - Downloadable examples of calling these services from a MATLAB program can be found at: - + Downloadable examples of calling these services from a MATLAB program can be found in the + GitHub MATLAB web service examples.

diff --git a/hedweb/templates/layout.html b/hedweb/templates/layout.html index 01fc004e..1223dbc7 100644 --- a/hedweb/templates/layout.html +++ b/hedweb/templates/layout.html @@ -63,6 +63,7 @@ aria-haspopup="true" aria-expanded="false">Quick links
Data type
(linked to form>
Action
(linked to docs)
Description
Data type
(form link)
Action
(docs link)
Description
Events