Skip to content
Snippets Groups Projects
Verified Commit 8d009785 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

DOC: update docstrings and CHANGELOG

parent d3b5883c
No related branches found
No related tags found
2 merge requests!73REL: Release 0.7.0,!71F map list
Pipeline #22638 passed
......@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
* [#172](https://gitlab.com/caosdb/caosdb-webui/-/issues/172) - Map can handle
geo locations in list of references.
### Changed
### Deprecated
......
......@@ -8,7 +8,6 @@ import caosdb
import random
caosdb.get_connection()._login()
caosdb.execute_query("FIND ENTITY WITH ID > 99").delete()
# data model
datamodel = caosdb.Container()
......
......@@ -734,6 +734,16 @@ var _constructXpaths = function (selectors) {
*
* `getPropertyValues(entities, [["Geo Location", "latitude"], ["Geo Location", "longitude"]])`
*
* When the entitieshave normal non-list references to the "Geo Location" the
* result looks like this:
*
* `[[ "50", "-39"], ...]`
*
* When the entities have a LIST of thre Geo Locations the result looks like
* this:
*
* `[[[ "50", "51", "52"], [ "-39", "-38", "-37" ]], ...]`.
*
* Use empty strings for selector elements when the property name is irrelevant:
*
* `getPropertyValues(entities, [["", "latitude"], ["", "longitude"]])`
......@@ -748,9 +758,11 @@ var _constructXpaths = function (selectors) {
* special cases ("name", "description", "unit", etc.) are to be added when
* needed.
*
* @param {XMLElement[]) entities
* @param {XMLElement[]} entities
* @param {String[][]} selectors
* @return {String[][]} A table of the property values for each entity.
* @return {String[][]} A table of the property values for each entity (index
* order is `[row][column]`). Each row is an entity, each column is a value
* (or an array of values, when the entity has list properties).
*/
var getPropertyValues = function (entities, selectors) {
const entity_iter = entities.evaluate("/Response/Record", entities);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment