Skip to content

Conversation

@shankerram3
Copy link

addressed all the PR comments from
#108
removed unwanted files and added an example and removed hardcoded file paths

shankerram3 and others added 11 commits October 27, 2025 18:51
Updated README with sample rendering code for wildfree simulation.
Added sections on wildfire simulation motivation, research goals, and citations to the README.
This commit addresses all the review comments from PR meta-pytorch#108:

1. Remove .ipynb_checkpoints directories from version control
   - Deleted all checkpoint files that were accidentally committed

2. Fix hardcoded file paths in README
   - Removed hardcoded path: sys.path.append("/workspace/OpenEnv/src")
   - Changed port from 8020 to 8000 for consistency
   - Removed unnecessary import of WildfireEnvironment from example

3. Standardize environment variable naming
   - Changed WILDFIRE_W to WILDFIRE_WIDTH in server/app.py
   - Changed WILDFIRE_H to WILDFIRE_HEIGHT in server/app.py
   - Now consistent with documentation and other env vars

4. Fix action case consistency
   - Changed "WAIT" to "wait" in README example
   - Ensures consistency with lowercase action names

5. Add note about Jupyter-specific dependencies
   - Added note in README explaining IPython requirements
   - References new standalone example file

6. Add burn_timers to WildfireState dataclass
   - Added burn_timers field to models.py for type safety
   - Prevents runtime attribute assignment outside dataclass

7. Create examples/wildfire.py demonstration file
   - New standalone Python example without Jupyter dependencies
   - Demonstrates basic firefighting strategy
   - Includes visualization using render_grid function

8. Code cleanup
   - Fixed formatting in models.py (moved misplaced comment)
   - Removed unused imports (List, replace) from wildfire_environment.py
   - Improved import organization and PEP 8 compliance
   - Fixed typo: "wildfree" to "wildfire" in README

All changes maintain backward compatibility while improving
code quality and usability.
Address final Copilot AI review comments:

1. Add blank line before render_grid function (PEP 8)
   - Added two blank lines between class and module-level function

2. Fix excessive whitespace in client.py
   - Removed extra spaces after "burned=" in metadata string

3. Fix inconsistent indentation in wildfire_environment.py
   - Corrected state property indentation to use 4-space standard
   - Fixed comment alignment
   - Fixed docstring and return statement indentation

All code now follows PEP 8 style guidelines.
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 2, 2025
@github-actions
Copy link

github-actions bot commented Nov 2, 2025

⚠️ Deployment failed for wildfire_env

  • Space repo:
  • Live URL:

Please resolve your environment.

You can iterate locally or validate fixes by running scripts/deploy_to_hf.sh --env "wildfire_env".

@shankerram3 shankerram3 closed this Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants