after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def raise_uncaught_exception(self, exc): if settings.DEBUG: request = self.request renderer_format = getattr(request.accepted_renderer, "format") use_plaintext_traceback = renderer_format not in ("html", "api", "admin") request.force_plaintext_errors(use_plaintext_traceback) rais...
def raise_uncaught_exception(self, exc): if settings.DEBUG: request = self.request renderer_format = getattr(request.accepted_renderer, "format") use_plaintext_traceback = renderer_format not in ("html", "api", "admin") request.force_plaintext_errors(use_plaintext_traceback) rais...
https://github.com/encode/django-rest-framework/issues/4631
Traceback (most recent call last): File "/Users/coagulant/projects/myproject/project/tests/api/account_tests.py", line 346, in test_put_account_detail_restricted_fields_200 {'email': u'some.unconfirmed@email.com'}) File "/Users/coagulant/.envs/myproject/lib/python2.7/site-packages/rest_framework/test.py", line 307, in ...
KeyError
def get_serializer_fields(self, path, method, callback, view): """ Return a list of `coreapi.Field` instances corresponding to any request body input, as determined by the serializer class. """ if method not in ("PUT", "PATCH", "POST"): return [] fields = [] if not ( hasatt...
def get_serializer_fields(self, path, method, callback, view): """ Return a list of `coreapi.Field` instances corresponding to any request body input, as determined by the serializer class. """ if method not in ("PUT", "PATCH", "POST"): return [] fields = [] serializer_class = view...
https://github.com/encode/django-rest-framework/issues/4265
Traceback (most recent call last): File "/home/ashish/Env/backend/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response response = self.process_exception_by_middleware(e, request) File "/home/ashish/Env/backend/lib/python3.4/site-packages/django/core/handlers/base.py", line 147, in get_re...
AttributeError
def as_form_field(self): if self.value is None: return "" values = {} for key, value in self.value.items(): if isinstance(value, (list, dict)): values[key] = value else: values[key] = "" if value is None else force_text(value) return self.__class__(self._...
def as_form_field(self): values = {} for key, value in self.value.items(): if isinstance(value, (list, dict)): values[key] = value else: values[key] = "" if value is None else force_text(value) return self.__class__(self._field, values, self.errors, self._prefix)
https://github.com/encode/django-rest-framework/issues/3260
Traceback (most recent call last): File "<path_to_virtualenv>/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response response = response.render() File "<path_to_virtualenv>/lib/python2.7/site-packages/django/template/response.py", line 158, in render self.content = self.rendered_content Fi...
AttributeError
def to_representation(self, value): if not value: return None if self.format is None: return value # Applying a `DateField` to a datetime value is almost always # not a sensible thing to do, as it means naively dropping # any explicit or implicit timezone info. assert not isins...
def to_representation(self, value): if self.format is None: return value # Applying a `DateField` to a datetime value is almost always # not a sensible thing to do, as it means naively dropping # any explicit or implicit timezone info. assert not isinstance(value, datetime.datetime), ( ...
https://github.com/encode/django-rest-framework/issues/2687
Traceback (most recent call last): File "tests.py", line 10, in test_post_root_view response = self.view(request).render() File "/path/to/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/path/to/rest_framework/viewsets.py", line 85, in view return self.dispatch(request...
AttributeError
def set_context(self, serializer_field): self.user = serializer_field.context["request"].user
def set_context(self, serializer_field): self.is_update = serializer_field.parent.instance is not None
https://github.com/encode/django-rest-framework/issues/1945
====================================================================== ERROR: test_that_when_serializing_a_user_with_a_modified_password_but_without_the_old_password_then_the_serializer_is_not_valid (users.tests.unit.test_user_serializer.UserSerializationTestCase) -------------------------------------------------------...
KeyError
def __call__(self): return self.user
def __call__(self): if self.is_update: raise SkipField() if callable(self.default): return self.default() return self.default
https://github.com/encode/django-rest-framework/issues/1945
====================================================================== ERROR: test_that_when_serializing_a_user_with_a_modified_password_but_without_the_old_password_then_the_serializer_is_not_valid (users.tests.unit.test_user_serializer.UserSerializationTestCase) -------------------------------------------------------...
KeyError
def set_context(self, serializer_field): """ This hook is called by the serializer instance, prior to the validation call being made. """ # Determine the underlying model field name. This may not be the # same as the serializer field name if `source=<>` is set. self.field_name = serializer_f...
def set_context(self, serializer_field): # Determine the underlying model field name. This may not be the # same as the serializer field name if `source=<>` is set. self.field_name = serializer_field.source_attrs[0] # Determine the existing instance, if this is an update operation. self.instance = g...
https://github.com/encode/django-rest-framework/issues/1945
====================================================================== ERROR: test_that_when_serializing_a_user_with_a_modified_password_but_without_the_old_password_then_the_serializer_is_not_valid (users.tests.unit.test_user_serializer.UserSerializationTestCase) -------------------------------------------------------...
KeyError
def set_context(self, serializer): """ This hook is called by the serializer instance, prior to the validation call being made. """ # Determine the existing instance, if this is an update operation. self.instance = getattr(serializer, "instance", None)
def set_context(self, serializer): # Determine the existing instance, if this is an update operation. self.instance = getattr(serializer, "instance", None)
https://github.com/encode/django-rest-framework/issues/1945
====================================================================== ERROR: test_that_when_serializing_a_user_with_a_modified_password_but_without_the_old_password_then_the_serializer_is_not_valid (users.tests.unit.test_user_serializer.UserSerializationTestCase) -------------------------------------------------------...
KeyError
def __call__(self, attrs): self.enforce_required_fields(attrs) queryset = self.queryset queryset = self.filter_queryset(attrs, queryset) queryset = self.exclude_current_instance(attrs, queryset) if queryset.exists(): field_names = ", ".join(self.fields) raise ValidationError(self.mes...
def __call__(self, attrs): # Ensure uniqueness. filter_kwargs = dict( [(field_name, attrs[field_name]) for field_name in self.fields] ) queryset = self.queryset.filter(**filter_kwargs) if self.instance is not None: queryset = queryset.exclude(pk=self.instance.pk) if queryset.exis...
https://github.com/encode/django-rest-framework/issues/1945
====================================================================== ERROR: test_that_when_serializing_a_user_with_a_modified_password_but_without_the_old_password_then_the_serializer_is_not_valid (users.tests.unit.test_user_serializer.UserSerializationTestCase) -------------------------------------------------------...
KeyError
def set_context(self, serializer): """ This hook is called by the serializer instance, prior to the validation call being made. """ # Determine the underlying model field names. These may not be the # same as the serializer field names if `source=<>` is set. self.field_name = serializer.fiel...
def set_context(self, serializer): # Determine the underlying model field names. These may not be the # same as the serializer field names if `source=<>` is set. self.field_name = serializer.fields[self.field].source_attrs[0] self.date_field_name = serializer.fields[self.date_field].source_attrs[0] ...
https://github.com/encode/django-rest-framework/issues/1945
====================================================================== ERROR: test_that_when_serializing_a_user_with_a_modified_password_but_without_the_old_password_then_the_serializer_is_not_valid (users.tests.unit.test_user_serializer.UserSerializationTestCase) -------------------------------------------------------...
KeyError
def __call__(self, attrs): self.enforce_required_fields(attrs) queryset = self.queryset queryset = self.filter_queryset(attrs, queryset) queryset = self.exclude_current_instance(attrs, queryset) if queryset.exists(): message = self.message.format(date_field=self.date_field) raise Val...
def __call__(self, attrs): filter_kwargs = self.get_filter_kwargs(attrs) queryset = self.queryset.filter(**filter_kwargs) if self.instance is not None: queryset = queryset.exclude(pk=self.instance.pk) if queryset.exists(): message = self.message.format(date_field=self.date_field) ...
https://github.com/encode/django-rest-framework/issues/1945
====================================================================== ERROR: test_that_when_serializing_a_user_with_a_modified_password_but_without_the_old_password_then_the_serializer_is_not_valid (users.tests.unit.test_user_serializer.UserSerializationTestCase) -------------------------------------------------------...
KeyError
def _write_mseed( stream, filename, encoding=None, reclen=None, byteorder=None, sequence_number=None, flush=True, verbose=0, **_kwargs, ): """ Write Mini-SEED file from a Stream object. .. warning:: This function should NOT be called directly, it registers via th...
def _write_mseed( stream, filename, encoding=None, reclen=None, byteorder=None, sequence_number=None, flush=True, verbose=0, **_kwargs, ): """ Write Mini-SEED file from a Stream object. .. warning:: This function should NOT be called directly, it registers via th...
https://github.com/obspy/obspy/issues/2488
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "//anaconda2/lib/python2.7/site-packages/obspy/core/stream.py", line 1443, in write write_format(self, filename, **kwargs) File "//anaconda2/lib/python2.7/site-packages/obspy/io/mseed/core.py", line 626, in _write_mseed (1.0 / trace.stats.sampl...
ZeroDivisionError
def recalculate_overall_sensitivity(self, frequency=None): """ Recalculates the overall sensitivity. :param frequency: Choose frequency at which to calculate the sensitivity. If not given it will be chosen automatically. """ if not hasattr(self, "instrument_sensitivity"): msg = ( ...
def recalculate_overall_sensitivity(self, frequency=None): """ Recalculates the overall sensitivity. :param frequency: Choose frequency at which to calculate the sensitivity. If not given it will be chosen automatically. """ if not hasattr(self, "instrument_sensitivity"): msg = ( ...
https://github.com/obspy/obspy/issues/2338
In [0]: from obspy import read_inventory, UTCDateTime as UTC In [1]: inv = read_inventory() In [4]: rsp = inv.get_response('BW.RJOB..EHZ', UTC()) In [5]: rsp.recalculate_overall_sensitivity(5) --------------------------------------------------------------------------- ArgumentError Traceback...
ArgumentError
def _read_fixed_header(self): """ Reads the fixed header of the Mini-SEED file and writes all entries to self.fixed_header, a dictionary. """ # Init empty fixed header dictionary. Use an ordered dictionary to # achieve the same order as in the Mini-SEED manual. self.fixed_header = OrderedDic...
def _read_fixed_header(self): """ Reads the fixed header of the Mini-SEED file and writes all entries to self.fixed_header, a dictionary. """ # Init empty fixed header dictionary. Use an ordered dictionary to # achieve the same order as in the Mini-SEED manual. self.fixed_header = OrderedDic...
https://github.com/obspy/obspy/issues/2030
Traceback (most recent call last): File "./10_downloader.py", line 122, in <module> stationxml_storage=stationxml_storage) File "/home/legovini/obspy/obspy/clients/fdsn/mass_downloader/mass_downloader.py", line 201, in download threads_per_client=threads_per_client) File "/home/legovini/obspy/obspy/clients/fdsn/mass_do...
NotImplementedError
def __str__(self): """ Set the string representation of the class. """ if self.filename: filename = self.filename else: filename = "Unknown" if self.endian == "<": endian = "Little Endian" else: endian = "Big Endian" if self.did_goto: goto_info = (...
def __str__(self): """ Set the string representation of the class. """ if self.filename: filename = self.filename else: filename = "Unknown" if self.endian == "<": endian = "Little Endian" else: endian = "Big Endian" if self.did_goto: goto_info = (...
https://github.com/obspy/obspy/issues/2030
Traceback (most recent call last): File "./10_downloader.py", line 122, in <module> stationxml_storage=stationxml_storage) File "/home/legovini/obspy/obspy/clients/fdsn/mass_downloader/mass_downloader.py", line 201, in download threads_per_client=threads_per_client) File "/home/legovini/obspy/obspy/clients/fdsn/mass_do...
NotImplementedError
def _get_record_information(file_object, offset=0, endian=None): """ Searches the first MiniSEED record stored in file_object at the current position and returns some information about it. If offset is given, the MiniSEED record is assumed to start at current position + offset in file_object. ...
def _get_record_information(file_object, offset=0, endian=None): """ Searches the first MiniSEED record stored in file_object at the current position and returns some information about it. If offset is given, the MiniSEED record is assumed to start at current position + offset in file_object. ...
https://github.com/obspy/obspy/issues/2030
Traceback (most recent call last): File "./10_downloader.py", line 122, in <module> stationxml_storage=stationxml_storage) File "/home/legovini/obspy/obspy/clients/fdsn/mass_downloader/mass_downloader.py", line 201, in download threads_per_client=threads_per_client) File "/home/legovini/obspy/obspy/clients/fdsn/mass_do...
NotImplementedError
def __setitem__(self, key, value): """ """ # keys which need to refresh derived values if key in ["delta", "sampling_rate", "starttime", "npts"]: # ensure correct data type if key == "delta": key = "sampling_rate" try: value = 1.0 / float(value) ...
def __setitem__(self, key, value): """ """ # keys which need to refresh derived values if key in ["delta", "sampling_rate", "starttime", "npts"]: # ensure correct data type if key == "delta": key = "sampling_rate" value = 1.0 / float(value) elif key == "sampli...
https://github.com/obspy/obspy/issues/1989
--------------------------------------------------------------------------- ZeroDivisionError Traceback (most recent call last) <ipython-input-7-c105e6dd98fb> in <module>() ----> 1 pickle.loads(pickle.dumps(t)) ~/code/obspy/obspy/core/util/attribdict.py in __setstate__(self, adict) 113 ...
ZeroDivisionError
def _split_routing_response(data): """ Splits the routing responses per data center for the EIDAWS output. Returns a dictionary with the keys being the root URLs of the fdsnws endpoints and the values the data payloads for that endpoint. :param data: The return value from the EIDAWS routing servic...
def _split_routing_response(data): """ Splits the routing responses per data center for the EIDAWS output. Returns a dictionary with the keys being the root URLs of the fdsnws endpoints and the values the data payloads for that endpoint. :param data: The return value from the EIDAWS routing servic...
https://github.com/obspy/obspy/issues/1954
Downloading http://service.iris.edu/irisws/fedcatalog/1/query ... Sending along the following payload: ---------------------------------------------------------------------- level=station latitude=30 longitude=14 maxradius=10 format=request * * * * 2017-10-20T00:00:00.000000 * ------------------------------------------...
ValueError
def _split_routing_response(data, service): """ Splits the routing responses per data center for the federator output. Returns a dictionary with the keys being the root URLs of the fdsnws endpoints and the values the data payloads for that endpoint. :param data: The return value from the EIDAWS ro...
def _split_routing_response(data, service): """ Splits the routing responses per data center for the federator output. Returns a dictionary with the keys being the root URLs of the fdsnws endpoints and the values the data payloads for that endpoint. :param data: The return value from the EIDAWS ro...
https://github.com/obspy/obspy/issues/1954
Downloading http://service.iris.edu/irisws/fedcatalog/1/query ... Sending along the following payload: ---------------------------------------------------------------------- level=station latitude=30 longitude=14 maxradius=10 format=request * * * * 2017-10-20T00:00:00.000000 * ------------------------------------------...
ValueError
def _run_indexer(options): logging.info("Starting indexer %s:%s ..." % (options.host, options.port)) # initialize crawler service = WaveformIndexer((options.host, options.port), MyHandler) service.log = logging try: # prepare paths if "," in options.data: paths = options....
def _run_indexer(options): logging.info("Starting indexer %s:%s ..." % (options.host, options.port)) # initialize crawler service = WaveformIndexer((options.host, options.port), MyHandler) service.log = logging try: # prepare paths if "," in options.data: paths = options....
https://github.com/obspy/obspy/issues/1369
2016-04-12 11:47:36,562 [INFO] Starting indexer localhost:0 ... Traceback (most recent call last): File "/home/richter/anaconda/bin/obspy-indexer", line 9, in <module> load_entry_point('obspy==1.0.1', 'console_scripts', 'obspy-indexer')() File "/home/richter/anaconda/lib/python2.7/site-packages/obspy/db/scripts/indexer...
TypeError
def depthIncCheck(self): """ Check that no slowness layer is too thick. The maximum is determined by ``self.maxDepthInterval``. """ for wave in [self.SWAVE, self.PWAVE]: # These might change with calls to addSlowness, so be sure we have # the correct copy. if wave == self.PW...
def depthIncCheck(self): """ Check that no slowness layer is too thick. The maximum is determined by ``self.maxDepthInterval``. """ for wave in [self.SWAVE, self.PWAVE]: # These might change with calls to addSlowness, so be sure we have # the correct copy. if wave == self.PW...
https://github.com/obspy/obspy/issues/1195
Traceback (most recent call last): File "<string>", line 1, in <module> File "/Users/lion/workspace/code/obspy/obspy/taup/taup_create.py", line 119, in run self.tMod = self.createTauModel(self.vMod) File "/Users/lion/workspace/code/obspy/obspy/taup/taup_create.py", line 85, in createTauModel SlownessModel.DEFAULT_SLOWN...
LookupError
def plot(self, *args, **kwargs): """ Creates a waveform plot of the current ObsPy Stream object. :param outfile: Output file string. Also used to automatically determine the output format. Supported file formats depend on your matplotlib backend. Most backends support png, pdf, ps, eps and ...
def plot(self, *args, **kwargs): """ Creates a waveform plot of the current ObsPy Stream object. :param outfile: Output file string. Also used to automatically determine the output format. Supported file formats depend on your matplotlib backend. Most backends support png, pdf, ps, eps and ...
https://github.com/obspy/obspy/issues/913
>>> >>> >>> Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/kasper/Downloads/waveform_plotting_tutorial_6.py", line 32, in <module> time_down=True, linewidth=.25, grid_linewidth=.25) File "/usr/lib/python2.7/site-packages/obspy-0.9.2-py2.7-linux-x86_64.egg/obspy/core/stream.py", line ...
ValueError
def instBwith(data, fs, fk): """ Instantaneous bandwidth of a signal. Computes the instantaneous bandwidth of the given data which can be windowed or not. The instantaneous bandwidth is determined by the time derivative of the envelope normalized by the envelope of the input data. :type data: ...
def instBwith(data, fs, fk): """ Instantaneous bandwidth of a signal. Computes the instantaneous bandwidth of the given data which can be windowed or not. The instantaneous bandwidth is determined by the time derivative of the envelope normalized by the envelope of the input data. :type data: ...
https://github.com/obspy/obspy/issues/903
In [1]: from obspy.signal import envelope, instBwith In [2]: from obspy import read In [3]: tr = read()[0] In [4]: import matplotlib.pyplot as plt In [5]: plt.figure(); plt.plot(instBwith(tr.data, 100, (-1.0, 0.0, 1.0))) --------------------------------------------------------------------------- UnboundLocalError ...
UnboundLocalError
def _getDateTime(self): """ Returns a Python datetime object. :rtype: :class:`datetime.datetime` :return: Python datetime object. .. rubric:: Example >>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020) >>> dt.datetime datetime.datetime(2008, 10, 1, 12, 30, 35, 45020) """ # da...
def _getDateTime(self): """ Returns a Python datetime object. :rtype: :class:`datetime.datetime` :return: Python datetime object. .. rubric:: Example >>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020) >>> dt.datetime datetime.datetime(2008, 10, 1, 12, 30, 35, 45020) """ # we...
https://github.com/obspy/obspy/issues/805
Python 2.7.6 (default, Mar 22 2014, 22:59:38) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. from obspy.core import UTCDateTime t = UTCDateTime("2014-05-23T22:35:30") print t 2014-05-23T22:35:30.000000Z t = UTCDateTime("2599-05-23T22:35:30") print t Traceback (most recent c...
ValueError
def _getDateTime(self): """ Returns a Python datetime object. :rtype: :class:`datetime.datetime` :return: Python datetime object. .. rubric:: Example >>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020) >>> dt.datetime datetime.datetime(2008, 10, 1, 12, 30, 35, 45020) """ # da...
def _getDateTime(self): """ Returns a Python datetime object. :rtype: :class:`datetime.datetime` :return: Python datetime object. .. rubric:: Example >>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020) >>> dt.datetime datetime.datetime(2008, 10, 1, 12, 30, 35, 45020) """ # da...
https://github.com/obspy/obspy/issues/805
Python 2.7.6 (default, Mar 22 2014, 22:59:38) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. from obspy.core import UTCDateTime t = UTCDateTime("2014-05-23T22:35:30") print t 2014-05-23T22:35:30.000000Z t = UTCDateTime("2599-05-23T22:35:30") print t Traceback (most recent c...
ValueError
def _getDateTime(self): """ Returns a Python datetime object. :rtype: :class:`datetime.datetime` :return: Python datetime object. .. rubric:: Example >>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020) >>> dt.datetime datetime.datetime(2008, 10, 1, 12, 30, 35, 45020) """ # da...
def _getDateTime(self): """ Returns a Python datetime object. :rtype: :class:`datetime.datetime` :return: Python datetime object. .. rubric:: Example >>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020) >>> dt.datetime datetime.datetime(2008, 10, 1, 12, 30, 35, 45020) """ retu...
https://github.com/obspy/obspy/issues/805
Python 2.7.6 (default, Mar 22 2014, 22:59:38) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. from obspy.core import UTCDateTime t = UTCDateTime("2014-05-23T22:35:30") print t 2014-05-23T22:35:30.000000Z t = UTCDateTime("2599-05-23T22:35:30") print t Traceback (most recent c...
ValueError
def _get_lib_name(lib, add_extension_suffix): """ Helper function to get an architecture and Python version specific library filename. :type add_extension_suffix: bool :param add_extension_suffix: Numpy distutils adds a suffix to the filename we specify to build internally (as specified by ...
def _get_lib_name(lib, during_build): """ Helper function to get an architecture and Python version specific library filename. :type during_build: bool :param during_build: Specifies whether the library name is requested during building ObsPy or inside ObsPy code. Numpy distutils adds a suf...
https://github.com/obspy/obspy/issues/771
$ python3 -c "import obspy.mseed" Traceback (most recent call last): File "<string>", line 1, in <module> File "./obspy/__init__.py", line 43, in <module> read.__doc__ % make_format_plugin_table("waveform", "read", numspaces=4) File "./obspy/core/util/base.py", line 394, in make_format_plugin_table "obspy.plugin.%s.%s"...
ImportError
def configuration(parent_package="", top_path=None): """ Config function mainly used to compile C and Fortran code. """ config = Configuration("", parent_package, top_path) # GSE2 path = os.path.join(SETUP_DIRECTORY, "obspy", "gse2", "src", "GSE_UTI") files = [os.path.join(path, "gse_functi...
def configuration(parent_package="", top_path=None): """ Config function mainly used to compile C and Fortran code. """ config = Configuration("", parent_package, top_path) # GSE2 path = os.path.join(SETUP_DIRECTORY, "obspy", "gse2", "src", "GSE_UTI") files = [os.path.join(path, "gse_functi...
https://github.com/obspy/obspy/issues/771
$ python3 -c "import obspy.mseed" Traceback (most recent call last): File "<string>", line 1, in <module> File "./obspy/__init__.py", line 43, in <module> read.__doc__ % make_format_plugin_table("waveform", "read", numspaces=4) File "./obspy/core/util/base.py", line 394, in make_format_plugin_table "obspy.plugin.%s.%s"...
ImportError
def isQuakeML(filename): """ Checks whether a file is QuakeML format. :type filename: str :param filename: Name of the QuakeML file to be checked. :rtype: bool :return: ``True`` if QuakeML file. .. rubric:: Example >>> isQuakeML('/path/to/quakeml.xml') # doctest: +SKIP True "...
def isQuakeML(filename): """ Checks whether a file is QuakeML format. :type filename: str :param filename: Name of the QuakeML file to be checked. :rtype: bool :return: ``True`` if QuakeML file. .. rubric:: Example >>> isQuakeML('/path/to/quakeml.xml') # doctest: +SKIP True "...
https://github.com/obspy/obspy/issues/489
Traceback (most recent call last): File "/tmp/testrun/git/obspy/core/tests/test_util_xmlwrapper.py", line 49, in test_init XMLParser(fh) File "/tmp/testrun/git/obspy/core/util/xmlwrapper.py", line 73, in __init__ xml_doc.seek(0) ValueError: I/O operation on closed file
ValueError
def __init__(self, xml_doc, namespace=None): """ Initializes a XMLPaser object. :type xml_doc: str, filename, file-like object, parsed XML document :param xml_doc: XML document :type namespace: str, optional :param namespace: Document-wide default namespace. Defaults to ``''``. """ if i...
def __init__(self, xml_doc, namespace=None): """ Initializes a XMLPaser object. :type xml_doc: str, filename, file-like object, parsed XML document :param xml_doc: XML document :type namespace: str, optional :param namespace: Document-wide default namespace. Defaults to ``''``. """ if i...
https://github.com/obspy/obspy/issues/489
Traceback (most recent call last): File "/tmp/testrun/git/obspy/core/tests/test_util_xmlwrapper.py", line 49, in test_init XMLParser(fh) File "/tmp/testrun/git/obspy/core/util/xmlwrapper.py", line 73, in __init__ xml_doc.seek(0) ValueError: I/O operation on closed file
ValueError
def __init__(self, xml_doc, namespace=None): """ Initializes a XMLPaser object. :type xml_doc: str, filename, file-like object, parsed XML document :param xml_doc: XML document :type namespace: str, optional :param namespace: Document-wide default namespace. Defaults to ``''``. """ if i...
def __init__(self, xml_doc, namespace=None): """ Initializes a XMLPaser object. :type xml_doc: str, filename, file-like object, parsed XML document :param xml_doc: XML document :type namespace: str, optional :param namespace: Document-wide default namespace. Defaults to ``''``. """ if i...
https://github.com/obspy/obspy/issues/489
Traceback (most recent call last): File "/tmp/testrun/git/obspy/core/tests/test_util_xmlwrapper.py", line 49, in test_init XMLParser(fh) File "/tmp/testrun/git/obspy/core/util/xmlwrapper.py", line 73, in __init__ xml_doc.seek(0) ValueError: I/O operation on closed file
ValueError
def __setattr__(self, key, value): # 内建属性不放入 key 中 if key.startswith("__") and key.endswith("__"): super().__setattr__(key, value) else: self[key] = value
def __setattr__(self, key, value): self[key] = value
https://github.com/Tencent/bk-sops/issues/1984
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last): File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/app/blueapps/account/decorators.py", line 20, in wrapped_view return view_fun...
KeyError
def execute(self, data, parent_data): executor = parent_data.get_one_of_inputs("executor") biz_cc_id = parent_data.get_one_of_inputs("biz_cc_id") supplier_account = parent_data.get_one_of_inputs("biz_supplier_account") client = get_client_by_user(executor) if parent_data.get_one_of_inputs("language"...
def execute(self, data, parent_data): executor = parent_data.get_one_of_inputs("executor") biz_cc_id = parent_data.get_one_of_inputs("biz_cc_id") supplier_account = parent_data.get_one_of_inputs("biz_supplier_account") client = settings.ESB_GET_CLIENT_BY_USER(executor) if parent_data.get_one_of_inpu...
https://github.com/Tencent/bk-sops/issues/324
Traceback (most recent call last): File "/data/app/code/pipeline/engine/core/handlers/service_activity.py", line 77, in handle success = element.execute(root_pipeline.data) File "/data/app/code/pipeline/core/flow/activity.py", line 76, in execute result = self.service.execute(self.data, parent_data) File "/data/app/cod...
AttributeError
def get_user_info(request): client = get_client_by_user(request.user.username) auth = getattr(client, settings.ESB_AUTH_COMPONENT_SYSTEM) _get_user_info = getattr(auth, settings.ESB_AUTH_GET_USER_INFO) user_info = _get_user_info({}) if user_info["result"]: user_info["data"]["bk_supplier_acco...
def get_user_info(request): client = get_client_by_request(request) auth = getattr(client, settings.ESB_AUTH_COMPONENT_SYSTEM) _get_user_info = getattr(auth, settings.ESB_AUTH_GET_USER_INFO) user_info = _get_user_info({}) if "data" in user_info: user_info["data"]["bk_supplier_account"] = 0 ...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def process_view(self, request, view_func, view_args, view_kwargs): """ If a request path contains biz_cc_id parameter, check if current user has perm view_business or return http 403. """ if getattr(view_func, "login_exempt", False): return None biz_cc_id = view_kwargs.get("biz_cc_id") ...
def process_view(self, request, view_func, view_args, view_kwargs): """ If a request path contains biz_cc_id parameter, check if current user has perm view_business or return http 403. """ if getattr(view_func, "login_exempt", False): return None biz_cc_id = view_kwargs.get("biz_cc_id") ...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def _get_user_business_list(request, use_cache=True): """Get authorized business list for a exact username. :param object request: django request object. :param bool use_cache: (Optional) """ user = request.user cache_key = "%s_get_user_business_list_%s" % (CACHE_PREFIX, user.username) data...
def _get_user_business_list(request, use_cache=True): """Get authorized business list for a exact username. :param object request: django request object. :param bool use_cache: (Optional) """ user = request.user cache_key = "%s_get_user_business_list_%s" % (CACHE_PREFIX, user.username) data...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def _get_business_info(request, app_id, use_cache=True, use_maintainer=False): """Get detail infomations for a exact app_id. @param object request: django request object. @param int app_id: cc_id of core.business model. @param use_maintainer: 使用运维身份请求 """ username = request.user.username bu...
def _get_business_info(request, app_id, use_cache=True, use_maintainer=False): """Get detail infomations for a exact app_id. @param object request: django request object. @param int app_id: cc_id of core.business model. @param use_maintainer: 使用运维身份请求 """ username = request.user.username bu...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def get_job_instance_log(request, biz_cc_id): client = get_client_by_user(request.user.username) job_instance_id = request.GET.get("job_instance_id") log_kwargs = {"bk_biz_id": biz_cc_id, "job_instance_id": job_instance_id} log_result = client.job.get_job_instance_log(log_kwargs) return JsonResponse...
def get_job_instance_log(request, biz_cc_id): client = get_client_by_request(request) job_instance_id = request.GET.get("job_instance_id") log_kwargs = {"bk_biz_id": biz_cc_id, "job_instance_id": job_instance_id} log_result = client.job.get_job_instance_log(log_kwargs) return JsonResponse(log_result...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def cmdb_search_host(request, bk_biz_id, bk_supplier_account="", bk_supplier_id=0): """ @summary: 获取 CMDB 上业务的 IP 列表,以及 agent 状态等信息 @param request: @param bk_biz_id: 业务 CMDB ID @param bk_supplier_account: 业务开发商账号 @param bk_supplier_id: 业务开发商ID @params fields: list 查询字段,默认只返回 bk_host_innerip、...
def cmdb_search_host(request, bk_biz_id, bk_supplier_account="", bk_supplier_id=0): """ @summary: 获取 CMDB 上业务的 IP 列表,以及 agent 状态等信息 @param request: @param bk_biz_id: 业务 CMDB ID @param bk_supplier_account: 业务开发商账号 @param bk_supplier_id: 业务开发商ID @params fields: list 查询字段,默认只返回 bk_host_innerip、...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def cmdb_get_mainline_object_topo(request, bk_biz_id, bk_supplier_account=""): """ @summary: 获取配置平台业务拓扑模型 @param request: @param bk_biz_id: @param bk_supplier_account: @return: """ kwargs = { "bk_biz_id": bk_biz_id, "bk_supplier_account": bk_supplier_account, } cl...
def cmdb_get_mainline_object_topo(request, bk_biz_id, bk_supplier_account=""): """ @summary: 获取配置平台业务拓扑模型 @param request: @param bk_biz_id: @param bk_supplier_account: @return: """ kwargs = { "bk_biz_id": bk_biz_id, "bk_supplier_account": bk_supplier_account, } cl...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def cc_search_object_attribute(request, obj_id, biz_cc_id, supplier_account): """ @summary: 获取对象自定义属性 @param request: @param biz_cc_id: @return: """ client = get_client_by_user(request.user.username) kwargs = {"bk_obj_id": obj_id, "bk_supplier_account": supplier_account} cc_result = ...
def cc_search_object_attribute(request, obj_id, biz_cc_id, supplier_account): """ @summary: 获取对象自定义属性 @param request: @param biz_cc_id: @return: """ client = get_client_by_request(request) kwargs = {"bk_obj_id": obj_id, "bk_supplier_account": supplier_account} cc_result = client.cc.s...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def cc_search_create_object_attribute(request, obj_id, biz_cc_id, supplier_account): client = get_client_by_user(request.user.username) kwargs = {"bk_obj_id": obj_id, "bk_supplier_account": supplier_account} cc_result = client.cc.search_object_attribute(kwargs) if not cc_result["result"]: messag...
def cc_search_create_object_attribute(request, obj_id, biz_cc_id, supplier_account): client = get_client_by_request(request) kwargs = {"bk_obj_id": obj_id, "bk_supplier_account": supplier_account} cc_result = client.cc.search_object_attribute(kwargs) if not cc_result["result"]: message = handle_...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def cc_search_topo(request, obj_id, category, biz_cc_id, supplier_account): """ @summary: 查询对象拓扑 @param request: @param biz_cc_id: @return: """ client = get_client_by_user(request.user.username) kwargs = {"bk_biz_id": biz_cc_id, "bk_supplier_account": supplier_account} cc_result = cl...
def cc_search_topo(request, obj_id, category, biz_cc_id, supplier_account): """ @summary: 查询对象拓扑 @param request: @param biz_cc_id: @return: """ client = get_client_by_request(request) kwargs = {"bk_biz_id": biz_cc_id, "bk_supplier_account": supplier_account} cc_result = client.cc.sea...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def job_get_script_list(request, biz_cc_id): """ 查询业务脚本列表 :param request: :param biz_cc_id: :return: """ # 查询脚本列表 client = get_client_by_user(request.user.username) script_type = request.GET.get("type") kwargs = { "bk_biz_id": biz_cc_id, "is_public": True if scrip...
def job_get_script_list(request, biz_cc_id): """ 查询业务脚本列表 :param request: :param biz_cc_id: :return: """ # 查询脚本列表 client = get_client_by_request(request) script_type = request.GET.get("type") kwargs = { "bk_biz_id": biz_cc_id, "is_public": True if script_type == "...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def job_get_job_tasks_by_biz(request, biz_cc_id): client = get_client_by_user(request.user.username) job_result = client.job.get_job_list({"bk_biz_id": biz_cc_id}) if not job_result["result"]: message = _( "查询作业平台(JOB)的作业模板[app_id=%s]接口job.get_task返回失败: %s" ) % (biz_cc_id, job_re...
def job_get_job_tasks_by_biz(request, biz_cc_id): client = get_client_by_request(request) job_result = client.job.get_job_list({"bk_biz_id": biz_cc_id}) if not job_result["result"]: message = _( "查询作业平台(JOB)的作业模板[app_id=%s]接口job.get_task返回失败: %s" ) % (biz_cc_id, job_result["messa...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def job_get_job_task_detail(request, biz_cc_id, task_id): client = get_client_by_user(request.user.username) job_result = client.job.get_job_detail( {"bk_biz_id": biz_cc_id, "bk_job_id": task_id} ) if not job_result["result"]: message = _( "查询作业平台(JOB)的作业模板详情[app_id=%s]接口job....
def job_get_job_task_detail(request, biz_cc_id, task_id): client = get_client_by_request(request) job_result = client.job.get_job_detail( {"bk_biz_id": biz_cc_id, "bk_job_id": task_id} ) if not job_result["result"]: message = _( "查询作业平台(JOB)的作业模板详情[app_id=%s]接口job.get_task_de...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def get_bk_user(request): bkuser = None if request.weixin_user and not isinstance(request.weixin_user, AnonymousUser): user_model = get_user_model() try: user_property = UserProperty.objects.get( key="wx_userid", value=request.weixin_user.userid ) ...
def get_bk_user(request): bkuser = None if request.weixin_user and not isinstance(request.weixin_user, AnonymousUser): try: user_property = UserProperty.objects.get( key="wx_userid", value=request.weixin_user.userid ) bkuser = user_property.user ...
https://github.com/Tencent/bk-sops/issues/20
------STARTING: Migrate Database------ Traceback (most recent call last): File "manage.py", line 27, in <module> execute_from_command_line(sys.argv) File "/cache/.bk/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/cache/.bk/env/lib/pyt...
ImportError
def fit(self, dataset: Dataset): """Calculates statistics for this workflow on the input dataset Parameters ----------- dataset: Dataset The input dataset to calculate statistics for. If there is a train/test split this data should be the training dataset only. """ self._clear_w...
def fit(self, dataset: Dataset): """Calculates statistics for this workflow on the input dataset Parameters ----------- dataset: Dataset The input dataset to calculate statistics for. If there is a train/test split this data should be the training dataset only. """ self._clear_w...
https://github.com/NVIDIA/NVTabular/issues/598
E0224 15:58:10.330248 178 model_repository_manager.cc:963] failed to load 'amazonreview_tf' version 1: Internal: unable to create stream: the provided PTX was compiled with an unsupported toolchain. /nvtabular/nvtabular/workflow.py:236: UserWarning: Loading workflow generated with cudf version 0+untagged.1.gbd321d1 - b...
TypeError
def main(args): """Multi-GPU Criteo/DLRM Preprocessing Benchmark This benchmark is designed to measure the time required to preprocess the Criteo (1TB) dataset for Facebook’s DLRM model. The user must specify the path of the raw dataset (using the `--data-path` flag), as well as the output directo...
def main(args): """Multi-GPU Criteo/DLRM Preprocessing Benchmark This benchmark is designed to measure the time required to preprocess the Criteo (1TB) dataset for Facebook’s DLRM model. The user must specify the path of the raw dataset (using the `--data-path` flag), as well as the output directo...
https://github.com/NVIDIA/NVTabular/issues/557
(rapids) root@dafff4b22f48:/nvtabular# python examples/dask-nvtabular-criteo-benchmark.py -d 0,1,2,3,4,5,6,7 --data-path gs://merlin-datasets/crit_int_pq --out-path gs://merlin-datasets/output --freq-limit 0 --part-mem-frac 0.12 --device-limit-f rac 0.7 --device-pool-frac 0.8 distributed.worker - WARNING - Compute Fa...
FileNotFoundError
def __init__(self, out_dir, **kwargs): super().__init__(out_dir, **kwargs) self.data_paths = [] self.data_files = [] self.data_writers = [] self.data_bios = [] self._lock = threading.RLock() self.pwriter = self._pwriter self.pwriter_kwargs = {}
def __init__(self, out_dir, **kwargs): super().__init__(out_dir, **kwargs) self.data_paths = [] self.data_writers = [] self.data_bios = [] self._lock = threading.RLock() self.pwriter = self._pwriter self.pwriter_kwargs = {}
https://github.com/NVIDIA/NVTabular/issues/557
(rapids) root@dafff4b22f48:/nvtabular# python examples/dask-nvtabular-criteo-benchmark.py -d 0,1,2,3,4,5,6,7 --data-path gs://merlin-datasets/crit_int_pq --out-path gs://merlin-datasets/output --freq-limit 0 --part-mem-frac 0.12 --device-limit-f rac 0.7 --device-pool-frac 0.8 distributed.worker - WARNING - Compute Fa...
FileNotFoundError
def _append_writer(self, path, schema=None, add_args=None, add_kwargs=None): # Add additional args and kwargs _args = add_args or [] _kwargs = tlz.merge(self.pwriter_kwargs, add_kwargs or {}) if self.bytes_io: bio = BytesIO() self.data_bios.append(bio) self.data_writers.append(s...
def _append_writer(self, path, schema=None, add_args=None, add_kwargs=None): # Add additional args and kwargs _args = add_args or [] _kwargs = tlz.merge(self.pwriter_kwargs, add_kwargs or {}) if self.bytes_io: bio = BytesIO() self.data_bios.append(bio) self.data_writers.append(s...
https://github.com/NVIDIA/NVTabular/issues/557
(rapids) root@dafff4b22f48:/nvtabular# python examples/dask-nvtabular-criteo-benchmark.py -d 0,1,2,3,4,5,6,7 --data-path gs://merlin-datasets/crit_int_pq --out-path gs://merlin-datasets/output --freq-limit 0 --part-mem-frac 0.12 --device-limit-f rac 0.7 --device-pool-frac 0.8 distributed.worker - WARNING - Compute Fa...
FileNotFoundError
def _close_writers(self): md_dict = {} for writer, path in zip(self.data_writers, self.data_paths): fn = path.split(self.fs.sep)[-1] md_dict[fn] = writer.close(metadata_file_path=fn) for f in self.data_files: f.close() return md_dict
def _close_writers(self): md_dict = {} for writer, path in zip(self.data_writers, self.data_paths): fn = path.split(self.fs.sep)[-1] md_dict[fn] = writer.close(metadata_file_path=fn) return md_dict
https://github.com/NVIDIA/NVTabular/issues/557
(rapids) root@dafff4b22f48:/nvtabular# python examples/dask-nvtabular-criteo-benchmark.py -d 0,1,2,3,4,5,6,7 --data-path gs://merlin-datasets/crit_int_pq --out-path gs://merlin-datasets/output --freq-limit 0 --part-mem-frac 0.12 --device-limit-f rac 0.7 --device-pool-frac 0.8 distributed.worker - WARNING - Compute Fa...
FileNotFoundError
def fetch_table_data( table_cache, path, cache="disk", cats_only=False, reader=None, columns=None, **kwargs, ): """Utility to retrieve a cudf DataFrame from a cache (and add the DataFrame to a cache if the element is missing). Note that `cats_only=True` results in optimized logi...
def fetch_table_data( table_cache, path, cache="disk", cats_only=False, reader=None, columns=None, **kwargs, ): """Utility to retrieve a cudf DataFrame from a cache (and add the DataFrame to a cache if the element is missing). Note that `cats_only=True` results in optimized logi...
https://github.com/NVIDIA/NVTabular/issues/557
(rapids) root@dafff4b22f48:/nvtabular# python examples/dask-nvtabular-criteo-benchmark.py -d 0,1,2,3,4,5,6,7 --data-path gs://merlin-datasets/crit_int_pq --out-path gs://merlin-datasets/output --freq-limit 0 --part-mem-frac 0.12 --device-limit-f rac 0.7 --device-pool-frac 0.8 distributed.worker - WARNING - Compute Fa...
FileNotFoundError
def _chunkwise_moments(df): df2 = cudf.DataFrame() for col in df.columns: df2[col] = df[col].astype("float64").pow(2) vals = { "df-count": df.count().to_frame().transpose(), "df-sum": df.sum().astype("float64").to_frame().transpose(), "df2-sum": df2.sum().to_frame().transpose...
def _chunkwise_moments(df): df2 = cudf.DataFrame() for col in df.columns: df2[col] = df[col].astype("float64").pow(2) vals = { "df-count": df.count().to_frame().transpose(), "df-sum": df.sum().to_frame().transpose(), "df2-sum": df2.sum().to_frame().transpose(), } # NO...
https://github.com/NVIDIA/NVTabular/issues/432
/opt/conda/envs/rapids/lib/python3.7/site-packages/pandas/core/series.py:726: RuntimeWarning: invalid value encountered in sqrt result = getattr(ufunc, method)(*inputs, **kwargs) --------------------------------------------------------------------------- ValueError Traceback (most recent ...
ValueError
def to_ddf(self, columns=None): return dask_cudf.read_parquet( self.paths, columns=columns, # can't omit reading the index in if we aren't being passed columns index=None if columns is None else False, gather_statistics=False, split_row_groups=self.row_groups_per_part...
def to_ddf(self, columns=None): return dask_cudf.read_parquet( self.paths, columns=columns, index=False, gather_statistics=False, split_row_groups=self.row_groups_per_part, storage_options=self.storage_options, )
https://github.com/NVIDIA/NVTabular/issues/409
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-13-b133e2b51cbf> in <module> 2 valid_dataset = nvt.Dataset(OUTPUT_BUCKET_FOLDER+'valid_gdf.parquet', part_mem_fraction=0.12) 3 ----> 4 workflow.apply(tra...
ValueError
def get_ddf(self): if self.ddf is None: raise ValueError("No dask_cudf frame available.") elif isinstance(self.ddf, Dataset): # Right now we can't distinguish between input columns and generated columns # in the dataset, we don't limit the columm set right now in the to_ddf call ...
def get_ddf(self): if self.ddf is None: raise ValueError("No dask_cudf frame available.") elif isinstance(self.ddf, Dataset): columns = self.columns_ctx["all"]["base"] return self.ddf.to_ddf(columns=columns, shuffle=self._shuffle_parts) return self.ddf
https://github.com/NVIDIA/NVTabular/issues/409
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-13-b133e2b51cbf> in <module> 2 valid_dataset = nvt.Dataset(OUTPUT_BUCKET_FOLDER+'valid_gdf.parquet', part_mem_fraction=0.12) 3 ----> 4 workflow.apply(tra...
ValueError
def add_data(self, gdf): # Populate columns idxs if not self.col_idx: for i, x in enumerate(gdf.columns.values): self.col_idx[str(x)] = i # list columns in cudf don't currently support chunked writing in parquet. # hack around this by just writing a single file with this partition ...
def add_data(self, gdf): # Populate columns idxs if not self.col_idx: for i, x in enumerate(gdf.columns.values): self.col_idx[str(x)] = i # list columns in cudf don't currently support chunked writing in parquet. # hack around this by just writing a single file with this partition ...
https://github.com/NVIDIA/NVTabular/issues/381
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-19-f93c44c3b381> in <module> 11 proc.add_preprocess(JoinExternal(df_grouped, on= ['doc_id'], on_ext= ['doc_id'], kind_ext=kind_ext, columns_ext=columns_e...
AttributeError
def __init__( self, paths, part_size, storage_options, row_groups_per_part=None, legacy=False, batch_size=None, ): # TODO: Improve dask_cudf.read_parquet performance so that # this class can be slimmed down. super().__init__(paths, part_size, storage_options) self.batch_size ...
def __init__( self, paths, part_size, storage_options, row_groups_per_part=None, legacy=False, batch_size=None, ): # TODO: Improve dask_cudf.read_parquet performance so that # this class can be slimmed down. super().__init__(paths, part_size, storage_options) self.batch_size ...
https://github.com/NVIDIA/NVTabular/issues/363
Traceback (most recent call last): File "main.py", line 106, in <module> main(args) File "main.py", line 61, in main train_paths, engine="parquet", part_mem_fraction=float(args.gpu_mem_frac) File "/root/miniconda/lib/python3.7/site-packages/nvtabular/io/dataset.py", line 224, in __init__ paths, part_size, storage_optio...
AttributeError
def __init__(self, *args, **kwargs): super().__init__(*args) self._meta = {} self.csv_kwargs = kwargs self.names = self.csv_kwargs.get("names", None) # CSV reader needs a list of files # (Assume flat directory structure if this is a dir) if len(self.paths) == 1 and self.fs.isdir(self.paths[0...
def __init__(self, *args, **kwargs): super().__init__(*args) self._meta = {} self.names = kwargs.pop("names", None) self.csv_kwargs = kwargs # CSV reader needs a list of files # (Assume flat directory structure if this is a dir) if len(self.paths) == 1 and self.fs.isdir(self.paths[0]): ...
https://github.com/NVIDIA/NVTabular/issues/85
AttributeErrorTraceback (most recent call last) <ipython-input-1-84910288ec3f> in <module> 44 del gdf 45 path_out = '/raid/criteo/tests/jp_csv_orig/' ---> 46 file_to_pq(train_set, 'csv', output_folder=path_out, cols=cols, dtypes=dtypes) <ipython-input-1-84910288ec3f> in file_to_pq(target_files, file_type, outp...
AttributeError
def to_ddf(self, columns=None): return dask_cudf.read_csv(self.paths, chunksize=self.part_size, **self.csv_kwargs)[ columns ]
def to_ddf(self, columns=None): return dask_cudf.read_csv( self.paths, names=self.names, chunksize=self.part_size, **self.csv_kwargs )[columns]
https://github.com/NVIDIA/NVTabular/issues/85
AttributeErrorTraceback (most recent call last) <ipython-input-1-84910288ec3f> in <module> 44 del gdf 45 path_out = '/raid/criteo/tests/jp_csv_orig/' ---> 46 file_to_pq(train_set, 'csv', output_folder=path_out, cols=cols, dtypes=dtypes) <ipython-input-1-84910288ec3f> in file_to_pq(target_files, file_type, outp...
AttributeError
def _predict(self, X): """Collect results from clf.predict calls.""" if self.refit: return np.asarray([clf.predict(X) for clf in self.clfs_]).T else: return np.asarray([self.le_.transform(clf.predict(X)) for clf in self.clfs_]).T
def _predict(self, X): """Collect results from clf.predict calls.""" return np.asarray([clf.predict(X) for clf in self.clfs_]).T
https://github.com/rasbt/mlxtend/issues/321
Traceback (most recent call last): File "/_mlxtend_bug/reproduce.py", line 16, in <module> print(clf.predict(test)) File "/venv/py3/lib/python3.4/site-packages/mlxtend/classifier/ensemble_vote.py", line 197, in predict arr=predictions) File "/venv/py3/lib/python3.4/site-packages/numpy/lib/shape_base.py", line 132, in a...
TypeError
def transform( self, xx: Any, yy: Any, zz: Any = None, tt: Any = None, radians: bool = False, errcheck: bool = False, direction: Union[TransformDirection, str] = TransformDirection.FORWARD, ) -> Any: """ Transform points between two coordinate systems. .. versionadded:: 2.1....
def transform( self, xx: Any, yy: Any, zz: Any = None, tt: Any = None, radians: bool = False, errcheck: bool = False, direction: Union[TransformDirection, str] = TransformDirection.FORWARD, ) -> Any: """ Transform points between two coordinate systems. .. versionadded:: 2.1....
https://github.com/pyproj4/pyproj/issues/565
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/pyproj/transformer.py", line 446, in transform errcheck=errcheck, File "pyproj/_transformer.pyx", line 463, in pyproj._transformer._Transformer._transform pyproj.exceptions.ProjError: transform error: lat...
pyproj.exceptions.ProjError
def itransform( self, points: Any, switch: bool = False, time_3rd: bool = False, radians: bool = False, errcheck: bool = False, direction: Union[TransformDirection, str] = TransformDirection.FORWARD, ) -> Iterator[Iterable]: """ Iterator/generator version of the function pyproj.Trans...
def itransform( self, points: Any, switch: bool = False, time_3rd: bool = False, radians: bool = False, errcheck: bool = False, direction: Union[TransformDirection, str] = TransformDirection.FORWARD, ) -> Iterator[Iterable]: """ Iterator/generator version of the function pyproj.Trans...
https://github.com/pyproj4/pyproj/issues/565
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/pyproj/transformer.py", line 446, in transform errcheck=errcheck, File "pyproj/_transformer.pyx", line 463, in pyproj._transformer._Transformer._transform pyproj.exceptions.ProjError: transform error: lat...
pyproj.exceptions.ProjError
def from_user_input(value: Any) -> "CRS": """ Initialize a CRS class instance with: - PROJ string - Dictionary of PROJ parameters - PROJ keyword arguments for parameters - JSON string with PROJ parameters - CRS WKT string - An authority string [i.e. 'epsg:4326'] - An EP...
def from_user_input(value: str) -> "CRS": """ Initialize a CRS class instance with: - PROJ string - Dictionary of PROJ parameters - PROJ keyword arguments for parameters - JSON string with PROJ parameters - CRS WKT string - An authority string [i.e. 'epsg:4326'] - An EP...
https://github.com/pyproj4/pyproj/issues/554
import pyproj --------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_name() KeyError: 'URN:OGC:DEF:DATUM:EPSG::6326' During handling of the above exception, ...
KeyError
def __init__( self, name: str = "undefined", datum: Any = "urn:ogc:def:datum:EPSG::6326", ellipsoidal_cs: Any = None, ) -> None: """ Parameters ---------- name: str, optional Name of the CRS. Default is undefined. datum: Any, optional Anything accepted by :meth:`pypro...
def __init__( self, name: str = "undefined", datum: Any = "urn:ogc:def:datum:EPSG::6326", ellipsoidal_cs: Any = Ellipsoidal2DCS(), ) -> None: """ Parameters ---------- name: str, optional Name of the CRS. Default is undefined. datum: Any, optional Anything accepted by...
https://github.com/pyproj4/pyproj/issues/554
import pyproj --------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_name() KeyError: 'URN:OGC:DEF:DATUM:EPSG::6326' During handling of the above exception, ...
KeyError
def __init__( self, base_crs: Any, conversion: Any, ellipsoidal_cs: Any = None, name: str = "undefined", ) -> None: """ Parameters ---------- base_crs: Any Input to create the Geodetic CRS, a :class:`GeographicCRS` or anything accepted by :meth:`pyproj.crs.CRS.from_us...
def __init__( self, base_crs: Any, conversion: Any, ellipsoidal_cs: Any = Ellipsoidal2DCS(), name: str = "undefined", ) -> None: """ Parameters ---------- base_crs: Any Input to create the Geodetic CRS, a :class:`GeographicCRS` or anything accepted by :meth:`pyproj.cr...
https://github.com/pyproj4/pyproj/issues/554
import pyproj --------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_name() KeyError: 'URN:OGC:DEF:DATUM:EPSG::6326' During handling of the above exception, ...
KeyError
def __init__( self, conversion: Any, name: str = "undefined", cartesian_cs: Any = None, geodetic_crs: Any = None, ) -> None: """ Parameters ---------- conversion: Any Anything accepted by :meth:`pyproj.crs.CoordinateSystem.from_user_input` or a conversion from :ref:`c...
def __init__( self, conversion: Any, name: str = "undefined", cartesian_cs: Any = Cartesian2DCS(), geodetic_crs: Any = GeographicCRS(), ) -> None: """ Parameters ---------- conversion: Any Anything accepted by :meth:`pyproj.crs.CoordinateSystem.from_user_input` or a c...
https://github.com/pyproj4/pyproj/issues/554
import pyproj --------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_name() KeyError: 'URN:OGC:DEF:DATUM:EPSG::6326' During handling of the above exception, ...
KeyError
def __init__( self, name: str, datum: Any, vertical_cs: Any = None, geoid_model: Optional[str] = None, ) -> None: """ Parameters ---------- name: str The name of the Vertical CRS (e.g. NAVD88 height). datum: Any Anything accepted by :meth:`pyproj.crs.Datum.from_us...
def __init__( self, name: str, datum: Any, vertical_cs: Any = VerticalCS(), geoid_model: str = None, ) -> None: """ Parameters ---------- name: str The name of the Vertical CRS (e.g. NAVD88 height). datum: Any Anything accepted by :meth:`pyproj.crs.Datum.from_user...
https://github.com/pyproj4/pyproj/issues/554
import pyproj --------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_name() KeyError: 'URN:OGC:DEF:DATUM:EPSG::6326' During handling of the above exception, ...
KeyError
def set_data_dir(proj_data_dir): """ Set the data directory for PROJ to use. Parameters ---------- proj_data_dir: str The path to rhe PROJ data directory. """ global _USER_PROJ_DATA _USER_PROJ_DATA = proj_data_dir # reset search paths from pyproj._datadir import PYPROJ_C...
def set_data_dir(proj_data_dir): """ Set the data directory for PROJ to use. Parameters ---------- proj_data_dir: str The path to rhe PROJ data directory. """ global _USER_PROJ_DATA _USER_PROJ_DATA = proj_data_dir # reset search paths from pyproj._datadir import PYPROJ_C...
https://github.com/pyproj4/pyproj/issues/415
Traceback (most recent call last): File "<stdin>", line 1, in <module> ... File "/opt/conda/lib/python3.7/site-packages/geopandas/geodataframe.py", line 459, in to_crs geom = df.geometry.to_crs(crs=crs, epsg=epsg) File "/opt/conda/lib/python3.7/site-packages/geopandas/geoseries.py", line 304, in to_crs proj_in = pyproj...
pyproj.exceptions.DataDirError
def set_data_dir(proj_data_dir): """ Set the data directory for PROJ to use. Parameters ---------- proj_data_dir: str The path to rhe PROJ data directory. """ global _USER_PROJ_DATA _USER_PROJ_DATA = proj_data_dir # reset search paths from pyproj._datadir import PYPROJ_C...
def set_data_dir(proj_data_dir): """ Set the data directory for PROJ to use. Parameters ---------- proj_data_dir: str The path to rhe PROJ data directory. """ global _USER_PROJ_DATA global _VALIDATED_PROJ_DATA _USER_PROJ_DATA = proj_data_dir # set to none to re-validate ...
https://github.com/pyproj4/pyproj/issues/374
97%|█████████████████████████████████▊ | 88243/91210 [00:26<00:00, 6190.94it/s] CRSs instantiated: 507 CRSs instantiated (cache hits included): 88603 Transformers instantiated: 502 Transformers instantiated (cache hits included): 88389 --------------------------------------------------------------------------- ProjErro...
ProjError
def get_data_dir(): """ The order of preference for the data directory is: 1. The one set by pyproj.datadir.set_data_dir (if exists & valid) 2. The internal proj directory (if exists & valid) 3. The directory in PROJ_LIB (if exists & valid) 4. The directory on the PATH (if exists & valid) ...
def get_data_dir(): """ The order of preference for the data directory is: 1. The one set by pyproj.datadir.set_data_dir (if exists & valid) 2. The internal proj directory (if exists & valid) 3. The directory in PROJ_LIB (if exists & valid) 4. The directory on the PATH (if exists & valid) ...
https://github.com/pyproj4/pyproj/issues/374
97%|█████████████████████████████████▊ | 88243/91210 [00:26<00:00, 6190.94it/s] CRSs instantiated: 507 CRSs instantiated (cache hits included): 88603 Transformers instantiated: 502 Transformers instantiated (cache hits included): 88389 --------------------------------------------------------------------------- ProjErro...
ProjError
def from_proj(proj_from, proj_to, skip_equivalent=False, always_xy=False): """Make a Transformer from a :obj:`~pyproj.proj.Proj` or input used to create one. Parameters ---------- proj_from: :obj:`~pyproj.proj.Proj` or input used to create one Projection of input data. proj_to: :obj:`~pypro...
def from_proj(proj_from, proj_to, skip_equivalent=False, always_xy=False): """Make a Transformer from a :obj:`~pyproj.proj.Proj` or input used to create one. Parameters ---------- proj_from: :obj:`~pyproj.proj.Proj` or input used to create one Projection of input data. proj_to: :obj:`~pypro...
https://github.com/pyproj4/pyproj/issues/321
In [4]: t = pyproj.Transformer() In [5]: t Out[5]: <pyproj.transformer.Transformer at 0x7fd75ff9b860> In [6]: t.transform(0, 0) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-6-65405fa99360> in <mod...
AttributeError
def from_crs(crs_from, crs_to, skip_equivalent=False, always_xy=False): """Make a Transformer from a :obj:`~pyproj.crs.CRS` or input used to create one. Parameters ---------- crs_from: ~pyproj.crs.CRS or input used to create one Projection of input data. crs_to: ~pyproj.crs.CRS or input use...
def from_crs(crs_from, crs_to, skip_equivalent=False, always_xy=False): """Make a Transformer from a :obj:`~pyproj.crs.CRS` or input used to create one. Parameters ---------- crs_from: ~pyproj.crs.CRS or input used to create one Projection of input data. crs_to: ~pyproj.crs.CRS or input use...
https://github.com/pyproj4/pyproj/issues/321
In [4]: t = pyproj.Transformer() In [5]: t Out[5]: <pyproj.transformer.Transformer at 0x7fd75ff9b860> In [6]: t.transform(0, 0) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-6-65405fa99360> in <mod...
AttributeError
def from_pipeline(proj_pipeline): """Make a Transformer from a PROJ pipeline string. https://proj4.org/operations/pipeline.html Parameters ---------- proj_pipeline: str Projection pipeline string. Returns ------- ~Transformer """ return Transformer(_Transformer.from_p...
def from_pipeline(proj_pipeline): """Make a Transformer from a PROJ pipeline string. https://proj4.org/operations/pipeline.html Parameters ---------- proj_pipeline: str Projection pipeline string. Returns ------- ~Transformer """ transformer = Transformer() transf...
https://github.com/pyproj4/pyproj/issues/321
In [4]: t = pyproj.Transformer() In [5]: t Out[5]: <pyproj.transformer.Transformer at 0x7fd75ff9b860> In [6]: t.transform(0, 0) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-6-65405fa99360> in <mod...
AttributeError
def _dict2string(projparams): # convert a dict to a proj4 string. pjargs = [] proj_inserted = False for key, value in projparams.items(): # the towgs84 as list if isinstance(value, (list, tuple)): value = ",".join([str(val) for val in value]) # issue 183 (+ no_rot) ...
def _dict2string(projparams): # convert a dict to a proj4 string. pjargs = [] for key, value in projparams.items(): # the towgs84 as list if isinstance(value, (list, tuple)): value = ",".join([str(val) for val in value]) # issue 183 (+ no_rot) if value is None or ...
https://github.com/pyproj4/pyproj/issues/270
from pyproj import Proj Proj({'a': 6371229.0, 'b': 6371229.0, 'lon_0': -10.0, 'o_lat_p': 30.0, 'o_lon_p': 0.0, 'o_proj': 'longlat', 'proj' : 'ob_tran'}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python3.7/site-packages/pyproj/proj.py", line 303, in __init__ cstrencode(self.crs...
AttributeError
def __init__(self, projparams=None, preserve_units=True, **kwargs): """ initialize a Proj class instance. See the proj documentation (https://github.com/OSGeo/proj.4/wiki) for more information about projection parameters. Parameters ---------- projparams: int, str, dict, pyproj.CRS ...
def __init__(self, projparams=None, preserve_units=True, **kwargs): """ initialize a Proj class instance. See the proj documentation (https://github.com/OSGeo/proj.4/wiki) for more information about projection parameters. Parameters ---------- projparams: int, str, dict, pyproj.CRS ...
https://github.com/pyproj4/pyproj/issues/270
from pyproj import Proj Proj({'a': 6371229.0, 'b': 6371229.0, 'lon_0': -10.0, 'o_lat_p': 30.0, 'o_lon_p': 0.0, 'o_proj': 'longlat', 'proj' : 'ob_tran'}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python3.7/site-packages/pyproj/proj.py", line 303, in __init__ cstrencode(self.crs...
AttributeError
def Kuf_conv_patch(inducing_variable, kernel, Xnew): Xp = kernel.get_patches(Xnew) # [N, num_patches, patch_len] bigKzx = kernel.base_kernel.K( inducing_variable.Z, Xp ) # [M, N, P] -- thanks to broadcasting of kernels Kzx = tf.reduce_sum( bigKzx * kernel.weights if hasattr(kernel, "we...
def Kuf_conv_patch(feat, kern, Xnew): Xp = kern.get_patches(Xnew) # [N, num_patches, patch_len] bigKzx = kern.base_kernel.K( feat.Z, Xp ) # [M, N, P] -- thanks to broadcasting of kernels Kzx = tf.reduce_sum( bigKzx * kern.weights if hasattr(kern, "weights") else bigKzx, [2] ) r...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def Kuu_kernel_inducingpoints( inducing_variable: InducingPoints, kernel: Kernel, *, jitter=0.0 ): Kzz = kernel(inducing_variable.Z) Kzz += jitter * tf.eye(inducing_variable.num_inducing, dtype=Kzz.dtype) return Kzz
def Kuu_kernel_inducingpoints( inducing_variable: InducingPoints, kernel: Kernel, *, jitter=0.0 ): Kzz = kernel(inducing_variable.Z) Kzz += jitter * tf.eye(len(inducing_variable), dtype=Kzz.dtype) return Kzz
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def Kuu_sqexp_multiscale( inducing_variable: Multiscale, kernel: SquaredExponential, *, jitter=0.0 ): Zmu, Zlen = kernel.slice(inducing_variable.Z, inducing_variable.scales) idlengthscales2 = tf.square(kernel.lengthscales + Zlen) sc = tf.sqrt( idlengthscales2[None, ...] + idlengthscales2...
def Kuu_sqexp_multiscale( inducing_variable: Multiscale, kernel: SquaredExponential, *, jitter=0.0 ): Zmu, Zlen = kernel.slice(inducing_variable.Z, inducing_variable.scales) idlengthscales2 = tf.square(kernel.lengthscales + Zlen) sc = tf.sqrt( idlengthscales2[None, ...] + idlengthscales2...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def Kuu_conv_patch(inducing_variable, kernel, jitter=0.0): return kernel.base_kernel.K(inducing_variable.Z) + jitter * tf.eye( inducing_variable.num_inducing, dtype=default_float() )
def Kuu_conv_patch(feat, kern, jitter=0.0): return kern.base_kernel.K(feat.Z) + jitter * tf.eye( len(feat), dtype=default_float() )
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def _Kuu( inducing_variable: FallbackSeparateIndependentInducingVariables, kernel: Union[SeparateIndependent, LinearCoregionalization], *, jitter=0.0, ): Kmms = [ Kuu(f, k) for f, k in zip(inducing_variable.inducing_variable_list, kernel.kernels) ] Kmm = tf.stack(Kmms, axis=0...
def _Kuu( inducing_variable: FallbackSeparateIndependentInducingVariables, kernel: Union[SeparateIndependent, LinearCoregionalization], *, jitter=0.0, ): Kmms = [ Kuu(f, k) for f, k in zip(inducing_variable.inducing_variable_list, kernel.kernels) ] Kmm = tf.stack(Kmms, axis=0...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def __init__(self, Z: TensorData, name: Optional[str] = None): """ :param Z: the initial positions of the inducing points, size [M, D] """ super().__init__(name=name) if not isinstance(Z, (tf.Variable, tfp.util.TransformedVariable)): Z = Parameter(Z) self.Z = Z
def __init__(self, Z: TensorData, name: Optional[str] = None): """ :param Z: the initial positions of the inducing points, size [M, D] """ super().__init__(name=name) self.Z = Parameter(Z, dtype=default_float())
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def __len__(self) -> int: return tf.shape(self.Z)[0]
def __len__(self) -> int: return self.Z.shape[0]
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def __len__(self) -> int: return self.inducing_variable.num_inducing
def __len__(self) -> int: return len(self.inducing_variable)
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def __len__(self) -> int: # TODO(st--) we should check that they all have the same length... return self.inducing_variable_list[0].num_inducing
def __len__(self) -> int: return len(self.inducing_variable_list[0])
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def __init__( self, distribution_class: Type[tfp.distributions.Distribution] = tfp.distributions.Normal, scale_transform: Optional[tfp.bijectors.Bijector] = None, **kwargs, ): """ :param distribution_class: distribution class parameterized by `loc` and `scale` as first and second argumen...
def __init__( self, distribution_class: Type[tfp.distributions.Distribution] = tfp.distributions.Normal, scale_transform: tfp.bijectors.Bijector = positive(base="exp"), **kwargs, ): """ :param distribution_class: distribution class parameterized by `loc` and `scale` as first and second a...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def conditional_distribution(Fs) -> tfp.distributions.Distribution: tf.debugging.assert_equal(tf.shape(Fs)[-1], 2) loc = Fs[..., :1] scale = self.scale_transform(Fs[..., 1:]) return distribution_class(loc, scale)
def conditional_distribution(Fs) -> tfp.distributions.Distribution: tf.debugging.assert_equal(tf.shape(Fs)[-1], 2) loc = Fs[..., :1] scale = scale_transform(Fs[..., 1:]) return distribution_class(loc, scale)
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def elbo(self) -> tf.Tensor: """ Construct a tensorflow function to compute the bound on the marginal likelihood. """ Y_data = self.data pX = DiagonalGaussian(self.X_data_mean, self.X_data_var) num_inducing = self.inducing_variable.num_inducing psi0 = tf.reduce_sum(expectation(pX, self...
def elbo(self) -> tf.Tensor: """ Construct a tensorflow function to compute the bound on the marginal likelihood. """ Y_data = self.data pX = DiagonalGaussian(self.X_data_mean, self.X_data_var) num_inducing = len(self.inducing_variable) psi0 = tf.reduce_sum(expectation(pX, self.kernel)...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def predict_f( self, Xnew: InputData, full_cov: bool = False, full_output_cov: bool = False ) -> MeanAndVariance: """ Compute the mean and variance of the latent function at some new points. Note that this is very similar to the SGPR prediction, for which there are notes in the SGPR notebook. N...
def predict_f( self, Xnew: InputData, full_cov: bool = False, full_output_cov: bool = False ) -> MeanAndVariance: """ Compute the mean and variance of the latent function at some new points. Note that this is very similar to the SGPR prediction, for which there are notes in the SGPR notebook. N...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, inducing_variable: Optional[InducingPoints] = None, ): """ data is a tuple of X, Y with X, a data matrix, size [N, D] ...
def __init__( self, data: RegressionData, kernel: Kernel, likelihood: Likelihood, mean_function: Optional[MeanFunction] = None, num_latent_gps: Optional[int] = None, inducing_variable: Optional[InducingPoints] = None, ): """ data is a tuple of X, Y with X, a data matrix, size [N, D] ...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def upper_bound(self) -> tf.Tensor: """ Upper bound for the sparse GP regression marginal likelihood. Note that the same inducing points are used for calculating the upper bound, as are used for computing the likelihood approximation. This may not lead to the best upper bound. The upper bound can b...
def upper_bound(self) -> tf.Tensor: """ Upper bound for the sparse GP regression marginal likelihood. Note that the same inducing points are used for calculating the upper bound, as are used for computing the likelihood approximation. This may not lead to the best upper bound. The upper bound can b...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def elbo(self) -> tf.Tensor: """ Construct a tensorflow function to compute the bound on the marginal likelihood. For a derivation of the terms in here, see the associated SGPR notebook. """ X_data, Y_data = self.data num_inducing = self.inducing_variable.num_inducing num_data = to_defa...
def elbo(self) -> tf.Tensor: """ Construct a tensorflow function to compute the bound on the marginal likelihood. For a derivation of the terms in here, see the associated SGPR notebook. """ X_data, Y_data = self.data num_inducing = len(self.inducing_variable) num_data = to_default_floa...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def predict_f( self, Xnew: InputData, full_cov=False, full_output_cov=False ) -> MeanAndVariance: """ Compute the mean and variance of the latent function at some new points Xnew. For a derivation of the terms in here, see the associated SGPR notebook. """ X_data, Y_data = self.data num_...
def predict_f( self, Xnew: InputData, full_cov=False, full_output_cov=False ) -> MeanAndVariance: """ Compute the mean and variance of the latent function at some new points Xnew. For a derivation of the terms in here, see the associated SGPR notebook. """ X_data, Y_data = self.data num_...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def common_terms(self): X_data, Y_data = self.data num_inducing = self.inducing_variable.num_inducing err = Y_data - self.mean_function(X_data) # size [N, R] Kdiag = self.kernel(X_data, full_cov=False) kuf = Kuf(self.inducing_variable, self.kernel, X_data) kuu = Kuu(self.inducing_variable, self...
def common_terms(self): X_data, Y_data = self.data num_inducing = len(self.inducing_variable) err = Y_data - self.mean_function(X_data) # size [N, R] Kdiag = self.kernel(X_data, full_cov=False) kuf = Kuf(self.inducing_variable, self.kernel, X_data) kuu = Kuu(self.inducing_variable, self.kernel,...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def __init__( self, kernel, likelihood, inducing_variable, *, mean_function=None, num_latent_gps: int = 1, q_diag: bool = False, q_mu=None, q_sqrt=None, whiten: bool = True, num_data=None, ): """ - kernel, likelihood, inducing_variables, mean_function are appropri...
def __init__( self, kernel, likelihood, inducing_variable, *, mean_function=None, num_latent_gps: int = 1, q_diag: bool = False, q_mu=None, q_sqrt=None, whiten: bool = True, num_data=None, ): """ - kernel, likelihood, inducing_variables, mean_function are appropri...
https://github.com/GPflow/GPflow/issues/1578
TypeError Traceback (most recent call last) <ipython-input-24-9a082736eedc> in <module> 38 39 ---> 40 optimization_step() 41 42 ~/anaconda3/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 778 else: 779 compiler = "no...
TypeError
def ndiagquad(funcs, H: int, Fmu, Fvar, logspace: bool = False, **Ys): """ Computes N Gaussian expectation integrals of one or more functions using Gauss-Hermite quadrature. The Gaussians must be independent. The means and variances of the Gaussians are specified by Fmu and Fvar. The N-integrals ar...
def ndiagquad(funcs, H: int, Fmu, Fvar, logspace: bool = False, **Ys): """ Computes N Gaussian expectation integrals of one or more functions using Gauss-Hermite quadrature. The Gaussians must be independent. The means and variances of the Gaussians are specified by Fmu and Fvar. The N-integrals ar...
https://github.com/GPflow/GPflow/issues/1547
Traceback (most recent call last): File "gpflow_error.py", line 20, in <module> go() File "gpflow_error.py", line 16, in go quad = compute() File "/Users/nferguson/gpflow_error/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 580, in __call__ result = self._call(*args, **kwds) File "/Users/nfe...
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError
def wrapper(old_fun): def new_fun(X, **Ys): Xs = tf.unstack(X, axis=-1) fun_eval = old_fun(*Xs, **Ys) return tf.cond( pred=tf.less(tf.rank(fun_eval), tf.rank(X)), true_fn=lambda: fun_eval[..., tf.newaxis], false_fn=lambda: fun_eval, ) return n...
def wrapper(old_fun): def new_fun(X, **Ys): Xs = tf.unstack(X, axis=-1) fun_eval = old_fun(*Xs, **Ys) if tf.rank(fun_eval) < tf.rank(X): fun_eval = tf.expand_dims(fun_eval, axis=-1) return fun_eval return new_fun
https://github.com/GPflow/GPflow/issues/1547
Traceback (most recent call last): File "gpflow_error.py", line 20, in <module> go() File "gpflow_error.py", line 16, in go quad = compute() File "/Users/nferguson/gpflow_error/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 580, in __call__ result = self._call(*args, **kwds) File "/Users/nfe...
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError
def new_fun(X, **Ys): Xs = tf.unstack(X, axis=-1) fun_eval = old_fun(*Xs, **Ys) return tf.cond( pred=tf.less(tf.rank(fun_eval), tf.rank(X)), true_fn=lambda: fun_eval[..., tf.newaxis], false_fn=lambda: fun_eval, )
def new_fun(X, **Ys): Xs = tf.unstack(X, axis=-1) fun_eval = old_fun(*Xs, **Ys) if tf.rank(fun_eval) < tf.rank(X): fun_eval = tf.expand_dims(fun_eval, axis=-1) return fun_eval
https://github.com/GPflow/GPflow/issues/1547
Traceback (most recent call last): File "gpflow_error.py", line 20, in <module> go() File "gpflow_error.py", line 16, in go quad = compute() File "/Users/nferguson/gpflow_error/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py", line 580, in __call__ result = self._call(*args, **kwds) File "/Users/nfe...
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError
def __init__( self, data: OutputData, latent_dim: int, X_data_mean: Optional[tf.Tensor] = None, kernel: Optional[Kernel] = None, mean_function: Optional[MeanFunction] = None, ): """ Initialise GPLVM object. This method only works with a Gaussian likelihood. :param data: y data matri...
def __init__( self, data: OutputData, latent_dim: int, X_data_mean: Optional[tf.Tensor] = None, kernel: Optional[Kernel] = None, mean_function: Optional[MeanFunction] = None, ): """ Initialise GPLVM object. This method only works with a Gaussian likelihood. :param data: y data matri...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError
def __init__( self, data: OutputData, X_data_mean: tf.Tensor, X_data_var: tf.Tensor, kernel: Kernel, num_inducing_variables: Optional[int] = None, inducing_variable=None, X_prior_mean=None, X_prior_var=None, ): """ Initialise Bayesian GPLVM object. This method only works with...
def __init__( self, data: OutputData, X_data_mean: tf.Tensor, X_data_var: tf.Tensor, kernel: Kernel, num_inducing_variables: Optional[int] = None, inducing_variable=None, X_prior_mean=None, X_prior_var=None, ): """ Initialise Bayesian GPLVM object. This method only works with...
https://github.com/GPflow/GPflow/issues/1439
Traceback (most recent call last): File "main.py", line 177, in <module> main(args) File "main.py", line 64, in main build_allele(args) File "/path/to/1_model_sim/drivers.py", line 226, in build_allele opt_model_list(m) File "/path/to/1_model_sim/model.py", line 355, in opt_model_list m.trainable_variables) File "/path...
ValueError