]> Nutra Git (v2) - nutratech/cli.git/commitdiff
move nested list nnest blueprint to .rst file
authorShane Jaroch <chown_tee@proton.me>
Thu, 14 Dec 2023 18:01:19 +0000 (13:01 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 14 Dec 2023 18:01:19 +0000 (13:01 -0500)
ntclient/core/nnest.py
ntclient/core/nnest.rst [copied from ntclient/core/nnest.py with 71% similarity]

index a739d1fdf1005963ee35b8deec98f5c1cee6db0e..66dfc4de623320219b0e78b6c1dde4c3c11d9a7b 100644 (file)
@@ -35,101 +35,3 @@ nnest = {
     "amino_acids": set(),
     "other_components": {},
 }
-
-"""
-from ChatGPT:
-
-
-Here are the grouped categories and sub-categories of related nutrients based on the
-provided table:
-
-1. Protein:
-   - Protein (203)
-
-2. Fat:
-   - Total lipid (fat) (204)
-   - Fatty acids:
-     - Total trans (605)
-     - Total saturated (606)
-     - Total monounsaturated (645)
-     - Total polyunsaturated (646)
-
-3. Carbohydrates:
-   - Carbohydrate, by difference (205)
-   - Sugars:
-     - Sucrose (210)
-     - Glucose (dextrose) (211)
-     - Fructose (212)
-     - Lactose (213)
-     - Maltose (214)
-     - Sugars, total (269)
-   - Starch (209)
-   - Fiber, total dietary (291)
-
-4. Minerals:
-   - Electrolytes:
-     - Potassium, K (306)
-     - Sodium, Na (307)
-     - Magnesium, Mg (304)
-     - Calcium, Ca (301)
-   - Iron, Fe (303)
-   - Phosphorus, P (305)
-   - Zinc, Zn (309)
-   - Copper, Cu (312)
-   - Fluoride, F (313)
-   - Manganese, Mn (315)
-   - Selenium, Se (317)
-
-5. Vitamins:
-   - Vitamin A:
-     - Vitamin A, IU (318)
-     - Retinol (319)
-     - Vitamin A, RAE (320)
-     - Carotene:
-       - Carotene, beta (321)
-       - Carotene, alpha (322)
-   - Vitamin E:
-     - Vitamin E (alpha-tocopherol) (323)
-     - Vitamin E, added (573)
-   - Vitamin D:
-     - Vitamin D (324)
-     - Vitamin D2 (ergocalciferol) (325)
-     - Vitamin D3 (cholecalciferol) (326)
-     - Vitamin D (D2 + D3) (328)
-   - Vitamin C:
-     - Vitamin C, total ascorbic acid (401)
-   - B Vitamins:
-     - Thiamin (404)
-     - Riboflavin (405)
-     - Niacin (406)
-     - Pantothenic acid (410)
-     - Vitamin B-6 (415)
-     - Folate:
-       - Folate, total (417)
-       - Folic acid (431)
-       - Folate, food (432)
-       - Folate, DFE (435)
-     - Vitamin B-12:
-       - Vitamin B-12 (418)
-       - Vitamin B-12, added (578)
-     - Choline, total (421)
-   - Vitamin K:
-     - Vitamin K (phylloquinone) (430)
-
-6. Other Organic Compounds:
-   - Water (255)
-   - Caffeine (262)
-   - Theobromine (263)
-   - Betaine (454)
-   - Cholesterol (601)
-   - Phytosterols:
-     - Phytosterols (636)
-     - Stigmasterol (638)
-     - Campesterol (639)
-     - Beta-sitosterol (641)
-   - Phytochemicals (e.g., flavonoids, isoflavones) and their subcategories
-   - Ash (207)
-
-Please note that this list may not include all possible nutrient categories and
-sub-categories, and there may be other ways to categorize them as well.
-"""
similarity index 71%
copy from ntclient/core/nnest.py
copy to ntclient/core/nnest.rst
index a739d1fdf1005963ee35b8deec98f5c1cee6db0e..16e0b69d301551f771894d39bc1b1ac449e6b8fd 100644 (file)
@@ -1,42 +1,3 @@
-# -*- coding: utf-8 -*-
-"""
-Created on Sat Aug 29 19:43:55 2020
-
-@author: shane
-"""
-
-
-# pylint: disable=too-few-public-methods
-class Nutrient:
-    """Tracks properties of nutrients; used in the tree structure of nutrient groups"""
-
-    def __init__(self, nut_id: int, name: str, hidden: bool = False):
-        self.nut_id = nut_id
-        self.name = name
-        self.hidden = hidden
-
-
-nnest = {
-    # "basics": ["Protein", "Carbs", "Fats", "Fiber", "Calories"],
-    "basics": {
-        # 203: {"name": "Protein", "hidden": False},
-        203: Nutrient(203, "Protein"),
-        205: "Carbs",
-        204: "Fats",
-        291: "Fiber",
-        208: "Calories (kcal)",
-    },
-    "macro_details": {"Carbs": {}, "Fat": {}},
-    "micro_nutrients": {
-        "Vitamins": {"Water-Soluble": {}, "Fat-Soluble": {}},
-        "Minerals": [],
-    },
-    "fatty_acids": {},
-    "amino_acids": set(),
-    "other_components": {},
-}
-
-"""
 from ChatGPT:
 
 
@@ -44,34 +5,43 @@ Here are the grouped categories and sub-categories of related nutrients based on
 provided table:
 
 1. Protein:
+
    - Protein (203)
 
 2. Fat:
+
    - Total lipid (fat) (204)
    - Fatty acids:
+
      - Total trans (605)
      - Total saturated (606)
      - Total monounsaturated (645)
      - Total polyunsaturated (646)
 
 3. Carbohydrates:
+
    - Carbohydrate, by difference (205)
    - Sugars:
+
      - Sucrose (210)
      - Glucose (dextrose) (211)
      - Fructose (212)
      - Lactose (213)
      - Maltose (214)
      - Sugars, total (269)
+
    - Starch (209)
    - Fiber, total dietary (291)
 
 4. Minerals:
+
    - Electrolytes:
+
      - Potassium, K (306)
      - Sodium, Na (307)
      - Magnesium, Mg (304)
      - Calcium, Ca (301)
+
    - Iron, Fe (303)
    - Phosphorus, P (305)
    - Zinc, Zn (309)
@@ -81,55 +51,75 @@ provided table:
    - Selenium, Se (317)
 
 5. Vitamins:
+
    - Vitamin A:
+
      - Vitamin A, IU (318)
      - Retinol (319)
      - Vitamin A, RAE (320)
      - Carotene:
+
        - Carotene, beta (321)
        - Carotene, alpha (322)
+
    - Vitamin E:
+
      - Vitamin E (alpha-tocopherol) (323)
      - Vitamin E, added (573)
+
    - Vitamin D:
+
      - Vitamin D (324)
      - Vitamin D2 (ergocalciferol) (325)
      - Vitamin D3 (cholecalciferol) (326)
      - Vitamin D (D2 + D3) (328)
+
    - Vitamin C:
+
      - Vitamin C, total ascorbic acid (401)
+
    - B Vitamins:
+
      - Thiamin (404)
      - Riboflavin (405)
      - Niacin (406)
      - Pantothenic acid (410)
      - Vitamin B-6 (415)
      - Folate:
+
        - Folate, total (417)
        - Folic acid (431)
        - Folate, food (432)
        - Folate, DFE (435)
+
      - Vitamin B-12:
+
        - Vitamin B-12 (418)
        - Vitamin B-12, added (578)
+
      - Choline, total (421)
+
    - Vitamin K:
+
      - Vitamin K (phylloquinone) (430)
 
 6. Other Organic Compounds:
+
    - Water (255)
    - Caffeine (262)
    - Theobromine (263)
    - Betaine (454)
    - Cholesterol (601)
    - Phytosterols:
+
      - Phytosterols (636)
      - Stigmasterol (638)
      - Campesterol (639)
      - Beta-sitosterol (641)
+
    - Phytochemicals (e.g., flavonoids, isoflavones) and their subcategories
    - Ash (207)
 
 Please note that this list may not include all possible nutrient categories and
 sub-categories, and there may be other ways to categorize them as well.
-"""
+