"""Little module to find the path of a Cosmo box simulation"""

import os.path as path

base=path.expanduser("~/data/Cosmo/")

def get_name(sim, ff=True):
    """Get the directory for a simulation"""
    halo = "Cosmo"+str(sim)+"_V6"
    if ff:
        halo=path.join(halo,"L25n512/output")
    else:
        halo=path.join(halo,"L25n256")
    return path.join(base, halo)

"""Little module to find the path of a Cosmo box simulation"""

import os.path as path

base=path.expanduser("~/data/Cosmo/")

def get_name(sim, ff=True, box=25):
    """Get the directory for a simulation"""
    halo = "Cosmo"+str(sim)+"_V6"
    if ff:
        halo=path.join(halo,"L"+str(box)+"n512/output")
    else:
        halo=path.join(halo,"L"+str(box)+"256")
    return path.join(base, halo)

Allow loading of different box sizes
Allow loading of different box sizes

  """Little module to find the path of a Cosmo box simulation"""
  
  import os.path as path
  
  base=path.expanduser("~/data/Cosmo/")
  
- def get_name(sim, ff=True):
+ def get_name(sim, ff=True, box=25):
      """Get the directory for a simulation"""
      halo = "Cosmo"+str(sim)+"_V6"
      if ff:
-         halo=path.join(halo,"L25n512/output")
+         halo=path.join(halo,"L"+str(box)+"n512/output")
      else:
-         halo=path.join(halo,"L25n256")
+         halo=path.join(halo,"L"+str(box)+"256")
      return path.join(base, halo)
  
Allow loading of different box sizes
## Code Before:
"""Little module to find the path of a Cosmo box simulation"""

import os.path as path

base=path.expanduser("~/data/Cosmo/")

def get_name(sim, ff=True):
    """Get the directory for a simulation"""
    halo = "Cosmo"+str(sim)+"_V6"
    if ff:
        halo=path.join(halo,"L25n512/output")
    else:
        halo=path.join(halo,"L25n256")
    return path.join(base, halo)

## Instruction:
Allow loading of different box sizes
## Code After:
"""Little module to find the path of a Cosmo box simulation"""

import os.path as path

base=path.expanduser("~/data/Cosmo/")

def get_name(sim, ff=True, box=25):
    """Get the directory for a simulation"""
    halo = "Cosmo"+str(sim)+"_V6"
    if ff:
        halo=path.join(halo,"L"+str(box)+"n512/output")
    else:
        halo=path.join(halo,"L"+str(box)+"256")
    return path.join(base, halo)
