Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikschubert committed Sep 4, 2023
1 parent afeb85c commit a2a1b1e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions carl/envs/mario/pcg_smb_env/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from functools import partial

from gym.envs.registration import register, registry
from gym.envs.registration import register

from .mario_env import MarioEnv
from .toadgan.toad_gan import generate_level

for level in range(1, 16):
level_file = f"lvl-{level}.txt"
Expand Down
2 changes: 1 addition & 1 deletion carl/envs/mario/pcg_smb_env/mario_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def _receive(self):
while len(frameBuffer) != self.frame_size:
frameBuffer += self.socket.recv(self.frame_size)
return frameBuffer

def get_action_meanings(self) -> List[str]:
return ACTION_MEANING

Expand Down
1 change: 0 additions & 1 deletion carl/envs/mario/pcg_smb_env/toadgan/modules/generator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Code from https://github.com/Mawiszus/TOAD-GAN
from argparse import Namespace

import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
Expand Down
1 change: 0 additions & 1 deletion carl/envs/mario/pcg_smb_env/toadgan/toad_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import sys
from dataclasses import dataclass
from typing import Optional

import torch
from torch import Tensor
Expand Down

0 comments on commit a2a1b1e

Please sign in to comment.