# Path: utility/exceptions.py
# class IdsLoadError(Exception):
#     def __init__(self, *args, **kwargs):
#         pass
# 
#     @staticmethod
#     def __new__(*args, **kwargs):
#         """ Create and return a new object.  See help(type) for accurate signature. """
#         pass


import pyual
import os
from utility.exceptions import IdsLoadError


class ImasObject:
    def __init__(self, shot, run, user, machine):
        assert isinstance(shot, int)
        self.shot = shot

        assert isinstance(run, int)
        self.run = run

        if user is None:
            self.user = os.getenv('USER')
            self.local_data_base = False
        else:
            assert isinstance(user, str)
            self.user = user
            self.local_data_base = True

        if machine is None:
            self.machine = 'iter'

# Path: utility/exceptions.py
# class IdsLoadError(Exception):
#     def __init__(self, *args, **kwargs):
#         pass
# 
#     @staticmethod
#     def __new__(*args, **kwargs):
#         """ Create and return a new object.  See help(type) for accurate signature. """
#         pass


# Path: imas_utility/idsinstance.py
import pyual
import os
from utility.exceptions import IdsLoadError



class ImasObject:
    def __init__(self, shot, run, user, machine):
        assert isinstance(shot, int)
        self.shot = shot

        assert isinstance(run, int)
        self.run = run

        if user is None:
            self.user = os.getenv('USER')
            self.local_data_base = False
        else:
            assert isinstance(user, str)
            self.user = user
            self.local_data_base = True

        if machine is None:
            self.machine = 'iter'

        else: