From 7b3bff854d3d3efcbef6e8223907580878007fabbc7a9209418b29788e70ea64 Mon Sep 17 00:00:00 2001 From: PioApocalypse Date: Thu, 12 Feb 2026 14:37:50 +0100 Subject: [PATCH] adds mock layers of mock sample 26015 for testing purposes --- tests/layer_A.json | 480 +++++++++++++++++++++++++++++++++++++++++++ tests/layer_B.json | 500 +++++++++++++++++++++++++++++++++++++++++++++ tests/layer_C.json | 480 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1460 insertions(+) create mode 100644 tests/layer_A.json create mode 100644 tests/layer_B.json create mode 100644 tests/layer_C.json diff --git a/tests/layer_A.json b/tests/layer_A.json new file mode 100644 index 0000000..58f3489 --- /dev/null +++ b/tests/layer_A.json @@ -0,0 +1,480 @@ +{ + "access_key": null, + "body": "", + "body_html": "", + "canread": "{\"base\": 40, \"teams\": [], \"users\": [], \"teamgroups\": []}", + "canread_is_immutable": 0, + "canwrite": "{\"base\": 20, \"teams\": [], \"users\": [], \"teamgroups\": []}", + "canwrite_is_immutable": 0, + "category": 2, + "category_color": "8b8d43", + "category_title": "PLD Deposition", + "comments": [], + "compounds": [], + "containers": [], + "content_type": 1, + "created_at": "2026-02-09 09:53:50", + "custom_id": null, + "date": "2026-02-09", + "elabid": "20260209-8ba774f27896bbec37a7cc5eab18747dbac3a4fb", + "events_start": null, + "events_start_itemid": null, + "exclusive_edit_mode": null, + "experiments_links": [ + { + "entityid": 59, + "title": "Na-26-015 lao on stocazzo", + "custom_id": null, + "elabid": "20260209-554888c7b8a17efd963fece04426f6ec5722fa8a", + "link_state": 1, + "page": "experiments.php", + "type": "experiments", + "category_title": "PLD Deposition", + "category_color": "8b8d43", + "status_title": null, + "status_color": null + } + ], + "firstname": "Emiliano", + "fullname": "Emiliano Di Gennaro", + "id": 58, + "is_pinned": 0, + "items_links": [ + { + "entityid": 1075, + "title": "ETO single crystal", + "custom_id": null, + "elabid": "20260126-6f77512fa5a3c5803fcfc64797ffa003429094dc", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "PLD Target", + "category_color": "1a5fb4", + "status_title": null, + "status_color": null + }, + { + "entityid": 1074, + "title": "LAO single crystal", + "custom_id": null, + "elabid": "20260126-2cef9e71c0ff4aa15062cb6562f64f6ac3a366fb", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "PLD Target", + "category_color": "1a5fb4", + "status_title": null, + "status_color": null + }, + { + "entityid": 1099, + "title": "Coherent Excimer Laser (KrF 248 nm)", + "custom_id": null, + "elabid": "20260126-9175c1674aef9947736fbc12447f912c8ea9bc81", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1096, + "title": "PLD Chamber I (small area)", + "custom_id": null, + "elabid": "20260126-19cf5d06fd119f841383f21db1c29eebfad550c5", + "link_state": 1, + "is_bookable": 1, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1098, + "title": "STAIB RHEED 30", + "custom_id": null, + "elabid": "20260126-5df7738907b198451c19296ab07e5093d12a3ead", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1111, + "title": "Na-26-015", + "custom_id": null, + "elabid": "20260209-6e19f19795b7ea79594a35d9a11da1896b13453e", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Sample", + "category_color": "ffbe6f", + "status_title": null, + "status_color": null + } + ], + "lastchangeby": 2, + "lastname": "Di Gennaro", + "locked": 0, + "locked_at": null, + "lockedby": null, + "metadata": "{\"elabftw\": {\"extra_fields_groups\": [{\"id\": 1, \"name\": \"Process\"}, {\"id\": 2, \"name\": \"Laser\"}, {\"id\": 3, \"name\": \"Pre Annealing\"}, {\"id\": 4, \"name\": \"Post Annealing\"}, {\"id\": 5, \"name\": \"Instruments\"}]}, \"extra_fields\": {\"Sample\": {\"type\": \"items\", \"value\": 1111, \"group_id\": 1, \"position\": 0, \"required\": true}, \"Target\": {\"type\": \"items\", \"value\": 1075, \"group_id\": 1, \"position\": 2, \"required\": true}, \"Chamber\": {\"type\": \"items\", \"value\": 1096, \"group_id\": 5, \"position\": 0, \"required\": true}, \"Duration\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"45\", \"group_id\": 1, \"position\": 3, \"required\": true}, \"Spot Area\": {\"type\": \"number\", \"unit\": \"mm^2\", \"units\": [\"mm^2\"], \"value\": \"0.8\", \"group_id\": 2, \"position\": 2}, \"Thickness\": {\"type\": \"number\", \"unit\": \"u.c.\", \"units\": [\"u.c.\", \"nm\"], \"value\": \"3\", \"group_id\": 1, \"position\": 4}, \"Buffer gas\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 1, \"position\": 5}, \"Duration PA\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"\", \"group_id\": 4, \"position\": 0}, \"Duration Pre\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"\", \"group_id\": 3, \"position\": 0}, \"Laser System\": {\"type\": \"items\", \"value\": 1099, \"group_id\": 5, \"position\": 1}, \"RHEED System\": {\"type\": \"items\", \"value\": 1098, \"group_id\": 5, \"position\": 2}, \"Buffer gas PA\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 4, \"position\": 1}, \"Buffer gas Pre\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 3, \"position\": 1}, \"Heating Method\": {\"type\": \"select\", \"value\": \"Radiative Heater\", \"options\": [\"Radiative Heater\", \"Laser Heater\"], \"group_id\": 1, \"position\": 9}, \"Laser Intensity\": {\"type\": \"number\", \"unit\": \"J/(s cm^2)\", \"units\": [\"J/(s cm^2)\"], \"value\": \"1.5\", \"group_id\": 2, \"position\": 0}, \"Repetition rate\": {\"type\": \"number\", \"unit\": \"Hz\", \"units\": [\"Hz\"], \"value\": \"1\", \"group_id\": 2, \"position\": 1}, \"Process pressure\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"1e-3\", \"group_id\": 1, \"position\": 6}, \"Heater temperature\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"650\", \"group_id\": 1, \"position\": 7}, \"Process pressure PA\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"\", \"group_id\": 4, \"position\": 2}, \"Process pressure Pre\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"\", \"group_id\": 3, \"position\": 2}, \"Heater temperature PA\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"\", \"group_id\": 4, \"position\": 3}, \"Laser Rastering Speed\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"\", \"group_id\": 2, \"position\": 4}, \"Heater temperature Pre\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"\", \"group_id\": 3, \"position\": 3}, \"Heater-target distance\": {\"type\": \"number\", \"unit\": \"mm\", \"units\": [\"mm\"], \"value\": \"45\", \"group_id\": 1, \"position\": 8}, \"Laser Rastering Geometry\": {\"type\": \"select\", \"value\": \"none\", \"options\": [\"none\", \"on a square\", \"on a rectangle\", \"on a line\", \"other\"], \"group_id\": 2, \"position\": 3}, \"Laser Rastering Position\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"\", \"group_id\": 2, \"position\": 5}, \"Layer Progressive Number\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"2\", \"group_id\": 1, \"position\": 1, \"required\": true}}}", + "metadata_decoded": { + "elabftw": { + "extra_fields_groups": [ + { + "id": 1, + "name": "Process" + }, + { + "id": 2, + "name": "Laser" + }, + { + "id": 3, + "name": "Pre Annealing" + }, + { + "id": 4, + "name": "Post Annealing" + }, + { + "id": 5, + "name": "Instruments" + } + ] + }, + "extra_fields": { + "Sample": { + "type": "items", + "value": 1111, + "group_id": 1, + "position": 0, + "required": true + }, + "Target": { + "type": "items", + "value": 1075, + "group_id": 1, + "position": 2, + "required": true + }, + "Chamber": { + "type": "items", + "value": 1096, + "group_id": 5, + "position": 0, + "required": true + }, + "Duration": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "69", + "group_id": 1, + "position": 3, + "required": true + }, + "Spot Area": { + "type": "number", + "unit": "mm^2", + "units": [ + "mm^2" + ], + "value": "0.8", + "group_id": 2, + "position": 2 + }, + "Thickness": { + "type": "number", + "unit": "u.c.", + "units": [ + "u.c.", + "nm" + ], + "value": "3", + "group_id": 1, + "position": 4 + }, + "Buffer gas": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 1, + "position": 5 + }, + "Duration PA": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "", + "group_id": 4, + "position": 0 + }, + "Duration Pre": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "", + "group_id": 3, + "position": 0 + }, + "Laser System": { + "type": "items", + "value": 1099, + "group_id": 5, + "position": 1 + }, + "RHEED System": { + "type": "items", + "value": 1098, + "group_id": 5, + "position": 2 + }, + "Buffer gas PA": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 4, + "position": 1 + }, + "Buffer gas Pre": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 3, + "position": 1 + }, + "Heating Method": { + "type": "select", + "value": "Radiative Heater", + "options": [ + "Radiative Heater", + "Laser Heater" + ], + "group_id": 1, + "position": 9 + }, + "Laser Intensity": { + "type": "number", + "unit": "J/(s cm^2)", + "units": [ + "J/(s cm^2)" + ], + "value": "1.5", + "group_id": 2, + "position": 0 + }, + "Repetition rate": { + "type": "number", + "unit": "Hz", + "units": [ + "Hz" + ], + "value": "1", + "group_id": 2, + "position": 1 + }, + "Process pressure": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "1e-3", + "group_id": 1, + "position": 6 + }, + "Heater temperature": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "650", + "group_id": 1, + "position": 7 + }, + "Process pressure PA": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "", + "group_id": 4, + "position": 2 + }, + "Process pressure Pre": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "", + "group_id": 3, + "position": 2 + }, + "Heater temperature PA": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "", + "group_id": 4, + "position": 3 + }, + "Laser Rastering Speed": { + "type": "number", + "unit": "", + "units": [], + "value": "", + "group_id": 2, + "position": 4 + }, + "Heater temperature Pre": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "", + "group_id": 3, + "position": 3 + }, + "Heater-target distance": { + "type": "number", + "unit": "mm", + "units": [ + "mm" + ], + "value": "45", + "group_id": 1, + "position": 8 + }, + "Laser Rastering Geometry": { + "type": "select", + "value": "none", + "options": [ + "none", + "on a square", + "on a rectangle", + "on a line", + "other" + ], + "group_id": 2, + "position": 3 + }, + "Laser Rastering Position": { + "type": "number", + "unit": "", + "units": [], + "value": "", + "group_id": 2, + "position": 5 + }, + "Layer Progressive Number": { + "type": "number", + "unit": "", + "units": [], + "value": "3", + "group_id": 1, + "position": 1, + "required": true + } + } + }, + "modified_at": "2026-02-09 15:16:33", + "next_step": null, + "orcid": "0000-0003-4231-9776", + "page": "experiments", + "rating": 0, + "recent_comment": null, + "related_experiments_links": [], + "related_items_links": [], + "sharelink": "https://elabftw.fisica.unina.it:8080/experiments.php?mode=view&id=58", + "state": 1, + "status": null, + "status_color": null, + "status_title": null, + "steps": [ + { + "id": 74, + "item_id": 58, + "body": "add process data", + "ordering": 1, + "finished": 1, + "finished_time": "2026-02-09 09:54:53", + "deadline": null, + "deadline_notif": 0 + }, + { + "id": 75, + "item_id": 58, + "body": "add RHEED data", + "ordering": 2, + "finished": 1, + "finished_time": "2026-02-09 09:54:54", + "deadline": null, + "deadline_notif": 0 + }, + { + "id": 76, + "item_id": 58, + "body": "add RHEED images", + "ordering": 3, + "finished": 1, + "finished_time": "2026-02-09 09:54:56", + "deadline": null, + "deadline_notif": 0 + } + ], + "tags": null, + "tags_id": null, + "team": 1, + "team_name": "Default team", + "timestamped": 0, + "timestamped_at": null, + "timestampedby": null, + "title": "Na-26-015 eto on lao on sto", + "type": "experiments", + "uploads": [], + "userid": 2 +} diff --git a/tests/layer_B.json b/tests/layer_B.json new file mode 100644 index 0000000..a4c274c --- /dev/null +++ b/tests/layer_B.json @@ -0,0 +1,500 @@ +{ + "access_key": null, + "body": "", + "body_html": "", + "canread": "{\"base\": 40, \"teams\": [], \"users\": [], \"teamgroups\": []}", + "canread_is_immutable": 0, + "canwrite": "{\"base\": 20, \"teams\": [], \"users\": [], \"teamgroups\": []}", + "canwrite_is_immutable": 0, + "category": 2, + "category_color": "8b8d43", + "category_title": "PLD Deposition", + "comments": [], + "compounds": [], + "containers": [], + "content_type": 1, + "created_at": "2026-02-09 09:32:10", + "custom_id": null, + "date": "2026-02-09", + "elabid": "20260209-554888c7b8a17efd963fece04426f6ec5722fa8a", + "events_start": null, + "events_start_itemid": null, + "exclusive_edit_mode": null, + "experiments_links": [], + "firstname": "Emiliano", + "fullname": "Emiliano Di Gennaro", + "id": 56, + "is_pinned": 0, + "items_links": [ + { + "entityid": 1074, + "title": "LAO single crystal", + "custom_id": null, + "elabid": "20260126-2cef9e71c0ff4aa15062cb6562f64f6ac3a366fb", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "PLD Target", + "category_color": "1a5fb4", + "status_title": null, + "status_color": null + }, + { + "entityid": 1099, + "title": "Coherent Excimer Laser (KrF 248 nm)", + "custom_id": null, + "elabid": "20260126-9175c1674aef9947736fbc12447f912c8ea9bc81", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1096, + "title": "PLD Chamber I (small area)", + "custom_id": null, + "elabid": "20260126-19cf5d06fd119f841383f21db1c29eebfad550c5", + "link_state": 1, + "is_bookable": 1, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1098, + "title": "STAIB RHEED 30", + "custom_id": null, + "elabid": "20260126-5df7738907b198451c19296ab07e5093d12a3ead", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1111, + "title": "Na-26-015", + "custom_id": null, + "elabid": "20260209-6e19f19795b7ea79594a35d9a11da1896b13453e", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Sample", + "category_color": "ffbe6f", + "status_title": null, + "status_color": null + } + ], + "lastchangeby": 2, + "lastname": "Di Gennaro", + "locked": 0, + "locked_at": null, + "lockedby": null, + "metadata": "{\"elabftw\": {\"extra_fields_groups\": [{\"id\": 1, \"name\": \"Process\"}, {\"id\": 2, \"name\": \"Laser\"}, {\"id\": 3, \"name\": \"Pre Annealing\"}, {\"id\": 4, \"name\": \"Post Annealing\"}, {\"id\": 5, \"name\": \"Instruments\"}]}, \"extra_fields\": {\"Sample\": {\"type\": \"items\", \"value\": 1111, \"group_id\": 1, \"position\": 0, \"required\": true}, \"Target\": {\"type\": \"items\", \"value\": 1074, \"group_id\": 1, \"position\": 2, \"required\": true}, \"Chamber\": {\"type\": \"items\", \"value\": 1096, \"group_id\": 5, \"position\": 0, \"required\": true}, \"Duration\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"128\", \"group_id\": 1, \"position\": 3, \"required\": true}, \"Spot Area\": {\"type\": \"number\", \"unit\": \"mm^2\", \"units\": [\"mm^2\"], \"value\": \"0.8\", \"group_id\": 2, \"position\": 2}, \"Thickness\": {\"type\": \"number\", \"unit\": \"u.c.\", \"units\": [\"u.c.\", \"nm\"], \"value\": \"8\", \"group_id\": 1, \"position\": 4}, \"Buffer gas\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 1, \"position\": 5}, \"Duration PA\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"\", \"group_id\": 4, \"position\": 0}, \"Duration Pre\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"\", \"group_id\": 3, \"position\": 0}, \"Laser System\": {\"type\": \"items\", \"value\": 1099, \"group_id\": 5, \"position\": 1}, \"RHEED System\": {\"type\": \"items\", \"value\": 1098, \"group_id\": 5, \"position\": 2}, \"Buffer gas PA\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 4, \"position\": 1}, \"Buffer gas Pre\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 3, \"position\": 1}, \"Heating Method\": {\"type\": \"select\", \"value\": \"Radiative Heater\", \"options\": [\"Radiative Heater\", \"Laser Heater\"], \"group_id\": 1, \"position\": 9}, \"Laser Intensity\": {\"type\": \"number\", \"unit\": \"J/(s cm^2)\", \"units\": [\"J/(s cm^2)\"], \"value\": \"1.5\", \"group_id\": 2, \"position\": 0}, \"Repetition rate\": {\"type\": \"number\", \"unit\": \"Hz\", \"units\": [\"Hz\"], \"value\": \"1\", \"group_id\": 2, \"position\": 1}, \"Process pressure\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"1e-3\", \"group_id\": 1, \"position\": 6}, \"Heater temperature\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"650\", \"group_id\": 1, \"position\": 7}, \"Process pressure PA\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"\", \"group_id\": 4, \"position\": 2}, \"Process pressure Pre\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"1e-1\", \"group_id\": 3, \"position\": 2}, \"Heater temperature PA\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"\", \"group_id\": 4, \"position\": 3}, \"Laser Rastering Speed\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"\", \"group_id\": 2, \"position\": 4}, \"Heater temperature Pre\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"500\", \"group_id\": 3, \"position\": 3}, \"Heater-target distance\": {\"type\": \"number\", \"unit\": \"mm\", \"units\": [\"mm\"], \"value\": \"45\", \"group_id\": 1, \"position\": 8}, \"Laser Rastering Geometry\": {\"type\": \"select\", \"value\": \"none\", \"options\": [\"none\", \"on a square\", \"on a rectangle\", \"on a line\", \"other\"], \"group_id\": 2, \"position\": 3}, \"Laser Rastering Position\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"\", \"group_id\": 2, \"position\": 5}, \"Layer Progressive Number\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"1\", \"group_id\": 1, \"position\": 1, \"required\": true}}}", + "metadata_decoded": { + "elabftw": { + "extra_fields_groups": [ + { + "id": 1, + "name": "Process" + }, + { + "id": 2, + "name": "Laser" + }, + { + "id": 3, + "name": "Pre Annealing" + }, + { + "id": 4, + "name": "Post Annealing" + }, + { + "id": 5, + "name": "Instruments" + } + ] + }, + "extra_fields": { + "Sample": { + "type": "items", + "value": 1111, + "group_id": 1, + "position": 0, + "required": true + }, + "Target": { + "type": "items", + "value": 1074, + "group_id": 1, + "position": 2, + "required": true + }, + "Chamber": { + "type": "items", + "value": 1096, + "group_id": 5, + "position": 0, + "required": true + }, + "Duration": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "128", + "group_id": 1, + "position": 3, + "required": true + }, + "Spot Area": { + "type": "number", + "unit": "mm^2", + "units": [ + "mm^2" + ], + "value": "0.8", + "group_id": 2, + "position": 2 + }, + "Thickness": { + "type": "number", + "unit": "u.c.", + "units": [ + "u.c.", + "nm" + ], + "value": "8", + "group_id": 1, + "position": 4 + }, + "Buffer gas": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 1, + "position": 5 + }, + "Duration PA": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "", + "group_id": 4, + "position": 0 + }, + "Duration Pre": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "", + "group_id": 3, + "position": 0 + }, + "Laser System": { + "type": "items", + "value": 1099, + "group_id": 5, + "position": 1 + }, + "RHEED System": { + "type": "items", + "value": 1098, + "group_id": 5, + "position": 2 + }, + "Buffer gas PA": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 4, + "position": 1 + }, + "Buffer gas Pre": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 3, + "position": 1 + }, + "Heating Method": { + "type": "select", + "value": "Radiative Heater", + "options": [ + "Radiative Heater", + "Laser Heater" + ], + "group_id": 1, + "position": 9 + }, + "Laser Intensity": { + "type": "number", + "unit": "J/(s cm^2)", + "units": [ + "J/(s cm^2)" + ], + "value": "1.5", + "group_id": 2, + "position": 0 + }, + "Repetition rate": { + "type": "number", + "unit": "Hz", + "units": [ + "Hz" + ], + "value": "1", + "group_id": 2, + "position": 1 + }, + "Process pressure": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "1e-3", + "group_id": 1, + "position": 6 + }, + "Heater temperature": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "650", + "group_id": 1, + "position": 7 + }, + "Process pressure PA": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "", + "group_id": 4, + "position": 2 + }, + "Process pressure Pre": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "1e-1", + "group_id": 3, + "position": 2 + }, + "Heater temperature PA": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "", + "group_id": 4, + "position": 3 + }, + "Laser Rastering Speed": { + "type": "number", + "unit": "", + "units": [], + "value": "", + "group_id": 2, + "position": 4 + }, + "Heater temperature Pre": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "500", + "group_id": 3, + "position": 3 + }, + "Heater-target distance": { + "type": "number", + "unit": "mm", + "units": [ + "mm" + ], + "value": "45", + "group_id": 1, + "position": 8 + }, + "Laser Rastering Geometry": { + "type": "select", + "value": "none", + "options": [ + "none", + "on a square", + "on a rectangle", + "on a line", + "other" + ], + "group_id": 2, + "position": 3 + }, + "Laser Rastering Position": { + "type": "number", + "unit": "", + "units": [], + "value": "", + "group_id": 2, + "position": 5 + }, + "Layer Progressive Number": { + "type": "number", + "unit": "", + "units": [], + "value": "1", + "group_id": 1, + "position": 1, + "required": true + } + } + }, + "modified_at": "2026-02-09 15:17:40", + "next_step": "add process data", + "orcid": "0000-0003-4231-9776", + "page": "experiments", + "rating": 0, + "recent_comment": null, + "related_experiments_links": [ + { + "entityid": 58, + "title": "Na-26-015 eto on lao on sto", + "custom_id": null, + "link_state": 1, + "page": "experiments.php", + "type": "experiments", + "category_title": "PLD Deposition", + "category_color": "8b8d43", + "status_title": null, + "status_color": null + } + ], + "related_items_links": [], + "sharelink": "https://elabftw.fisica.unina.it:8080/experiments.php?mode=view&id=56", + "state": 1, + "status": null, + "status_color": null, + "status_title": null, + "steps": [ + { + "id": 68, + "item_id": 56, + "body": "add process data", + "ordering": 1, + "finished": 0, + "finished_time": null, + "deadline": null, + "deadline_notif": 0 + }, + { + "id": 69, + "item_id": 56, + "body": "add RHEED data", + "ordering": 2, + "finished": 1, + "finished_time": "2026-02-09 09:42:59", + "deadline": null, + "deadline_notif": 0 + }, + { + "id": 70, + "item_id": 56, + "body": "add RHEED images", + "ordering": 3, + "finished": 1, + "finished_time": "2026-02-09 09:43:01", + "deadline": null, + "deadline_notif": 0 + } + ], + "tags": null, + "tags_id": null, + "team": 1, + "team_name": "Default team", + "timestamped": 0, + "timestamped_at": null, + "timestampedby": null, + "title": "Na-26-015 lao on sto", + "type": "experiments", + "uploads": [ + { + "id": 75, + "real_name": "LAO_16min50s_736C_STO.bmp", + "long_name": "ce/ce536c93131cca5b3066a34fea81ae427f21d4ab851e64ff2142c99a9c3c7659805f224c582a8a11bc08d6307a6f4e6415891e506a46d346e64d7defbd2fcb7b.bmp", + "comment": null, + "item_id": 56, + "userid": 2, + "type": "experiments", + "created_at": "2026-02-09 09:42:52", + "hash": "881747c39f70a5c2691fe1fe432f81e60e1b81aa81508b103a6bbc66c4183c6c", + "hash_algorithm": "sha256", + "storage": 1, + "filesize": 308278, + "state": 1, + "immutable": 0, + "fullname": "Emiliano Di Gennaro" + }, + { + "id": 74, + "real_name": "Real-time Window Analysis ( Peak Int. ).txt", + "long_name": "18/18932061059d64b7edf332568f21507e15e61f054696fda4d88b1c431e6e04209ac1848328f7d72cb39222cdf2b250be5038e491d62809ca9e62542e54a94452.txt", + "comment": null, + "item_id": 56, + "userid": 2, + "type": "experiments", + "created_at": "2026-02-09 09:42:43", + "hash": "1dab085e81dca7c6b8380c98225bc429506ece28e51e976ae564b3b5289b58fe", + "hash_algorithm": "sha256", + "storage": 1, + "filesize": 3755169, + "state": 1, + "immutable": 0, + "fullname": "Emiliano Di Gennaro" + } + ], + "userid": 2 +} \ No newline at end of file diff --git a/tests/layer_C.json b/tests/layer_C.json new file mode 100644 index 0000000..c552262 --- /dev/null +++ b/tests/layer_C.json @@ -0,0 +1,480 @@ +{ + "access_key": null, + "body": "", + "body_html": "", + "canread": "{\"base\": 40, \"teams\": [], \"users\": [], \"teamgroups\": []}", + "canread_is_immutable": 0, + "canwrite": "{\"base\": 20, \"teams\": [], \"users\": [], \"teamgroups\": []}", + "canwrite_is_immutable": 0, + "category": 2, + "category_color": "8b8d43", + "category_title": "PLD Deposition", + "comments": [], + "compounds": [], + "containers": [], + "content_type": 1, + "created_at": "2026-02-09 09:53:50", + "custom_id": null, + "date": "2026-02-09", + "elabid": "20260209-8ba774f27896bbec37a7cc5eab18747dbac3a4fb", + "events_start": null, + "events_start_itemid": null, + "exclusive_edit_mode": null, + "experiments_links": [ + { + "entityid": 56, + "title": "Na-26-015 lao on sto", + "custom_id": null, + "elabid": "20260209-554888c7b8a17efd963fece04426f6ec5722fa8a", + "link_state": 1, + "page": "experiments.php", + "type": "experiments", + "category_title": "PLD Deposition", + "category_color": "8b8d43", + "status_title": null, + "status_color": null + } + ], + "firstname": "Emiliano", + "fullname": "Emiliano Di Gennaro", + "id": 58, + "is_pinned": 0, + "items_links": [ + { + "entityid": 1075, + "title": "ETO single crystal", + "custom_id": null, + "elabid": "20260126-6f77512fa5a3c5803fcfc64797ffa003429094dc", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "PLD Target", + "category_color": "1a5fb4", + "status_title": null, + "status_color": null + }, + { + "entityid": 1074, + "title": "LAO single crystal", + "custom_id": null, + "elabid": "20260126-2cef9e71c0ff4aa15062cb6562f64f6ac3a366fb", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "PLD Target", + "category_color": "1a5fb4", + "status_title": null, + "status_color": null + }, + { + "entityid": 1099, + "title": "Coherent Excimer Laser (KrF 248 nm)", + "custom_id": null, + "elabid": "20260126-9175c1674aef9947736fbc12447f912c8ea9bc81", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1096, + "title": "PLD Chamber I (small area)", + "custom_id": null, + "elabid": "20260126-19cf5d06fd119f841383f21db1c29eebfad550c5", + "link_state": 1, + "is_bookable": 1, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1098, + "title": "STAIB RHEED 30", + "custom_id": null, + "elabid": "20260126-5df7738907b198451c19296ab07e5093d12a3ead", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Process Instrument", + "category_color": "a51d2d", + "status_title": "Available", + "status_color": "6a7753" + }, + { + "entityid": 1111, + "title": "Na-26-015", + "custom_id": null, + "elabid": "20260209-6e19f19795b7ea79594a35d9a11da1896b13453e", + "link_state": 1, + "is_bookable": 0, + "page": "database.php", + "type": "items", + "category_title": "Sample", + "category_color": "ffbe6f", + "status_title": null, + "status_color": null + } + ], + "lastchangeby": 2, + "lastname": "Di Gennaro", + "locked": 0, + "locked_at": null, + "lockedby": null, + "metadata": "{\"elabftw\": {\"extra_fields_groups\": [{\"id\": 1, \"name\": \"Process\"}, {\"id\": 2, \"name\": \"Laser\"}, {\"id\": 3, \"name\": \"Pre Annealing\"}, {\"id\": 4, \"name\": \"Post Annealing\"}, {\"id\": 5, \"name\": \"Instruments\"}]}, \"extra_fields\": {\"Sample\": {\"type\": \"items\", \"value\": 1111, \"group_id\": 1, \"position\": 0, \"required\": true}, \"Target\": {\"type\": \"items\", \"value\": 1075, \"group_id\": 1, \"position\": 2, \"required\": true}, \"Chamber\": {\"type\": \"items\", \"value\": 1096, \"group_id\": 5, \"position\": 0, \"required\": true}, \"Duration\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"45\", \"group_id\": 1, \"position\": 3, \"required\": true}, \"Spot Area\": {\"type\": \"number\", \"unit\": \"mm^2\", \"units\": [\"mm^2\"], \"value\": \"0.8\", \"group_id\": 2, \"position\": 2}, \"Thickness\": {\"type\": \"number\", \"unit\": \"u.c.\", \"units\": [\"u.c.\", \"nm\"], \"value\": \"3\", \"group_id\": 1, \"position\": 4}, \"Buffer gas\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 1, \"position\": 5}, \"Duration PA\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"\", \"group_id\": 4, \"position\": 0}, \"Duration Pre\": {\"type\": \"number\", \"unit\": \"s\", \"units\": [\"s\", \"min\"], \"value\": \"\", \"group_id\": 3, \"position\": 0}, \"Laser System\": {\"type\": \"items\", \"value\": 1099, \"group_id\": 5, \"position\": 1}, \"RHEED System\": {\"type\": \"items\", \"value\": 1098, \"group_id\": 5, \"position\": 2}, \"Buffer gas PA\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 4, \"position\": 1}, \"Buffer gas Pre\": {\"type\": \"select\", \"value\": \"O2\", \"options\": [\"O2\", \"N2\", \"Ar\", \"\"], \"group_id\": 3, \"position\": 1}, \"Heating Method\": {\"type\": \"select\", \"value\": \"Radiative Heater\", \"options\": [\"Radiative Heater\", \"Laser Heater\"], \"group_id\": 1, \"position\": 9}, \"Laser Intensity\": {\"type\": \"number\", \"unit\": \"J/(s cm^2)\", \"units\": [\"J/(s cm^2)\"], \"value\": \"1.5\", \"group_id\": 2, \"position\": 0}, \"Repetition rate\": {\"type\": \"number\", \"unit\": \"Hz\", \"units\": [\"Hz\"], \"value\": \"1\", \"group_id\": 2, \"position\": 1}, \"Process pressure\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"1e-3\", \"group_id\": 1, \"position\": 6}, \"Heater temperature\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"650\", \"group_id\": 1, \"position\": 7}, \"Process pressure PA\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"\", \"group_id\": 4, \"position\": 2}, \"Process pressure Pre\": {\"type\": \"number\", \"unit\": \"mbar\", \"units\": [\"mbar\"], \"value\": \"\", \"group_id\": 3, \"position\": 2}, \"Heater temperature PA\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"\", \"group_id\": 4, \"position\": 3}, \"Laser Rastering Speed\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"\", \"group_id\": 2, \"position\": 4}, \"Heater temperature Pre\": {\"type\": \"number\", \"unit\": \"\u00b0C\", \"units\": [\"\u00b0C\"], \"value\": \"\", \"group_id\": 3, \"position\": 3}, \"Heater-target distance\": {\"type\": \"number\", \"unit\": \"mm\", \"units\": [\"mm\"], \"value\": \"45\", \"group_id\": 1, \"position\": 8}, \"Laser Rastering Geometry\": {\"type\": \"select\", \"value\": \"none\", \"options\": [\"none\", \"on a square\", \"on a rectangle\", \"on a line\", \"other\"], \"group_id\": 2, \"position\": 3}, \"Laser Rastering Position\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"\", \"group_id\": 2, \"position\": 5}, \"Layer Progressive Number\": {\"type\": \"number\", \"unit\": \"\", \"units\": [], \"value\": \"2\", \"group_id\": 1, \"position\": 1, \"required\": true}}}", + "metadata_decoded": { + "elabftw": { + "extra_fields_groups": [ + { + "id": 1, + "name": "Process" + }, + { + "id": 2, + "name": "Laser" + }, + { + "id": 3, + "name": "Pre Annealing" + }, + { + "id": 4, + "name": "Post Annealing" + }, + { + "id": 5, + "name": "Instruments" + } + ] + }, + "extra_fields": { + "Sample": { + "type": "items", + "value": 1111, + "group_id": 1, + "position": 0, + "required": true + }, + "Target": { + "type": "items", + "value": 1075, + "group_id": 1, + "position": 2, + "required": true + }, + "Chamber": { + "type": "items", + "value": 1096, + "group_id": 5, + "position": 0, + "required": true + }, + "Duration": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "45", + "group_id": 1, + "position": 3, + "required": true + }, + "Spot Area": { + "type": "number", + "unit": "mm^2", + "units": [ + "mm^2" + ], + "value": "0.8", + "group_id": 2, + "position": 2 + }, + "Thickness": { + "type": "number", + "unit": "u.c.", + "units": [ + "u.c.", + "nm" + ], + "value": "3", + "group_id": 1, + "position": 4 + }, + "Buffer gas": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 1, + "position": 5 + }, + "Duration PA": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "", + "group_id": 4, + "position": 0 + }, + "Duration Pre": { + "type": "number", + "unit": "s", + "units": [ + "s", + "min" + ], + "value": "", + "group_id": 3, + "position": 0 + }, + "Laser System": { + "type": "items", + "value": 1099, + "group_id": 5, + "position": 1 + }, + "RHEED System": { + "type": "items", + "value": 1098, + "group_id": 5, + "position": 2 + }, + "Buffer gas PA": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 4, + "position": 1 + }, + "Buffer gas Pre": { + "type": "select", + "value": "O2", + "options": [ + "O2", + "N2", + "Ar", + "" + ], + "group_id": 3, + "position": 1 + }, + "Heating Method": { + "type": "select", + "value": "Radiative Heater", + "options": [ + "Radiative Heater", + "Laser Heater" + ], + "group_id": 1, + "position": 9 + }, + "Laser Intensity": { + "type": "number", + "unit": "J/(s cm^2)", + "units": [ + "J/(s cm^2)" + ], + "value": "1.5", + "group_id": 2, + "position": 0 + }, + "Repetition rate": { + "type": "number", + "unit": "Hz", + "units": [ + "Hz" + ], + "value": "1", + "group_id": 2, + "position": 1 + }, + "Process pressure": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "1e-3", + "group_id": 1, + "position": 6 + }, + "Heater temperature": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "650", + "group_id": 1, + "position": 7 + }, + "Process pressure PA": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "", + "group_id": 4, + "position": 2 + }, + "Process pressure Pre": { + "type": "number", + "unit": "mbar", + "units": [ + "mbar" + ], + "value": "", + "group_id": 3, + "position": 2 + }, + "Heater temperature PA": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "", + "group_id": 4, + "position": 3 + }, + "Laser Rastering Speed": { + "type": "number", + "unit": "", + "units": [], + "value": "", + "group_id": 2, + "position": 4 + }, + "Heater temperature Pre": { + "type": "number", + "unit": "\u00b0C", + "units": [ + "\u00b0C" + ], + "value": "", + "group_id": 3, + "position": 3 + }, + "Heater-target distance": { + "type": "number", + "unit": "mm", + "units": [ + "mm" + ], + "value": "45", + "group_id": 1, + "position": 8 + }, + "Laser Rastering Geometry": { + "type": "select", + "value": "none", + "options": [ + "none", + "on a square", + "on a rectangle", + "on a line", + "other" + ], + "group_id": 2, + "position": 3 + }, + "Laser Rastering Position": { + "type": "number", + "unit": "", + "units": [], + "value": "", + "group_id": 2, + "position": 5 + }, + "Layer Progressive Number": { + "type": "number", + "unit": "", + "units": [], + "value": "2", + "group_id": 1, + "position": 1, + "required": true + } + } + }, + "modified_at": "2026-02-09 15:16:33", + "next_step": null, + "orcid": "0000-0003-4231-9776", + "page": "experiments", + "rating": 0, + "recent_comment": null, + "related_experiments_links": [], + "related_items_links": [], + "sharelink": "https://elabftw.fisica.unina.it:8080/experiments.php?mode=view&id=58", + "state": 1, + "status": null, + "status_color": null, + "status_title": null, + "steps": [ + { + "id": 74, + "item_id": 58, + "body": "add process data", + "ordering": 1, + "finished": 1, + "finished_time": "2026-02-09 09:54:53", + "deadline": null, + "deadline_notif": 0 + }, + { + "id": 75, + "item_id": 58, + "body": "add RHEED data", + "ordering": 2, + "finished": 1, + "finished_time": "2026-02-09 09:54:54", + "deadline": null, + "deadline_notif": 0 + }, + { + "id": 76, + "item_id": 58, + "body": "add RHEED images", + "ordering": 3, + "finished": 1, + "finished_time": "2026-02-09 09:54:56", + "deadline": null, + "deadline_notif": 0 + } + ], + "tags": null, + "tags_id": null, + "team": 1, + "team_name": "Default team", + "timestamped": 0, + "timestamped_at": null, + "timestampedby": null, + "title": "Na-26-015 eto on lao on sto", + "type": "experiments", + "uploads": [], + "userid": 2 +} \ No newline at end of file