Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/openalea/agroservices/phis/phis.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Phis(REST):
def __init__(
self,
name="Phis",
url="http://147.100.202.17/m3p/rest/",
url="https://phenome.inrae.fr/m3p/rest/",
callback=None,
*args,
**kwargs,
Expand Down Expand Up @@ -74,7 +74,7 @@ def get(self, web_service, timeout=10.0, **kwargs):

:param web_service: (str) name of web service requested
:param timeout: (float) timeout for connexion in seconds
:param kwargs: (str) arguments relative to web service (see http://147.100.202.17/m3p/api-docs/)
:param kwargs: (str) arguments relative to web service (see https://phenome.inrae.fr/m3p/api-docs/)
:return:
(dict) response of the server (standard http)
"""
Expand All @@ -89,7 +89,7 @@ def get_all_data(self, web_service, timeout=10.0, **kwargs):

:param web_service: (str) name of web service requested
:param timeout: (float) timeout for connexion in seconds
:param kwargs: (str) arguments relative to web service (see http://147.100.202.17/m3p/api-docs/)
:param kwargs: (str) arguments relative to web service (see https://phenome.inrae.fr/m3p/api-docs/)
:return:
(list of dict) data relative to web service and parameters
"""
Expand Down Expand Up @@ -125,7 +125,7 @@ def get_all_data(self, web_service, timeout=10.0, **kwargs):

def ws_token(self, username="[email protected]", password="phenoarch"):
"""Get token for PHIS web service
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param username: (str)
:param password: (str)
Expand All @@ -144,7 +144,7 @@ def ws_token(self, username="[email protected]", password="phenoarch"):

def ws_projects(self, session_id, project_name=""):
"""Get all projects information if project_name is empty, or only information about project_name specified
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param project_name: (str) specify a project name to get detailed information
Expand All @@ -162,7 +162,7 @@ def ws_germplasms(
germplasm_uri=None,
):
"""Get information about genotypes in experiments
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str or list of str) experiment URI
Expand Down Expand Up @@ -203,7 +203,7 @@ def ws_environment(
plant_uri=None,
):
"""Get environment sensors values from PHIS web service
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) An experiment URI
Expand Down Expand Up @@ -250,7 +250,7 @@ def ws_variables(
self, session_id, experiment_uri, category="environment", provider="lepse"
):
"""Get variables information according to category specified
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand All @@ -273,7 +273,7 @@ def ws_experiments(
):
"""Get all experiments information from a project or/and a season, or only information about experiment_uri
specified
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param project_name: (str) specify a project name to get specifics experiments information
Expand Down Expand Up @@ -308,7 +308,7 @@ def ws_label_views(
provider=None,
):
"""Get existing label views for a specific experiment
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand All @@ -329,7 +329,7 @@ def ws_label_views(

def ws_observation_variables(self, session_id, experiment_uri):
"""Get existing observation variables for a specific experiment
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand All @@ -343,7 +343,7 @@ def ws_observation_variables(self, session_id, experiment_uri):

def ws_weighing(self, session_id, experiment_uri, date=None, variables_name=None):
"""Get weighing data for a specific experiment
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand Down Expand Up @@ -372,7 +372,7 @@ def ws_plants(
plant_uri=None,
):
"""Get plants information for an experiment
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand Down Expand Up @@ -402,7 +402,7 @@ def ws_plant_moves(
self, session_id, experiment_uri, plant_uri, start_date=None, end_date=None
):
"""Get plant moves data during an experimentation
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand Down Expand Up @@ -433,7 +433,7 @@ def ws_watering(
plant_uri=None,
):
"""Get watering data for a specific experiment
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand Down Expand Up @@ -478,7 +478,7 @@ def ws_images_analysis(
plant_uri=None,
):
"""Get images analysis data for a specific experiment
See http://147.100.202.17/m3p/api-docs/ for exact documentation
See https://phenome.inrae.fr/m3p/api-docs/ for exact documentation

:param session_id: (str) token got from ws_token()
:param experiment_uri: (str) an experiment URI
Expand Down
Loading