mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-06-25 02:50:59 +00:00
Add textarea for logs in issue templates (#1115)
* Add textarea for trackbacks in issue templates * Use shell render for traceback
This commit is contained in:
parent
1bff6215b6
commit
b77a0667b2
2 changed files with 15 additions and 7 deletions
10
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
10
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
|
|
@ -30,10 +30,14 @@ body:
|
|||
|
||||
```
|
||||
|
||||
```bash
|
||||
Traceback (most recent call last): File ...
|
||||
- type: textarea
|
||||
id: traceback
|
||||
attributes:
|
||||
label: Relevant log output / Error message
|
||||
description: Please copy and paste any relevant log output / error message. This will be automatically formatted into code, so no need for backticks.
|
||||
placeholder: "Traceback (most recent call last): File ..."
|
||||
render: shell
|
||||
|
||||
```
|
||||
- type: textarea
|
||||
id: system-info
|
||||
attributes:
|
||||
|
|
|
|||
12
.github/ISSUE_TEMPLATE/custom_env.yml
vendored
12
.github/ISSUE_TEMPLATE/custom_env.yml
vendored
|
|
@ -44,7 +44,7 @@ body:
|
|||
class CustomEnv(gym.Env):
|
||||
|
||||
def __init__(self):
|
||||
super(CustomEnv, self).__init__()
|
||||
super().__init__()
|
||||
self.observation_space = gym.spaces.Box(low=-np.inf, high=np.inf, shape=(14,))
|
||||
self.action_space = gym.spaces.Box(low=-1, high=1, shape=(6,))
|
||||
|
||||
|
|
@ -64,10 +64,14 @@ body:
|
|||
model = A2C("MlpPolicy", env, verbose=1).learn(1000)
|
||||
```
|
||||
|
||||
```bash
|
||||
Traceback (most recent call last): File ...
|
||||
- type: textarea
|
||||
id: traceback
|
||||
attributes:
|
||||
label: Relevant log output / Error message
|
||||
description: Please copy and paste any relevant log output / error message. This will be automatically formatted into code, so no need for backticks.
|
||||
placeholder: "Traceback (most recent call last): File ..."
|
||||
render: shell
|
||||
|
||||
```
|
||||
- type: textarea
|
||||
id: system-info
|
||||
attributes:
|
||||
|
|
|
|||
Loading…
Reference in a new issue