Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
VisLab committed Jul 24, 2024
2 parents acb8a0f + ed4b2a7 commit eb6662e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 37 deletions.
18 changes: 8 additions & 10 deletions docs/source/api2.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
HED API reference
=================

.. currentmodule:: hedmat
.. automodule:: hedmat.hedtools
:members:

.. autosummary::
:toctree: _autosummary
:template: custom-module-template.rst
:recursive:

hedtools
remodeling_demos
utilities
web_services_demos
.. automodule:: hedmat.remodeling_demos
:members:

.. automodule:: hedmat.utilities
:members:

.. automodule:: hedmat.web_services_demos
:members:
14 changes: 2 additions & 12 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
import sphinx_rtd_theme
from datetime import date

sys.path.insert(0, os.path.abspath('../../'))
sys.path.insert(0, os.path.abspath('.'))



# -- Project information -----------------------------------------------------
Expand All @@ -29,24 +28,15 @@
version = '0.0.1'
release = '0.0.1'

currentdir = os.path.abspath(os.path.dirname(__file__))
# -- General configuration ---------------------------------------------------
matlab_src_dir = os.path.abspath(os.path.join(currentdir, '../../hedmat'))
matlab_src_dir = os.path.abspath(os.path.join("..", ".."))
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"myst_parser",
"sphinxcontrib.matlab",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.autosectionlabel",
"sphinx.ext.intersphinx",
"sphinx.ext.coverage",
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinx.ext.githubpages",
"sphinx.ext.napoleon"
]


Expand Down
12 changes: 6 additions & 6 deletions hedmat/hedtools/HedToolsPython.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
%
% Optional name-value:
% 'includeContext' - boolean true->expand context (usually true).
% 'removeTypesOn' - boolean true-> remove Condition-variable
% and Task
% 'removeTypesOn' - boolean true-> remove Condition-variable and Task
% 'replaceDefs' - boolean true->replace def with definition (usually true).
%
% Returns:
Expand Down Expand Up @@ -189,12 +188,13 @@
% hedTags - A MATLAB string or character array.
%
% Optional name-value:
% 'checkWarnings' - boolean (optional, default false)
% indicates whether to include warnings.
% 'checkWarnings' - boolean (optional, default false)
% indicates whether to include warnings.
%
% Returns:
% issues - A string with the validation issues suitable for
% printing (has newlines).
% issues - A string with the validation issues suitable for
% printing (has newlines).

% ToDo: Make hedDefinitions optional.
%

Expand Down
6 changes: 3 additions & 3 deletions hedmat/hedtools/HedToolsService.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
%
% Optional name-value:
% 'includeContext' - boolean true->expand context (usually true).
% 'removeTypesOn' - boolean true-> remove Condition-variable
% and Task
% 'removeTypesOn' - boolean true-> remove Condition-variable and Task
% 'replaceDefs' - boolean true->replace def with definition (usually true).
%
% Returns:
Expand Down Expand Up @@ -256,7 +255,8 @@
end

function [] = resetSessionInfo(obj, host)
%% Reset the session for accessing the HED webservices
% Reset the session for accessing the HED webservices
%
% Parameters:
% host = URL for the services
%
Expand Down
13 changes: 7 additions & 6 deletions hedmat/web_services_demos/getSessionInfo.m
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
function [cookie, csrftoken] = getSessionInfo(csrf_url)
%% Setup the session for accessing the HED webservices
% Parameters:
% csrf_url = URL for the services
% Setup the session for accessing the HED webservices
%
% Returns:
% cookie = a string cookie value
% csrftoken = a string csrf token for the session.
% Parameters:
% csrf_url - URL for the services.
%
% Returns:
% cookie - A string cookie value.
% csrftoken - A string csrf token for the session.

request = matlab.net.http.RequestMessage;
uri = matlab.net.URI(csrf_url);
response1 = send(request,uri);
Expand Down

0 comments on commit eb6662e

Please sign in to comment.