Skip to content

Commit

Permalink
organise imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alik-git committed Dec 3, 2024
1 parent f1cbc9e commit c78f3f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion sim/compare_h5.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
"""

import argparse
from pathlib import Path

import h5py
import numpy as np
from pathlib import Path


def load_h5_file(file_path):
Expand Down
2 changes: 1 addition & 1 deletion sim/h5_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from typing import Dict

import h5py
import numpy as np
import matplotlib.pyplot as plt # dependency issues with python 3.8
import numpy as np


class HDF5Logger:
Expand Down
17 changes: 9 additions & 8 deletions sim/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,28 @@
import argparse
import copy
import logging
import math
import os
import time
import uuid
from datetime import datetime
from typing import Any, Union
import math

import cv2
import h5py
import numpy as np
from isaacgym import gymapi
import torch # isort: skip
from tqdm import tqdm

from sim.env import run_dir # noqa: E402
from sim.envs import task_registry # noqa: E402
from sim.model_export import ActorCfg, convert_model_to_onnx # noqa: E402
from sim.utils.helpers import get_args # noqa: E402
from sim.utils.logger import Logger # noqa: E402

# Local imports third
from sim.env import run_dir
from sim.envs import task_registry
from sim.h5_logger import HDF5Logger
from sim.model_export import ActorCfg, convert_model_to_onnx
from sim.utils.helpers import get_args
from sim.utils.logger import Logger

import torch # special case with isort: skip comment

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit c78f3f7

Please sign in to comment.