Mini Shell
3
�XZs � @ s0 d dl Z d dlZd dlmZ G dd� de�ZdS )� N)�localeCc @ s� e Zd ZdZedd� �Zedd� dd� �Zedd� dd� �Zd d
� Z dd� Z
d
d� Zedd� �Zedd� �Z
edd� �Zedd� �Zedd� �Zdd� ZdS )� Alignmenta� Alignment()
An Alignment object describes constraints on how sectors and Geometry
objects are aligned. Being aligned means that the sector be located at
a specific sector multiple on a device, or that a geometry must start
and end at sectors at those specific multiples. Most methods on this
object raise ArithmeticError if calculating alignments fails.c O sP d|kr|j d�| _n6d|krBd|krBtj|j d�|j d��| _n
tjd��dS )zOCreate a new Alignment object from the sectors offset and
grainSize.�PedAlignment�offset� grainSizez-no offset+grainSize or PedAlignment specifiedN)�get�_Alignment__alignment�_pedr �partedZAlignmentException)�self�args�kwargs� r �!/usr/lib64/python3.6/alignment.py�__init__'