main.py
def is_goal_conditioned(args):
    """
    Be careful with checking this condition. See `generate_goals.py`. Here,
    though, we check the task name and as an extra safety measure, check that
    the agent is also named with 'goal'.

    Update: all right, let's modify this to incorpoate gt_state w/out too much
    extra work. :(
    """
    goal_tasks = ['insertion-goal', 'cable-shape-notarget', 'cable-line-notarget',
            'cloth-flat-notarget', 'bag-color-goal']
    goal_task = (args.task in goal_tasks)
    if goal_task:
        assert 'goal' in args.agent or 'gt_state' in args.agent, \
            'Agent should be a goal-based agent, or gt_state agent.'
    return goal_task

    Be careful with checking this condition. See `generate_goals.py`. Here,
    though, we check the task name and as an extra safety measure, check that
    the agent is also named with 'goal'.

    Update: all right, let's modify this to incorpoate gt_state w/out too much
    extra work. :(
    
Be careful with checking this condition.

all right, let's modify this to incorpoate gt_state w/out too much
extra work.
Be careful with checking this condition . all right let ' s modify this to incorpoate gt_state w / out too much extra work .
def is_goal_conditioned(args):
    goal_tasks = ['insertion-goal', 'cable-shape-notarget', 'cable-line-notarget',
            'cloth-flat-notarget', 'bag-color-goal']
    goal_task = (args.task in goal_tasks)
    if goal_task:
        assert 'goal' in args.agent or 'gt_state' in args.agent, \
            'Agent should be a goal-based agent, or gt_state agent.'
    return goal_task
def is_goal_conditioned ( args ) : goal_tasks = [ 'insertion-goal' , 'cable-shape-notarget' , 'cable-line-notarget' , 'cloth-flat-notarget' , 'bag-color-goal' ] goal_task = ( args . task in goal_tasks ) if goal_task : assert 'goal' in args . agent or 'gt_state' in args . agent , 'Agent should be a goal-based agent, or gt_state agent.' return goal_task
Be careful with checking this condition.
Be careful with checking this condition .
"""
    Be careful with checking this condition. See `generate_goals.py`. Here,
    though, we check the task name and as an extra safety measure, check that
    the agent is also named with 'goal'.

    Update: all right, let's modify this to incorpoate gt_state w/out too much
    extra work. :(
    """
args