123 lines
3.7 KiB
Plaintext
123 lines
3.7 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"id": "f512fba3-877f-411e-935c-0c878d478b2d",
|
|
"metadata": {
|
|
"scrolled": true
|
|
},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"<jsonapi_requests.orm.api.OrmApi object at 0x0000017A7722BA10>\n",
|
|
"<jsonapi_requests.orm.api.OrmApi object at 0x0000017A7722BA10>\n",
|
|
"name: W-Raps Otello KWS Helmacker Seeding 24/25\n",
|
|
"timestamp: 2024-08-22T22:00:00+00:00\n",
|
|
"plant name: W-Raps Helmacker Plant 24/25\n",
|
|
"plant crop: Raps\n",
|
|
"plant loc: Helmacker\n",
|
|
"equipment: Sähmaschine Cataya\n",
|
|
"isMovement: False\n",
|
|
"Q1 type: quantity--standard\n",
|
|
"Q1 measure: weight\n",
|
|
"Q1 value: 50\n",
|
|
"Q1 units: kg\n",
|
|
"Q1 inv adj: decrement\n",
|
|
"Q1 inv ass: W-Raps Saatgut Otello KWS Seed 08/24\n",
|
|
"Q2 type: quantity--standard\n",
|
|
"Q2 measure: area\n",
|
|
"Q2 value: 3.02\n",
|
|
"Q2 units: ha\n",
|
|
"name: W-Raps Otello KWS Nachtweide Seeding 24/25\n",
|
|
"timestamp: 2024-08-28T22:00:00+00:00\n",
|
|
"plant name: W-Raps Nachtweide Plant 24/25 \n",
|
|
"plant crop: Raps\n",
|
|
"plant loc: Nachtweide\n",
|
|
"equipment: Sähmaschine Cataya\n",
|
|
"isMovement: False\n",
|
|
"Q1 type: quantity--standard\n",
|
|
"Q1 measure: weight\n",
|
|
"Q1 value: 66\n",
|
|
"Q1 units: kg\n",
|
|
"Q1 inv adj: decrement\n",
|
|
"Q1 inv ass: W-Raps Saatgut Otello KWS Seed 08/24\n",
|
|
"Q2 type: quantity--standard\n",
|
|
"Q2 measure: area\n",
|
|
"Q2 value: 4.5\n",
|
|
"Q2 units: ha\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"import neofarm.lib as neo\n",
|
|
"import importlib\n",
|
|
"importlib.reload(neo)\n",
|
|
"\n",
|
|
"seedings = neo.Seeding.get_list()\n",
|
|
"for seeding in seedings:\n",
|
|
" plant = seeding.getPlant()\n",
|
|
" equipment = seeding.equipment[0]\n",
|
|
" quantity1 = seeding.quantities[0]\n",
|
|
" quantity2 = seeding.quantities[1]\n",
|
|
" print(f\"name: {seeding.name}\")\n",
|
|
" print(f\"timestamp: {seeding.timestamp}\")\n",
|
|
" print(f\"plant name: {plant.name}\")\n",
|
|
" print(f\"plant crop: {plant.crop[0].name}\")\n",
|
|
" print(f\"plant loc: {plant.location[0].name}\")\n",
|
|
" print(f\"equipment: {equipment.name}\")\n",
|
|
" print(f\"isMovement: {seeding.isMovement}\")\n",
|
|
" print(f\"Q1 type: {quantity1.type}\")\n",
|
|
" print(f\"Q1 measure: {quantity1.measure}\")\n",
|
|
" print(f\"Q1 value: {quantity1.value}\")\n",
|
|
" print(f\"Q1 units: {quantity1.units.name}\")\n",
|
|
" print(f\"Q1 inv adj: {quantity1.inventory_adjustment}\")\n",
|
|
" print(f\"Q1 inv ass: {quantity1.inventory_asset.name}\")\n",
|
|
" print(f\"Q2 type: {quantity2.type}\")\n",
|
|
" print(f\"Q2 measure: {quantity2.measure}\")\n",
|
|
" print(f\"Q2 value: {quantity2.value}\")\n",
|
|
" print(f\"Q2 units: {quantity2.units.name}\")"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "fdf49f3b-3949-4895-97fb-f5bd2484fce3",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "28598d92-24f2-47cb-bb19-9943800eefe1",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3 (ipykernel)",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.12.5"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 5
|
|
}
|