HomesteaderLabs commited on
Commit
7d4ae63
·
verified ·
1 Parent(s): b5d6b93

Deploy Forager's Field Station

Browse files
.gitattributes CHANGED
@@ -4,3 +4,4 @@ examples/lions_mane.jpg filter=lfs diff=lfs merge=lfs -text
4
  examples/poison_hemlock.jpg filter=lfs diff=lfs merge=lfs -text
5
  examples/wild_blueberry.jpg filter=lfs diff=lfs merge=lfs -text
6
  examples/yarrow.jpg filter=lfs diff=lfs merge=lfs -text
 
 
4
  examples/poison_hemlock.jpg filter=lfs diff=lfs merge=lfs -text
5
  examples/wild_blueberry.jpg filter=lfs diff=lfs merge=lfs -text
6
  examples/yarrow.jpg filter=lfs diff=lfs merge=lfs -text
7
+ game/deck_images/water_hemlock_deadly__663372642.jpg filter=lfs diff=lfs merge=lfs -text
game/deck.json CHANGED
@@ -1,7 +1,102 @@
1
  [
2
- {"file": "chanterelle.jpg", "species": "chanterelles_edible"},
3
- {"file": "lions_mane.jpg", "species": "lions_mane"},
4
- {"file": "wild_blueberry.jpg", "species": "blueberry_wild"},
5
- {"file": "yarrow.jpg", "species": "yarrow"},
6
- {"file": "poison_hemlock.jpg", "species": "poison_hemlock_deadly"}
7
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  [
2
+ {
3
+ "file": "reishi_northeast__662301033.jpg",
4
+ "species": "reishi_northeast"
5
+ },
6
+ {
7
+ "file": "echinacea__646942562.jpg",
8
+ "species": "echinacea"
9
+ },
10
+ {
11
+ "file": "ramps_wild_leek__662075586.jpg",
12
+ "species": "ramps_wild_leek"
13
+ },
14
+ {
15
+ "file": "ginseng_american__662214208.jpg",
16
+ "species": "ginseng_american"
17
+ },
18
+ {
19
+ "file": "amanita_muscaria_toxic__663607779.jpg",
20
+ "species": "amanita_muscaria_toxic"
21
+ },
22
+ {
23
+ "file": "staghorn_sumac__664305710.jpg",
24
+ "species": "staghorn_sumac"
25
+ },
26
+ {
27
+ "file": "water_hemlock_deadly__663372642.jpg",
28
+ "species": "water_hemlock_deadly"
29
+ },
30
+ {
31
+ "file": "coltsfoot__663834127.jpg",
32
+ "species": "coltsfoot"
33
+ },
34
+ {
35
+ "file": "blueberry_highbush__656939917.jpg",
36
+ "species": "blueberry_highbush"
37
+ },
38
+ {
39
+ "file": "burdock__652914440.jpg",
40
+ "species": "burdock"
41
+ },
42
+ {
43
+ "file": "high_value_toxics__662489265.jpg",
44
+ "species": "high_value_toxics"
45
+ },
46
+ {
47
+ "file": "pokeweed_toxic__663960132.jpg",
48
+ "species": "pokeweed_toxic"
49
+ },
50
+ {
51
+ "file": "ginseng_american__663339770.jpg",
52
+ "species": "ginseng_american"
53
+ },
54
+ {
55
+ "file": "galerina_marginata_toxic__635658527.jpg",
56
+ "species": "galerina_marginata_toxic"
57
+ },
58
+ {
59
+ "file": "poison_ivy__663506123.jpg",
60
+ "species": "poison_ivy"
61
+ },
62
+ {
63
+ "file": "boneset__654606182.jpg",
64
+ "species": "boneset"
65
+ },
66
+ {
67
+ "file": "goldenrod__658737923.jpg",
68
+ "species": "goldenrod"
69
+ },
70
+ {
71
+ "file": "blackberry_common__661690633.jpg",
72
+ "species": "blackberry_common"
73
+ },
74
+ {
75
+ "file": "amanita_phalloides_deadly__662221770.jpg",
76
+ "species": "amanita_phalloides_deadly"
77
+ },
78
+ {
79
+ "file": "stinging_nettle__664055795.jpg",
80
+ "species": "stinging_nettle"
81
+ },
82
+ {
83
+ "file": "coltsfoot__663784606.jpg",
84
+ "species": "coltsfoot"
85
+ },
86
+ {
87
+ "file": "red_clover__664080133.jpg",
88
+ "species": "red_clover"
89
+ },
90
+ {
91
+ "file": "bittersweet_nightshade_toxic__663841858.jpg",
92
+ "species": "bittersweet_nightshade_toxic"
93
+ },
94
+ {
95
+ "file": "psilocybe_azurescens__596375868.jpg",
96
+ "species": "psilocybe_azurescens"
97
+ },
98
+ {
99
+ "file": "staghorn_sumac__659338180.jpg",
100
+ "species": "staghorn_sumac"
101
+ }
102
+ ]
game/deck.py CHANGED
@@ -14,7 +14,7 @@ import random
14
  from pipeline.metadata import SPECIES_METADATA, UNKNOWN_META
15
 
16
  _HERE = os.path.dirname(__file__)
17
- _EXAMPLES_DIR = os.path.join(_HERE, "..", "examples")
18
 
19
 
20
  def _load_deck() -> list[dict]:
@@ -22,7 +22,7 @@ def _load_deck() -> list[dict]:
22
  raw = json.load(f)
23
  deck = []
24
  for c in raw:
25
- path = os.path.join(_EXAMPLES_DIR, c["file"])
26
  if not os.path.exists(path):
27
  continue
28
  meta = SPECIES_METADATA.get(c["species"], UNKNOWN_META)
 
14
  from pipeline.metadata import SPECIES_METADATA, UNKNOWN_META
15
 
16
  _HERE = os.path.dirname(__file__)
17
+ _IMAGES_DIR = os.path.join(_HERE, "deck_images")
18
 
19
 
20
  def _load_deck() -> list[dict]:
 
22
  raw = json.load(f)
23
  deck = []
24
  for c in raw:
25
+ path = os.path.join(_IMAGES_DIR, c["file"])
26
  if not os.path.exists(path):
27
  continue
28
  meta = SPECIES_METADATA.get(c["species"], UNKNOWN_META)
game/deck_images/amanita_muscaria_toxic__663607779.jpg ADDED
game/deck_images/amanita_phalloides_deadly__662221770.jpg ADDED
game/deck_images/bittersweet_nightshade_toxic__663841858.jpg ADDED
game/deck_images/blackberry_common__661690633.jpg ADDED
game/deck_images/blueberry_highbush__656939917.jpg ADDED
game/deck_images/boneset__654606182.jpg ADDED
game/deck_images/burdock__652914440.jpg ADDED
game/deck_images/coltsfoot__663784606.jpg ADDED
game/deck_images/coltsfoot__663834127.jpg ADDED
game/deck_images/echinacea__646942562.jpg ADDED
game/deck_images/galerina_marginata_toxic__635658527.jpg ADDED
game/deck_images/ginseng_american__662214208.jpg ADDED
game/deck_images/ginseng_american__663339770.jpg ADDED
game/deck_images/goldenrod__658737923.jpg ADDED
game/deck_images/high_value_toxics__662489265.jpg ADDED
game/deck_images/poison_ivy__663506123.jpg ADDED
game/deck_images/pokeweed_toxic__663960132.jpg ADDED
game/deck_images/psilocybe_azurescens__596375868.jpg ADDED
game/deck_images/ramps_wild_leek__662075586.jpg ADDED
game/deck_images/red_clover__664080133.jpg ADDED
game/deck_images/reishi_northeast__662301033.jpg ADDED
game/deck_images/staghorn_sumac__659338180.jpg ADDED
game/deck_images/staghorn_sumac__664305710.jpg ADDED
game/deck_images/stinging_nettle__664055795.jpg ADDED
game/deck_images/water_hemlock_deadly__663372642.jpg ADDED

Git LFS Details

  • SHA256: b9ae2caf591147b98625ba3ed3c237c32dddc0fa36ca1fdacafba24355a86801
  • Pointer size: 131 Bytes
  • Size of remote file: 106 kB