continual-foragax 0.18.0__tar.gz → 0.19.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/PKG-INFO +1 -1
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/pyproject.toml +2 -2
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/PKG-INFO +1 -1
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/env.py +25 -11
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/registry.py +20 -1
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/README.md +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/setup.cfg +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/SOURCES.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/dependency_links.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/entry_points.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/requires.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/top_level.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/__init__.py +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/colors.py +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100897.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100928.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100929.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100930.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100931.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106714.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106715.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106716.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106717.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106718.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106930.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106931.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106932.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106933.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106934.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106935.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106936.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106937.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106938.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106939.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106940.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106941.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106942.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106943.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106994.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106995.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106996.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106997.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106998.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106999.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107000.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107001.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107002.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107003.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107004.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107005.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107006.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107007.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107008.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107009.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107010.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107011.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107012.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107013.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107014.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107015.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107016.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107017.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107018.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107019.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107020.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107021.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107022.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107023.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107024.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107025.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107026.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107027.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107028.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107029.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107030.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107031.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107032.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107033.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107034.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107035.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107036.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107037.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107038.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107039.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107040.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107041.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107042.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107043.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107044.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107045.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107046.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107047.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107048.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107049.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107050.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107051.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107052.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107053.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107054.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107055.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107056.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107057.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107058.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107059.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107060.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107061.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107062.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107063.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107064.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107065.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107066.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107067.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107068.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107069.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107070.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107071.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID115808.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID115812.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID146811.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156831.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156835.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156839.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156843.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156847.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156851.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156855.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156859.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156863.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156867.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156871.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156875.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156879.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156883.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156887.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/elements.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/metadata.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/data/ECA_non-blended_custom/sources.txt +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/objects.py +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/rendering.py +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/foragax/weather.py +0 -0
- {continual_foragax-0.18.0 → continual_foragax-0.19.0}/tests/test_foragax.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "continual-foragax"
|
3
|
-
version = "0.
|
3
|
+
version = "0.19.0"
|
4
4
|
description = "A continual reinforcement learning benchmark"
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -30,7 +30,7 @@ build-backend = "setuptools.build_meta"
|
|
30
30
|
[tool]
|
31
31
|
[tool.commitizen]
|
32
32
|
name = "cz_conventional_commits"
|
33
|
-
version = "0.
|
33
|
+
version = "0.19.0"
|
34
34
|
tag_format = "$version"
|
35
35
|
version_files = ["pyproject.toml"]
|
36
36
|
|
@@ -355,17 +355,31 @@ class ForagaxEnv(environment.Environment):
|
|
355
355
|
# Create indices for the aperture
|
356
356
|
y_offsets = jnp.arange(ap_h)
|
357
357
|
x_offsets = jnp.arange(ap_w)
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
358
|
+
y_coords_original = start_y + y_offsets[:, None]
|
359
|
+
x_coords_original = start_x + x_offsets
|
360
|
+
|
361
|
+
if self.nowrap:
|
362
|
+
y_coords = jnp.clip(y_coords_original, 0, self.size[1] - 1)
|
363
|
+
x_coords = jnp.clip(x_coords_original, 0, self.size[0] - 1)
|
364
|
+
in_bounds = (
|
365
|
+
(y_coords_original >= 0)
|
366
|
+
& (y_coords_original < self.size[1])
|
367
|
+
& (x_coords_original >= 0)
|
368
|
+
& (x_coords_original < self.size[0])
|
369
|
+
)
|
370
|
+
original_colors = img[y_coords, x_coords]
|
371
|
+
tinted_colors = (1 - alpha) * original_colors + alpha * agent_color
|
372
|
+
img = img.at[y_coords, x_coords].set(
|
373
|
+
jnp.where(
|
374
|
+
in_bounds[..., None], tinted_colors, img[y_coords, x_coords]
|
375
|
+
)
|
376
|
+
)
|
377
|
+
else:
|
378
|
+
y_coords = jnp.mod(y_coords_original, self.size[1])
|
379
|
+
x_coords = jnp.mod(x_coords_original, self.size[0])
|
380
|
+
original_colors = img[y_coords, x_coords]
|
381
|
+
tinted_colors = (1 - alpha) * original_colors + alpha * agent_color
|
382
|
+
img = img.at[y_coords, x_coords].set(tinted_colors)
|
369
383
|
|
370
384
|
# Agent color
|
371
385
|
img = img.at[state.pos[1], state.pos[0]].set(jnp.array(AGENT.color))
|
@@ -133,6 +133,13 @@ ENV_CONFIGS: Dict[str, Dict[str, Any]] = {
|
|
133
133
|
),
|
134
134
|
"nowrap": True,
|
135
135
|
},
|
136
|
+
"ForagaxTwoBiome-v7": {
|
137
|
+
"size": None,
|
138
|
+
"aperture_size": None,
|
139
|
+
"objects": (BROWN_MOREL_2, BROWN_OYSTER, GREEN_DEATHCAP_3, GREEN_FAKE_2),
|
140
|
+
"biomes": None,
|
141
|
+
"nowrap": True,
|
142
|
+
},
|
136
143
|
"ForagaxTwoBiomeSmall-v1": {
|
137
144
|
"size": (16, 8),
|
138
145
|
"aperture_size": None,
|
@@ -197,11 +204,23 @@ def make(
|
|
197
204
|
raise ValueError(f"Unknown env_id: {env_id}")
|
198
205
|
|
199
206
|
config = ENV_CONFIGS[env_id].copy()
|
200
|
-
|
207
|
+
if isinstance(aperture_size, int):
|
208
|
+
aperture_size = (aperture_size, aperture_size)
|
201
209
|
config["aperture_size"] = aperture_size
|
202
210
|
if nowrap is not None:
|
203
211
|
config["nowrap"] = nowrap
|
204
212
|
|
213
|
+
if env_id == "ForagaxTwoBiome-v7":
|
214
|
+
margin = aperture_size[1] // 2 + 1
|
215
|
+
width = 2 * margin + 9
|
216
|
+
config["size"] = (width, 15)
|
217
|
+
config["biomes"] = (
|
218
|
+
# Morel biome
|
219
|
+
Biome(start=(margin, 0), stop=(margin + 2, 15), object_frequencies=(0.25, 0.0, 0.5, 0.0)),
|
220
|
+
# Oyster biome
|
221
|
+
Biome(start=(margin + 7, 0), stop=(margin + 9, 15), object_frequencies=(0.0, 0.25, 0.0, 0.5)),
|
222
|
+
)
|
223
|
+
|
205
224
|
if env_id.startswith("ForagaxWeather"):
|
206
225
|
same_color = env_id == "ForagaxWeather-v2"
|
207
226
|
hot, cold = create_weather_objects(file_index=file_index, same_color=same_color)
|
File without changes
|
File without changes
|
{continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/requires.txt
RENAMED
File without changes
|
{continual_foragax-0.18.0 → continual_foragax-0.19.0}/src/continual_foragax.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|