Batch request does not return Object's media data from Storage Buckets.

Bucket lon-lat-app-2-public-entities is public fo reading
I try to perform next script:
  function start() {
    // Initializes the client with the API key and the Translate API.
    gapi.client.init({
      'apiKey': 'AIzaSyDang2hUBNuctfw9F8ZDMAsK4dzplPX0fQ',
      'discoveryDocs': ['https://www.googleapis.com/discovery/v1/apis/storage/v1/rest'],
    }).then(function() {
      // Executes an API request, and returns a Promise.
      // The method name `language.translations.list` comes from the API discovery.

    var req1 = gapi.client.storage.objects.get({
        'bucket': 'lon-lat-app-2-public-entities',
        'object': 'userConversationMessage.0cf12a66-2886-4123-89eb-917c703b3630',
        'alt': 'media'
      });
//      return req1;

      var batch = gapi.client.newBatch();
      batch.add(req1, {'id': 'first'});
      return batch;
    }).then(function(response) {
      console.log(response);
    }, function(reason) {
      console.log(reason);
    });
  };

  // Loads the JavaScript client library and invokes `start` afterwards.
  gapi.load('client', start);

If I return req1; then I receive object data:
{
  result : {
    alias:"message1",
    assetTypes:Array[0],
    authorId:"user.ea4d4fcc-411f-483c-a8a7-d678005f9e18",
    created:"2017-01-05T15:12:42.201Z",
    ...

But if I try to return batch; then I receive strange responce:

    <TITLE>Moved Temporarily</TITLE>

Moved Temporarily

    The document has moved here.

The question is how to get media Object from Google Cloud Storage Bucket through batch request.
(Butch request successfully returns Objects metadata trough butch request but not Object's media data)

I think this is a specific behavior for the Cloud Storage API, please see the support page: https://cloud.google.com/storage/docs/resources-support. They have a Stack Overflow section for questions. Thanks

Also, please redact your API Key for questions.


fix: run build in sequence

Running the build tasks in parallel fails when the vite.config is a .ts file. This avoids the missing config file error when generating the output.
Vite generates a vite.config.ts.js when the project has "type": "module" set in the package.json which seems to fail when multiple build tasks are running:
https://github.com/vitejs/vite/blob/main/packages/vite/src/node/config.ts#L728

Thanks.


backports 1.1: Fix namespace package declaration

Destination channel: main
Links

PKG-5442
Upstream repository

Explanation of changes:

Add feedstock's license and README.md
Replace __init__.py with a new init.py; remove build.sh, bld.bat and add build/script to meta.yaml (taken from the conda-forge's PR https://github.com/conda-forge/backports-feedstock/pull/7)
Use set -ex and echo on in build/scripts for printing command executions to stdout
Check {{ PYTHON }} -c "import backports" in build/script
Add tests from the conda-forge's PR https://github.com/conda-forge/backports-feedstock/pull/7 but extend it by checking all backports packages available in defaults

Notes:

A related PR https://github.com/AnacondaRecipes/setuptools-feedstock/pull/62

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_bdjry0_l21/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:68: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
===== Final Report: =====
0 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_1b86gk92mn/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:69: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
===== Final Report: =====
0 Errors and 1 Warning were found

Overall, the PR description isn't telling me why we're doing this, nor does the Jira ticket.

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_78dmunnqkc/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:72: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
===== Final Report: =====
0 Errors and 1 Warning were found

ebuilding because  setuptools >=70.0.0 can break backports packages

@ifitchet I addressed your comments and clarified why we rebuild this package

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_c7hj_fad20/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:75: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
===== Final Report: =====
0 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_44s21a_rf9/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:75: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
===== Final Report: =====
0 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_7ccp849m2n/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:75: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
===== Final Report: =====
0 Errors and 1 Warning were found


Board Review: azquery (Monitor Query for Go)

Thank you for submitting this review request. Thorough review of your client library ensures that your APIs are consistent with the guidelines and the consumers of your client library have a consistently good experience when using Azure.
The Architecture Board reviews Track 2 libraries only. If your library does not meet this requirement, please reach out to Architecture Board before creating the issue.
Please reference our review process guidelines to understand what is being asked for in the issue template.
To ensure consistency, all Tier-1 languages (C#, TypeScript, Java, Python) will generally be reviewed together.  In expansive libraries, we will pair dynamic languages (Python, TypeScript) together, and strongly typed languages (C#, Java) together in separate meetings.
For Tier-2 languages (C, C++, Go, Android, iOS), the review will be on an as-needed basis.
Before submitting, ensure you adjust the title of the issue appropriately.
Note that the required material must be included before a meeting can be scheduled.
Contacts and Timeline

Responsible service team: SDK Team
Main contacts: Grace Wilcox, Scott Addie
Expected code complete date:
Expected release date: GA November 2022

About the Service

Link to documentation introducing/describing the service:
This SDK is already GA in tier one languages.
https://docs.microsoft.com/en-us/azure/azure-monitor/overview
https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/data-platform-metrics
https://docs.microsoft.com/en-us/azure/azure-monitor/logs/data-platform-logs
Link to the service REST APIs:
Link to GitHub issue for previous review sessions, if applicable:
tier 1 language release
https://github.com/Azure/azure-sdk/issues/2783

About the client library

Name of the client library: azquery (Azure Monitor Log and Metrics Query)
Languages for this review: Go

Artifacts required (per language)
Please read through “API Review” section here to understand how these artifacts are generated. It is critical that these artifacts are present and are in the right format. If not, the language architects cannot review them with the SDK Team’s API review tool.
Go

APIView Link: https://apiview.dev/Assemblies/Review/b2356600c37347a0bb38ec187b1b84f1#azquery.Client
Link to Champion Scenarios/Quickstart samples:

For all other languages, send a request to the Architecture Board to discuss the best format on individual basis.
Thank you!

Scheduled for 9/26, 2p-4p PDT

Recording (MS INTERNAL ONLY)


refactor(semantic): rename vars in transform checker

Pure refactor. Just rename some vars for consistency.

#5072  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite

Cosmetic change only, so merging without review.


[Accordion] Use Collection util

Adds support for asynchronously rendered items.

Not sure why but Chromatic seems to be stuck on the previous diff (tabs)

All good from me apart the weird Chromatic stuff mentioned.

Oh yeah, weird... I'll just approve it again and hopefully things will straighten out?


Patches without changes?

There is some strange code in radian.el that I am trying to understand. In json-mode and osx-trash, there are several definitions under :init/el-patch that don't contain any el-patch-* forms and that are seemingly identical to the original definitions. Is this right?

Yep, these are used for lazy-loading: https://github.com/raxod502/el-patch#lazy-loading-packages


IntuneCD Script backup BUG

Hi there,
Once I run tool locally with command: IntuneCD-startbackup -m 1 -o yaml -p /path/to/save/in -a /path/to/auth.json/
everything starts backing up from our Intune, but once it comes to script part of backup, we are getting this message:

Can you please help?

Hi,
Try the solution provided here: https://github.com/almenscorner/IntuneCD/issues/51#issuecomment-1340959764

Hi,
Did the above solution work for you?

Hi, yes it works in local now thanks so much. Is there any chance you can make some instructions/manual how to use it in AzureDevops. I am new to this and i am facing some hard time about this part. Once i try to run pipeline i am getting all kind of errors... I probably do something wrong with definition of variables, idk what to put for git user name/mail, etc... I think this manual would help me allot to understand concepts on AzureDevops and IntuneCD tool. Thanks ✌🏻
On Thursday, January 5, 2023 at 02:49:22 PM GMT+1, Tobias Almén @.***> wrote:
Hi,
Did the above solution work for you?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

@aaronparker wrote a great blog post on that which you can find here: https://stealthpuppy.com/automate-intune-documentation-azure/
Let me know if you need additional help!

Thank you so much, I created everything from this link and it's working without issues. now I just want to configure one last pipeline for intunecd-startupdate. I saw your example, but I am not pretty sure can it work or is it working like I am thinking. If I am not wrong, if I clone whole backup in local and for example, I change just one configuration for something, push those updates back to AzureDevops and run your example pipeline for intune-startupdate will this push those changes to Intune?

I am curious how pipeline knows from where to push those changes... Or if you have some sample pipeline that can do what I have mention above would be really awesome.
Thanks

What you can do is to add this to the pipeline at the top,
trigger:
 branches:
  include:
    - main

This will ensure that whenever a push is made to the main branch, the pipeline will run.
So, if you clone the Git repo locally, change a value, commit it and push to main, the pipeline will run and update the configuration in Intune with the new value.
What happens when IntuneCD-startupdate runs is that it will compare the settings you have in the Intune environment specified in the ENV vars for the pipeline to what you have in the Git repo. If the configuration in Intune differs from what is in the repo, IntuneCD will update that configuration with the new setting.
This way, the source is always the Git repo, the configurations that are there is what is in production.

Thanks, I manage to configure it. It's working like a charm :)
On Tuesday, January 10, 2023 at 01:17:59 PM GMT+1, Tobias Almén @.***> wrote:
What you can do is to add this to the pipeline at the top,
trigger:
branches:
include:
- main
This will ensure that whenever a push is made to the main branch, the pipeline will run.
So, if you clone the Git repo locally, change a value, commit it and push to main, the pipeline will run and update the configuration in Intune with the new value.
What happens when IntuneCD-startupdate runs is that it will compare the settings you have in the Intune environment specified in the ENV vars for the pipeline to what you have in the Git repo. If the configuration in Intune differs from what is in the repo, IntuneCD will update that configuration with the new setting.
This way, the source is always the Git repo, the configurations that are there is what is in production.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Good to hear :)
I will go ahead and close this issue. If you have any additional questions or problem, open a new issue or create a new discussion!


ENH: single trial TFR API

Continues discussion from #1780.

Is this with the goal of being able to compute TFR and retain individual trial traces? Very much so +1 to this :) for ECoG anyway, it'd be nice to be able to just calculate a full TFR and save it do disk for multiple uses later.

tfrs = [tfr_XXX(epochs[i]) for i in range(len(epochs))]
then you need a write tfr that can write multiple ones...
but maybe it's not so easy...

I agree that it's doable, though seems strange to get single trial tfr
functionality by using the AverageTFR in a non-intuitive way. Either way,
for me a question is how to handle the representation of the result. E.g.,
one way to save would be to combine the results into a big dataframe and
save it to HDF5, but maybe there are better ways of handling the output of
the data (it seems like using fif format wouldn't make sense anymore)
On Fri, May 8, 2015 at 1:32 AM, Alexandre Gramfort<EMAIL_ADDRESS>
wrote:

tfrs = [tfr_XXX(epochs[i]) for i in range(len(epochs))]
then you need a write tfr that can write multiple ones...
but maybe it's not so easy...
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-100152526
.

I was thinking about something as boring as a designated function returning a designated object, some kind of EpochsTFR with .average method.

Saving the data to HDF5 and loading it will be almost trivial once the object is defined. You just dump the object properties to a dict and save, and repopulate on load.

Out of curiosity, why wasn't this the original implementation instead of
creating an AverageTFR class. It seems like it would have been more in
line with MNE structures (e.g., create an Epochs object, and then give an
average function to create an Evoked object). Are there issues with
memory or something?
On Fri, May 8, 2015 at 9:09 AM, Eric Larson<EMAIL_ADDRESS>wrote:

Saving the data to HDF5 and loading it will be almost trivial once the
object is defined. You just dump the object properties to a dict and
save, and repopulate on load.
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-100282966
.

yes it's a memory issue. In TF you blow up the dimension of the data

yeah that's the same problem I've ran into before. I guess the upside is
that you can often decimate TFR representations though, no? (I've never
used these methods for things like coherence or phase estimate
though...maybe that'd mess up?)
On Fri, May 8, 2015 at 10:48 AM, Alexandre Gramfort <
<EMAIL_ADDRESS>wrote:

yes it's a memory issue. In TF you blow up the dimension of the data
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-100310142
.

decimation helps and most people need the average that's why we chose this
design. But we can always improve it....

yeah that definitely makes sense. all the current behavior could remain the
same if need be anyway, no? You could just use "average_epochs" as a flag
to the various tfr_XXX functions and it could return an AverageTFR object
in that case. Otherwise, it would return an EpochsTFR. Or maybe it would
make more sense to call AverageTFR something like EvokedTFR to keep it
in line with the current epochs naming.
On Fri, May 8, 2015 at 12:59 PM, Alexandre Gramfort <
<EMAIL_ADDRESS>wrote:

decimation helps and most people need the average that's why we chose this
design. But we can always improve it....
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-100341570
.

an average param in the tfr_XXX function would do it indeed. EpochsTFR
sounds good

EpochsTFR

That would be important to do deconding and stats across trials.

Yeah, I first thought about this when I was looking into the time generalization stuff as well as from this example [1] where single_trial_power is used to get the full TFR for one electrode.
It seems that the code in single_trial_power is close to what would be needed anyway, just would need to let it use more than morlet wavelets, and to output the EpochsTFR class, no?
[1] http://martinos.org/mne/stable/auto_examples/stats/plot_cluster_1samp_test_time_frequency.html

just would need to let it use more than morlet wavelets, and to output the EpochsTFR class, no?

yes, basically that's it.

Hey all - just a quick list of some important stuff to consider from a chat with me and @dengemann:
Important stuff to consider

Generator-like functionality to avoid exploding memory
How much to overlap the behavior of this with that of Epochs objects
How to handle the reading/writing representation
Including epoch information with the object (e.g., epoch string to integer dictionaries)
Whether or not to create a separate class for this kind of thing, or make a collection of functions that operate on epochs objects

Potential use cases

Decoding conditions between trials (+ temporal generalization stuff)
Cross-frequency statistics (e.g., phase/amplitude coupling, phase/phase, etc)
Other frequency-based connectivity stuff?

Random update - running CWT_wavelet on individual epochs and storing them as a complex128 array is taking up ~8GB of disk space for me. This is with roughly 200 trials, 60 channels, 50 freqs, and 600 timepoints. I just wrote a simple class to handle I/O for me right now, which basically just does this:
class EpochTFR(object):
    def __init__(self, data, freqs, events, times, info):
        self.data = data
        self.freqs = freqs
        self.events = events
        self.times = times
        self.info = info

    def write_hdf(self, fname):
        print('Writing TFR data to {0}'.format(fname))
        write_dict = {'data': self.data, 'freqs': self.freqs,
                      'events': self.events, 'times': self.times,
                      'info': self.info}
        mne._hdf5.write_hdf5(fname, write_dict, overwrite=True)

    @staticmethod
    def from_hdf(fname):
        out = mne._hdf5.read_hdf5(fname)
        etfr = self.__init__(out['data'], out['freqs'], out['events'],
                             out['times'], out['info'])
        return etfr

This is after downsampling the signal from 1000Hz to 100Hz (post-TFR decomp). I haven't really found any good information about how much it's "ok" to downsample after you've got the TFR though.

looks useful to me

I should say, the morlet wavelet CWT finished in about 10 minutes, so that's not a trivial amount of time, though not a huge amount of time either.
Personally it would be useful to be able to just load full epoched TFR information into memory so I can do branching-off analyses from there. Certainly saves time as you have more and more datasets (especially since you currently can't use joblib for any of this due to memory constraints).
What other functionality should be in a class like this? I can imagine:

A method to return a subset of frequencies as an AverageTFR method
A method to return a subset of frequencies as an Epochs array (e.g., to do time generalization)
An iterator method that would return electrodes if you iterate through this (so that you can do something like permutation test 2-d clustering
Methods for selecting sub-parts of data (e.g., crop, pick_channels, etc)

I was thinking it would be useful to just have this as a way of representing the data, and then use derivation classes to do more computational stuff (e.g., expect the user to turn this into an Epochs object, then run analysis, rather than having analysis code operate directly on EpochTFR). What do people think?

Here's what I have now...worth opening a PR?
class EpochTFR(object):
    """
    Create an EpochTFR object for single-trial TFR representation.

    This allows you to store TFR information without averaging across
    trials. Be careful with memory usage, as it can get quite large.
    Consider decimating before this step.

    Parameters
    ----------
    data : ndarray, shape(n_epochs, n_chans, n_freqs, n_times)
        The TFR data you wish to construct.
    freqs : ndarray, shape(n_freqs)
        The frequency labels during TFR construction
    times : ndarray, shape(n_times)
        The time labels during epochs creation
    events : ndarray, shape (n_epochs, 3)
        An MNE events array, see documentation for details
    event_id : dict
        A mapping from event names to integer event IDs
    info : mne Info object
        The info object from the original Epochs instance.
        May be unnecessary but keep it just in case.
    method : string
        Information describing how this TFR data was created.

    Attributes
    ----------
    ch_names : list
        The names of the channels
    """
    def __init__(self, data, freqs, times, events, event_id, info, method=None):
        if data.ndim != 4:
            raise ValueError('data should be 4d. Got %d.' % data.ndim)
        n_epochs, n_channels, n_freqs, n_times = data.shape
        if n_channels != len(info['chs']):
            raise ValueError("Number of channels and data size don't match"
                             " (%d != %d)." % (n_channels, len(info['chs'])))
        if n_freqs != len(freqs):
            raise ValueError("Number of frequencies and data size don't match"
                             " (%d != %d)." % (n_freqs, len(freqs)))
        if n_times != len(times):
            raise ValueError("Number of times and data size don't match"
                             " (%d != %d)." % (n_times, len(times)))
        if n_epochs != events.shape[0]:
            raise ValueError("Number of epochs and data size don't match"
                             " (%d != %d)." % (n_epochs, events.shape[0]))
        self.data = data
        self.freqs = freqs
        self.events = events
        self.event_id = event_id
        self.times = times
        self.info = info
        self.method = method

    @property
    def ch_names(self):
        return self.info['ch_names']

    def write_hdf(self, fname, **kwargs):
        """
        Write the object to an HDF file.

        This bottles up all object attributes into a dictionary,
        and sends it to an HDF file via the h5py library.

        Parameters
        ----------
        fname : str
            The file name of the hdf5 file.
        **kwargs : dict
            Arguments are passed to write_hdf5
        """
        print('Writing TFR data to {0}'.format(fname))
        write_dict = {'data': self.data, 'freqs': self.freqs,
                      'events': self.events, 'times': self.times,
                      'info': self.info, 'event_id': self.event_id}
        mne._hdf5.write_hdf5(fname, write_dict, **kwargs)

    def subset_freq(self, fmin, fmax):
        """
        Return the mean of a subset of frequencies as an Epochs object.

        Parameters
        ----------
        fmin : float
            The minimum frequency to keep.

        fmax : float
            The maximum frequency to keep.
        """
        mask_freq = (self.freqs > fmin) * (self.freqs < fmax)
        data_freq = self.data[:, :, mask_freq, :].mean(2)
        epoch_info = self.info.copy()
        epoch_info['description'] = "{'kind': 'TFRFreqSubset', 'freqs': '{0}-{1}'.format(fmin, fmax)}"
        return mne.EpochsArray(data_freq, epoch_info, self.events,
                                 tmin=self.times.min(), event_id=self.event_id)

    def subset_epoch(self, epoch_ixs):
        """
        Return the mean of a subset of epochs.

        Parameters
        ----------
        epoch_ixs : list, ndarray
            The epoch indices to keep

        Returns
        ----------
        obj : AverageTFR
            Instance of AverageTFR with epochs averaged.
        """

        data_epoch = self.data[epoch_ixs, ...].mean(0)
        epoch_info = self.info.copy()
        return mne.time_frequency.AverageTFR(epoch_info, data_epoch, self.times,
                                             self.freqs, len(epoch_ixs), comment='TFREpochSubset',
                                             method=self.method)

    def crop(self, tmin=None, tmax=None, copy=False):
        """Crop data to a given time interval

        Parameters
        ----------
        tmin : float | None
            Start time of selection in seconds.
        tmax : float | None
            End time of selection in seconds.
        copy : bool
            If False epochs is cropped in place.
        """
        inst = self if not copy else self.copy()
        mask_time = mne.utils._time_mask(self.times, tmin, tmax)
        inst.times = inst.times[mask_time]
        inst.data = inst.data[..., mask_time]
        return inst

    def __repr__(self):
        s = "time : [%f, %f]" % (self.times[0], self.times[-1])
        s += ', epochs: {0}'.format(self.events.shape[0])
        s += ", freq : [%f, %f]" % (self.freqs[0], self.freqs[-1])
        s += ', channels : %d' % self.data.shape[0]
        return "<EpochTFR  |  %s>" % s

    @staticmethod
    def from_hdf(fname):
        """
        Read an EpochsTFR from an HDF5 file.

        This expects an HDF5 file that was created with
        write_hdf5. It auto-populates a new EpochsTFR object.
        Be careful with memory consumption!

        Parameters
        ----------
        fname : str
            The path to the HDF5 file you wish to import.

        Returns
        -------
        etfr : EpochsTFR
            The EpochsTFR object contained in the HDF5 file.
        """
        params = mne._hdf5.read_hdf5(fname)
        etfr = EpochTFR(**params)
        return etfr

what is needed is a way to generate such objects. The API of this object is
next.

Cool - should this kind of code be roped into a PR that includes functions that return single-trial TFR? Seems like it could get confusing to have them separate. I don't have time to work on changing the TFR functions in earnest right now...maybe something I can work on while in France?
Otherwise, somebody else is more than welcome to take the code above and roll it into their own PR. I'm just going to use this locally for data I/O and creating TFR by iterating through epochs[i] with cwt_morlet, which is kinda hacky but still works.

let's keep this for the sprint in Paris this summer

That still happening? Last I heard you guys were waiting on funding. Either
way I've booked my flights: into paris on the 6th, out on the 28th.
On Wed, Jun 3, 2015 at 12:55 PM, Alexandre Gramfort <
<EMAIL_ADDRESS>wrote:

let's keep this for the sprint in Paris this summer
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-108596062
.

we have the funding now :)

Wohoo!
:moneybag:

Is it possible to get single trial phase as well? Does something like 'tfrs = [tfr_XXX(epochs[i]) for i in range(len(epochs))]' exists for phase that I could use in the sort term? Could this kind of feature be added to the single trial TFR code if nothing exists?

Right now the way I'm using it on my own is to store the values as complex
64 bit numbers, that way you can calculate either the phase or amplitude.
That said, right now there isn't any kind of tangible PR so that's just my
own anecdotal use :)
On Thu, Jul 23, 2015 at 11:28 PM, Matt Erhart<EMAIL_ADDRESS>wrote:

Is it possible to get single trial phase as well? Does something like
'tfrs = [tfr_XXX(epochs[i]) for i in range(len(epochs))]' exists for phase
that I could use in the sort term? Could this kind of feature be added to
the single trial TFR code if nothing exists?
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-124244819
.

Are you going into the various TF functions and changing a line like 'TFR_abs = np.abs(TFR)' so you can do abs or angle later? I could manage that for now if that's all. 'Complex', 'Angle', or 'Phase' might make for a useful flag. Might be relevant to the CFC branch as well.

Right now I'm just pulling stuff from the data attribute, which is a
matrix of shape(n_epochs, n_channels, n_freqs, n_times). I'll just do
something like:
amp = np.abs(tfr.data[:, 10, ...])
or
phase = np.angle(tfr.data[:, 10, ...])
That said, I think that if this were implemented it'd warrant some
discussion about how to handle memory usage etc.
On Fri, Jul 24, 2015 at 1:04 AM, Matt Erhart<EMAIL_ADDRESS>wrote:

Are you going into the various TF functions and changing a line like
'TFR_abs = np.abs(TFR)' so you can do abs or angle later? I could manage
that for now if that's all. 'Complex', 'Angle', or 'Phase' might make for a
useful flag. Might be relevant to the CFC branch as well.
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-124262070
.

Thanks for your help. The tfr you're referring to comes from your EpochTFR class above and not something currently in mnepy?

Yup, it's just my own code for personal uses right now. You can find it all here...it's relatively straightforward but has a lot of improvements to be made if it were to be an official addition to MNE.
https://github.com/choldgraf/ecogtools/blob/master/tfr.py

Hey all - reviving this because I'm working through my own EpochTFR code again and thought it might be worth revisiting.
Would this still be useful for MNE? Right now, I have a function that extracts the TFR of each trial and puts it into an EpochTFR object that keeps it all together and reads/writes from HDF5.
def tfr_epochs(epoch, freqs_tfr, n_decim=10, n_cycles=4):
    """Extract a TFR representation from epochs w/o averaging.

    This will extract the TFR for the given frequencies, returning
    an EpochsTFR object with data shape (n_epochs, n_chans, n_freqs, n _times).
    TFR is performed with a morlet wavelet.

    Parameters
    ----------
    epoch : mne.Epochs instance
        The epochs for which to extract the TFR
    freqs_tfr : array-like
        The frequencies to extract w/ wavelets
    n_decim : int
        The factor to decimate the time-dimension. 1=no decimation
    n_cycles : int
        The number of cycles for the wavelets
    """
    # Preallocate space
    new_times = epoch.times[::n_decim]
    new_info = epoch.info.copy()
    new_info['sfreq'] /= n_decim
    new_epoch = epoch.copy()
    n_epoch = len(new_epoch)
    out_shape = (n_epoch, len(epoch.ch_names),
                 freqs_tfr.shape[0], len(new_times))
    tfr = np.zeros(out_shape, dtype=np.float32)
    print('Preallocating space\nshape: {0}\nmbytes:{1}'.format(
        out_shape, tfr.nbytes/1000000))

    # Do TFR decomp
    print('Extracting TFR information...')
    pbar = ProgressBar(n_epoch)
    for i in range(n_epoch):
        iepoch = new_epoch[i]
        idata = iepoch._data.squeeze()
        itfr = mne.time_frequency.cwt_morlet(idata, iepoch.info['sfreq'],
                                             freqs_tfr, n_cycles=n_cycles)
        itfr = itfr[:, :, ::n_decim]
        tfr[i] = np.abs(itfr)
        pbar.update_with_increment_value(1)

    etfr = EpochTFR(tfr, freqs_tfr, new_times, new_epoch.events,
                    new_epoch.event_id, new_info)
    return etfr

I'm currently throwing away phase information just because it takes up a lot of RAM / disk space, and IO was becoming a problem on our cluster. It'd be easy to add back in though.

Just pinging this again to see if there's still interest. I was looking at the time_frequency code and the three functions (stockwell, morlet, and multitaper) seem to be doing pretty much the same thing. Though for some reason stockwell does it differently. The other two call a function _time_frequency, but stockwell seems to be using its own version of this (maybe for good reason?).
If all these functions used the same underlying code, I don't know that it'd be too tough to modify things to create functions that return 4D arrays. Basically just modify _time_frequency to output either averages over epochs or the full 4D array. Something like:
def _time_frequency(X, Ws, use_fft, decim, average=True):
    """Aux of time_frequency for parallel computing over channels
    """
    n_epochs, n_times = X.shape
    n_times = n_times // decim + bool(n_times % decim)
    n_frequencies = len(Ws)

    mode = 'same'
    if use_fft:
        tfrs = _cwt_fft(X, Ws, mode)
    else:
        tfrs = _cwt_convolve(X, Ws, mode)
    tfrs = tfrs[..., ::decim]
    if average is True:
        psd = np.zeros((n_frequencies, n_times))  # PSD
        plf = np.zeros((n_frequencies, n_times), np.complex)  # phase lock

        for tfr in tfrs:
            tfr_abs = np.abs(tfr)
            psd += tfr_abs ** 2
            plf += tfr / tfr_abs
        psd /= n_epochs
        plf = np.abs(plf) / n_epochs
    else:
        tfrs = tfrs[..., ::decim]
        tfr = np.abs(tfrs) ** 2
        plf = tfrs / np.abs(tfrs)
    return psd, plf

Then, you could write some functions like _tfr_power_morlet, _tfr_power_multitaper etc, that would just compute the windows and pass the data to _time_frequency. It wouldn't be so different from what single_trial_power does, but it seems like it would set the stage for more extendable/modular functions, and would make it easier to build on top of it if a full EpochsTFR object were created. Anyone have thoughts on that?

I think a manual page. That's what I had in mind. Take a look at this for example: http://scikit-learn.org/stable/modules/linear_model.html. We need more like these. Something that gives the user a little background on the method (with a few equations if applicable), some nice plots, code snippets on how to generate them in python along with warnings / notes + references. Basically, a complete overview. I think you have a pretty good understanding of the time-frequency stuff. So, it would be great if you can contribute.

I think a manual page. That's what I had in mind. Take a look at this for example: http://scikit-learn.org/stable/modules/linear_model.html. We need more like these. Something that gives the user a little background on the method (with a few equations if applicable), some nice plots, code snippets on how to generate them in python along with warnings / notes + references. Basically, a complete overview. I think you have a pretty good understanding of the time-frequency stuff. So, it would be great if you can contribute.

Cool - thanks for the reference links. I'll put this on my to-do list
though it'll be a little bit because that PSD PR kind of sucked away all of
my non-thesis working time for a little while...
On Fri, Jan 1, 2016 at 2:52 AM, Mainak Jas<EMAIL_ADDRESS>wrote:

I think a manual page. That's what I had in mind. Take a look at this for
example: http://scikit-learn.org/stable/modules/linear_model.html. We
need more like these. Something that gives the user a little background on
the method (with a few equations if applicable), some nice plots, code
snippets on how to generate them in python along with warnings / notes +
references. Basically, a complete overview. I think you have a pretty good
understanding of the time-frequency stuff. So, it would be great if you can
contribute.
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-168294341
.

Cool - thanks for the reference links. I'll put this on my to-do list
though it'll be a little bit because that PSD PR kind of sucked away all of
my non-thesis working time for a little while...
On Fri, Jan 1, 2016 at 2:52 AM, Mainak Jas<EMAIL_ADDRESS>wrote:

I think a manual page. That's what I had in mind. Take a look at this for
example: http://scikit-learn.org/stable/modules/linear_model.html. We
need more like these. Something that gives the user a little background on
the method (with a few equations if applicable), some nice plots, code
snippets on how to generate them in python along with warnings / notes +
references. Basically, a complete overview. I think you have a pretty good
understanding of the time-frequency stuff. So, it would be great if you can
contribute.
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-168294341
.

Extending the @agramfort's efforts in #3476 : would it make sense to extend to slightly modify EpochsTFR to be more similar to Epochs?

include the events infrastructure

include an events field
include the by-condition / events_id indexing mechanism

add a get_data() method and ditch the data field?

For (2): This would make EpochsTFR differ from AverageTFR, but Epochs differs from Evoked in exactly the same way, so I'm not sure if that's really a problem.

@palday +1 for both 1) and 2). Can you open a separate issue/PR?
@dengemann can you close this issue? I think we solved it with #3454 and #3476?

Done.

+1 for both as well - and isn't there a PR w a more general get_data
function that could operate on lots of different classes?
On Thu, Sep 1, 2016 at 7:59 AM Phillip Alday<EMAIL_ADDRESS>wrote:

Done.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mne-tools/mne-python/issues/2024#issuecomment-244106623,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABwSHVkyl2mjSTo2C-xdFvSV33mZZPjQks5qluhlgaJpZM4EJHBu
.

+1 too
the generic get_data is _get_inst_data in mne.utils - but it is not public.

Looks like remaining issues have been moved to a new issue, closing


Fix Travis CI

Coverage remained the same at 76.515% when pulling a23d79a2dd74aa1d7a268c9ab6aa321ce181008a on fix-ci into 18b02d058b2f3b690e2c877c8326915ac06d4280 on master.


False positive when testing transitions

Description
Consider the following state machine:
export const machine = Machine<{}, MachineState, MachineEvents>({
  id: 'buttonMachine',
  type: 'parallel',
  states: {
    loading: {
      initial: 'idle',
      states: {
        idle: {
          on: {
            TOGGLE_LOADING: 'loading',
          },
        },
        loading: {
          on: {
            TOGGLE_LOADING: 'idle',
          },
        },
      },
    },
  },
})

And the following test:
  it('transitions from `idle` to `loading` when the TOGGLE_LOADING event occurs', () => {
    const expected = 'loading'
    const actualState = machine.transition('idle', 'TOGGLE_LOADING')

    expect(actualState.matches(expected)).toBe(true)
  })

Because there is no idle state (only loading.idle), the test should fail. However the test passes successfully creating a false positive.
Expected Result
The test to fail.
Actual Result
The test passes
Reproduction
https://codesandbox.io/s/wild-thunder-oe915?file=/src/__tests__/index.spec.js
Additional context

This is now invalid in XState v5 beta, since a valid State object is now the only thing allowed to be passed to machine.transition(...). It is recommended to actually create an actor and test it by sending it events in v5:
const actor = createActor(machine).start();

actor.send({ type: 'TOGGLE_LOADING' });

expect(actor.getSnapshot().matches('loading')).toBe(true);


small issue with keyserver

Just a heads up with a small issue I had and fixed but replacing the keyservers url:
https://github.com/docker-library/postgres/blob/master/11/Dockerfile#L31
It works with
&& gpg --keyserver  hkp://p80.pool.sks-keyservers.net:80
Thanks to @tianon for
https://github.com/tianon/gosu/issues/17

See also https://github.com/docker-library/official-images/issues/4252.
We use a server in front of the gossip servers via DNS hijack which makes it a lot more reliable on the whole (discussed/linked from that thread).


Update flutter wiki's render speed test page

The e2e package has been discontinued.
So as to prevent confusion, the render speed performance test page could either be modified to use the integration_test package or be removed altogether

https://github.com/flutter/flutter/wiki/How-to-write-a-render-speed-test-for-Flutter


Latest dev snapshot not keeping session state

Godot version: Godot 3.1beta9official

OS/device including version: Linux x64 Solus Gnome

Issue description:

When closing the editor and opening again it doesnt keep the layout and previously opened scripts.

This is already fixed on master branch. The fix just didn't make it into this beta.

Duplicate of https://github.com/godotengine/godot/issues/26359.

My bad, sorry


Fix github pages rendering

Codecov Report

Merging #131 (e4da21c) into main (54e6742) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   92.19%   92.19%
=======================================
  Files          61       61
  Lines        3871     3871
=======================================
  Hits         3569     3569
  Misses        231      231
  Partials       71       71

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54e6742...e4da21c. Read the comment docs.


Snappy extension isn't getting installed

Describe the bug

Version

[x] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
[x] v2
[ ] v1

Runners

[x] GitHub Hosted
[ ] Self Hosted

Operating systems

Ubuntu 20.04, Ubuntu 22.04
PHP versions
7.4, 8.0, 8.1
To Reproduce

name: Extension workflow
on: [push]
jobs:
  test:
    runs-on: ${{ matrix.operating-system }}
    strategy:
      fail-fast: false
      matrix:
        operating-system: [ubuntu-20.04, ubuntu-22.04]
        php-versions: ['7.4', '8.0', '8.1']
    steps:
      - name: Install PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
          extensions: snappy
          tools: composer:v2
          coverage: none

      - name: Testing PHP version
        run: php -v

      - name: Testing Extensions
        run: |
          php -i | grep snappy
          php -m

Expected behavior
The snappy extension should be installed
Screenshots/Logs
❌ Snappy isn't installed
❌ php-setup action step didn't fail

Example Github Actions run is here:
https://github.com/ihor-sviziev/test-php-setup-with-sodium/runs/7671290756?check_suite_focus=true#step:2:14

Additional context
When you're installing the only snappy extension, it works fine:
Are you willing to submit a PR?

No

@ihor-sviziev
Snappy is not on PECL and there is no package for it.
Please use setup-php's installing from source API for it.
- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: ${{ matrix.php }}
    extensions<EMAIL_ADDRESS>

@shivammathur is there any way to pre-build the needed extension and import it there?

In the next release, I will add support for it. Once that is done, you can use shivammathur/cache-extensions action to avoid building it on each run.

Just pinging this one, to see if this is still on a roadmap.


fixed typo in cdk install section”

@lavernw1 LGTM, merging.

Merged: https://github.com/openshiftio/appdev-documentation/commit/02ec21a34827e9536bfc4edb8aba8502280708bc


zoneBalance can't be set to false

Per the doc:

To use best-effort zone balance, set zoneBalance to false. This setting is the default in API version 2017-12-01. To use strict zone balance, set zoneBalance to true.

However per the latest API spec version 2021-07-01:

zoneBalance
Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set.

Please:

Update the doc to use the latest API version
Explain how to not set zoneBalance when it's not needed, e.g.:

"zoneBalance": "[if(variables('azEnabled'), variables('azEnabled'), json('null'))]",

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e5880e85-75e2-21b0-0f7e-b7541bdc04ae
Version Independent ID: 762f79cf-563d-1bb7-ddae-8c53131abaf6
Content: Create an Azure scale set that uses Availability Zones - Azure Virtual Machine Scale Sets
Content Source: articles/virtual-machine-scale-sets/virtual-machine-scale-sets-use-availability-zones.md
Service: virtual-machine-scale-sets
Sub-service: availability
GitHub Login: @mimckitt
Microsoft Alias: mimckitt

@mimckitt, ping please.

Fixing in https://github.com/MicrosoftDocs/azure-docs/issues/83103
#please-close

Hi @VikasPullagura-MSFT , I saw the documentation that you can specify strict regional balance by setting the zoneBalance parameter, but I did not find where to configure this parameter, and I tried to use this parameter locally with az cli command, and I reported an error, and I did not see this parameter set when I created VMSS on Azure portal. Please help to confirm whether the parameter zoneBalance has been eliminated. If not, please help to give the correct use method, thank you very much.
Ducument link:
https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-use-availability-zones?tabs=cli-1%2Cportal-2
This is my command:
az vmss create --resource-group sg2 --name testsetzonebalance --image Win2019Datacenter --upgrade-policy-mode automatic --admin-username azureuser --admin-password 988988p@J --vm-sku Standard_B2s --instance-count 2 --zones 1 2 --zone-balance
Error screenshot:

@LeoandHenry I see the zone balance property in the REST apis: https://learn.microsoft.com/en-us/rest/api/compute/virtual-machine-scale-sets/create-or-update?view=rest-compute-2024-03-01&tabs=HTTP
However, I am not finding it in CLI or PowerShell. It is possible this is an oversight and we need to get it added to these SDKs. I am checking in on it now.
In the meantime, you can deploy using REST to set this command or using the Azure Portal:

Thank you @LeoandHenry for bringing this to our attention! This property has been there for years and no ones ever asked! Here's where we're at:
✅Portal VMSS Create
🟥Portal VMSS Update -- I will put in a ticket to add this ASAP
🟥Azure CLI VMSS Create -- I will put in a ticket to add this ASAP
✅Azure CLI VMSS Update
az vmss update -n foo -g bar--set zoneBalance=true
✅Powershell -- Its not part of the Default Parameter Set, but you can [explicitly set it in the VMSS Config object] when creating or updating a scale set (https://learn.microsoft.com/en-us/powershell/module/az.compute/new-azvmss?view=azps-11.6.0)
✅Terraform VMSS Uniform
🟥Terraform VMSS Flex

@mimckitt  @fitzgeraldsteele ,Thank you for your reply and support. I am a technical support of Microsoft. My customer saw that zoneBalance was mentioned in the official document, and he was confused about it.
I have also done relevant tests locally, and I really can't find where to set this parameter.  I will also look into the documentation on how to set this up in Powershell.
The environment of the customer and I are both China Azure, I really can't set zoneBalance on Azure portal:

@LeoandHenry appreciate the findings and testing! For the portal issue, the balancing option will only show up if you select to deploy to 2 or more zones. I am assuming when you were creating this scale set, you did not specific zones or did not specify more than one. Can you go back to the basics page and make sure you have at least 2 zones selected?
Just some updates on our end:

Create VMSS in portal -> you can set zone balance
Update VMSS in portal -> cannot set zone balance. Will get this fixed
Azure CLI -> cannot set zone balance. Will get this fixed.
Azure PowerShell -> you can set zone balance
Terraform (VMSS Uniform) -> you can set zone balance
Terraform (VMSS Flex) -> cannot set zone balance. Will get this fixed.

@mimckitt Yeah,  Actually I selected zone1 and zone 2 ,but I still cannot set zoneBalance:

Thanks for checking! We will take a look and update you.

@LeoandHenry  are you deploying using uniform or flex orchestration mode?

@mimckitt When I select flexible mode, zonneBalance cannot be set in Allocation policy.

When I select uniform mode, the Allocation policy here can set zoneBalance to true:

So do I have to select uniform mode to set zoneBalance, or does zoneBalance only support uniform mode?

Thanks for checking! Both are supported.
Flex support started rolling out last week and is only in a few regions. It has not reached the China location yet. It should be available in the next 2 weeks or so.
In the meantime, you can use CLI to set the zone balance to true
az vmss update -n foo -g bar--set zoneBalance=true

@mimckitt Thank you for your answer. I successfully set the "zoneBalance=true" parameter for the current vmss using the "az vmss update" command you provided. In a week or two, I'll be back on the portal to see if zoneBalance can be set to true for VMSS in flexible mode, thanks again for the guidance.


404 error for Boinc

Hello,
Each time i run the verification test my Boinc package, i get a 404 error, but it works on my CI, on my computer and orher computers.
So the problem seems always on the verifier.
I've added the KB2919355 package, but it don't solve anything.
Thank you

Relevant Gist
Error: The request was aborted: Could not create SSL/TLS secure channel.
In here just providing some additional details and logs

I don't believe this is the proper place for this issue, I want to say if you are the package maintainer you are given an email that has (hopefully) clear instructions on the process of talking directly to the moderators and requesting an exemption. Hopefully you've found that (apologies I'm just now coming across this issue).


Exposed  offsetCurve method

@svycka thanks!

@svycka do you have any other changes you'd like to include before we ship #281 and #282? When you're ready, would you be up for preparing the release following the pattern of the changes shown here? https://github.com/GEOSwift/GEOSwift/commit/1fee0146ee06ca2d1e83070320b95526f3690f9d


Added Project: Movie Recommender System

Issue #1095  Movie Recommender System
Close #1095
Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

Hey @pranjay-poddar, kindly review the PR.

Hey @pranjay-poddar, kindly review this PR #1362 regarding issue #1095.


CardiacField: Computational Echocardiography for Universal Screening

waiting for your CardiacField: Computational Echocardiography for Universal Screening
thanks. best wishes.

终于等到你，还好作者没放弃！

我日日等，夜夜等，茶不思，夜不寐！还好，我也没放弃


To Do: Convert Library-Management-System schemas to work with SQLite

The schema tests/test_schema.sql is fully converted to work with SQLite3


Quickstart example panics on rust v1.80+

I'm running cargo test on this example: https://docs.near.org/build/smart-contracts/quickstart and getting panics on the set_then_get_greeting() test:
thread 'tests::set_then_get_greeting' panicked at core/src/panicking.rs:221:5:
unsafe precondition(s) violated: ptr::replace requires that the pointer argument is aligned and non-null

Commenting out  log!() resolves the issue.
I'm running:
rustc 1.82.0 (f6e511eec 2024-10-15)
cargo-near-near 0.11.0
near-cli-rs 0.15.1

Deploying and calling the contract runs into the following issue:
$ near view <deploy-address>.testnet get_greeting
▹▹▸▹▹ Getting a response to a read-only function call ...
▹▹▸▹▹  ↳  Getting the result of executing a read-only function 'get_greeting' of the <yellow-loong.testnet> contract ...
...

Error:
   0: Failed to fetch query for read-only function call: 'get_greeting' (contract <yellow-loong.testnet> on network <testnet>)
   1: Read-only function execution failed
   2: handler error: [Function call returned an error: wasm execution failed with error: CompilationError(PrepareError(Deserialization))]

Reverting back to rustc 1.79-aarch64-apple-darwin fixes the issues, seems like a similar issue to this:
https://stackoverflow.com/questions/78952340/unsafe-preconditions-violated-ptrreplace-requires-that-the-pointer-argument
Rust versions after v1.79 panic:
stable: 1.80, 1.81, 1.82 panics
beta 1.83 panics
nightly 1.84 panics

Adding some additional info:
$ RUST_BACKTRACE=full cargo test
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s
     Running unittests src/lib.rs (target/debug/deps/hello2-9da8e95d65f72eb1)

running 2 tests
test tests::get_default_greeting ... ok
Saving greeting: howdy
thread 'tests::set_then_get_greeting' panicked at core/src/panicking.rs:221:5:
unsafe precondition(s) violated: ptr::replace requires that the pointer argument is aligned and non-null
stack backtrace:
   0:        0x100a4c2e4 - std::backtrace_rs::backtrace::libunwind::trace::h1c3451b342542f10
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:        0x100a4c2e4 - std::backtrace_rs::backtrace::trace_unsynchronized::h3743cad8cc2d54de
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:        0x100a4c2e4 - std::sys::backtrace::_print_fmt::h31ad576fee12d4ee
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:66:9
   3:        0x100a4c2e4 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::habbf9c4f641febb1
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:39:26
   4:        0x100a67f1c - core::fmt::rt::Argument::fmt::h54965d9b1ee82264
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/fmt/rt.rs:177:76
   5:        0x100a67f1c - core::fmt::write::ha36a8060c13608ea
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/fmt/mod.rs:1178:21
   6:        0x100a49bd0 - std::io::Write::write_fmt::h431832c8ebcc85c9
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/io/mod.rs:1823:15
   7:        0x100a4d8a4 - std::sys::backtrace::BacktraceLock::print::hd085ca0c3911e184
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:42:9
   8:        0x100a4d8a4 - std::panicking::default_hook::{{closure}}::h4aa1f60327dfff6a
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:266:22
   9:        0x100a4d454 - std::panicking::default_hook::h4ebc6eb4ae179807
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:293:9
  10:        0x10091028c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h53c41d20c10901e7
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/boxed.rs:2245:9
  11:        0x10091028c - test::test_main::{{closure}}::h4995b77ab7caefb9
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/test/src/lib.rs:132:21
  12:        0x100a4e434 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hc542ab67a612d649
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/boxed.rs:2245:9
  13:        0x100a4e434 - std::panicking::rust_panic_with_hook::h6a84efe4dcab239c
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:805:13
  14:        0x100a4dd24 - std::panicking::begin_panic_handler::{{closure}}::h5eef292190467fef
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:664:13
  15:        0x100a4c7a8 - std::sys::backtrace::__rust_end_short_backtrace::hd7e7925203f20af9
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:170:18
  16:        0x100a4da14 - rust_begin_unwind
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
  17:        0x100a7482c - core::panicking::panic_nounwind_fmt::runtime::hed7cc75ebcf8d970
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:112:18
  18:        0x100a7482c - core::panicking::panic_nounwind_fmt::hb2df5b6c3d6ab15b
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:122:5
  19:        0x100a748a4 - core::panicking::panic_nounwind::h6b53a509f430e184
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:221:5
  20:        0x10091c618 - core::ptr::replace::precondition_check::hd2a53dc2849d57c6
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ub_checks.rs:70:21
  21:        0x100a70f6c - core::ptr::replace::h6e71c02d7d982086
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ub_checks.rs:77:17
  22:        0x100a70f6c - core::ptr::mut_ptr::<impl *mut T>::replace::h3e08361adbedb861
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mut_ptr.rs:1462:18
  23:        0x100a70f6c - std::sys::thread_local::native::lazy::Storage<T,D>::initialize::h77e0ec5dabb9a15f
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/thread_local/native/lazy.rs:66:45
  24:        0x100920b6c - std::sys::thread_local::native::lazy::Storage<T,D>::get_or_init::h3e7331068e4509c8
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/thread_local/native/lazy.rs:56:40
  25:        0x10091f070 - near_sdk::environment::mock::BLOCKCHAIN_INTERFACE::{{constant}}::{{closure}}::ha7d1483e997156ec
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/thread_local/native/mod.rs:93:25
  26:        0x10091f358 - core::ops::function::FnOnce::call_once::hb46014094badbdb2
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
  27:        0x100918550 - std::thread::local::LocalKey<T>::try_with::he8cbf70eaf6aa230
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:282:37
  28:        0x1009184f0 - std::thread::local::LocalKey<T>::with::h775eb4470ea9f3ed
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:260:9
  29:        0x10091ef08 - near_sdk::environment::mock::with_mocked_blockchain::h3d2088172d5388b6
                               at /Users/peita/.cargo/registry/src/index.crates.io-6f17d22bba15001f/near-sdk-5.5.0/src/environment/mock/mod.rs:24:5
  30:        0x10091ba80 - near_sdk::environment::mock::mocked_blockchain::mock_chain::with_mock_interface::hf6b2c01c6b8f12bf
                               at /Users/peita/.cargo/registry/src/index.crates.io-6f17d22bba15001f/near-sdk-5.5.0/src/environment/mock/mocked_blockchain.rs:196:9
  31:        0x10091bc3c - log_utf8
                               at /Users/peita/.cargo/registry/src/index.crates.io-6f17d22bba15001f/near-sdk-5.5.0/src/environment/mock/mocked_blockchain.rs:333:9
  32:        0x10091eec8 - near_sdk::environment::env::log_str::hb044490e6998aef1
                               at /Users/peita/.cargo/registry/src/index.crates.io-6f17d22bba15001f/near-sdk-5.5.0/src/environment/env.rs:887:14
  33:        0x1008e1bf4 - hello2::Contract::set_greeting::h8482d803f4b18bea
                               at /Users/peita/Dev/near/hello2/src/lib.rs:29:9
  34:        0x1008e18ec - hello2::tests::set_then_get_greeting::hbbd22229a720bff2
                               at /Users/peita/Dev/near/hello2/src/lib.rs:52:9
  35:        0x1008e1e50 - hello2::tests::set_then_get_greeting::{{closure}}::h6f8da75ab8128a33
                               at /Users/peita/Dev/near/hello2/src/lib.rs:50:31
  36:        0x1008e1d18 - core::ops::function::FnOnce::call_once::h124e4f2e396dade9
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
  37:        0x100913f28 - core::ops::function::FnOnce::call_once::h2dc2ae3d5deab128
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
  38:        0x100913f28 - test::__rust_begin_short_backtrace::ha74869ac477f01d4
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/test/src/lib.rs:620:18
  39:        0x10091379c - test::run_test_in_process::{{closure}}::h480e4aa17f895fab
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/test/src/lib.rs:643:60
  40:        0x10091379c - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::he972b835bfbe1a74
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panic/unwind_safe.rs:272:9
  41:        0x10091379c - std::panicking::try::do_call::h6d242d7a00c26634
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
  42:        0x10091379c - std::panicking::try::hb95de8c02276d3a3
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
  43:        0x10091379c - std::panic::catch_unwind::ha1de2aaaa7ebc727
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
  44:        0x10091379c - test::run_test_in_process::he8812b09a718bc7e
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/test/src/lib.rs:643:27
  45:        0x10091379c - test::run_test::{{closure}}::h2a5b46f746d71bd1
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/test/src/lib.rs:564:43
  46:        0x1008e382c - test::run_test::{{closure}}::h61d08600987824eb
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/test/src/lib.rs:594:41
  47:        0x1008e382c - std::sys::backtrace::__rust_begin_short_backtrace::h8712ad22d62bd1c4
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:154:18
  48:        0x1008e6994 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h4a31c94c016920f8
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/mod.rs:522:17
  49:        0x1008e6994 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb12f0f3e20fc7e49
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panic/unwind_safe.rs:272:9
  50:        0x1008e6994 - std::panicking::try::do_call::hc89f2e3a18dc8949
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
  51:        0x1008e6994 - std::panicking::try::h155ce7ca424a9125
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
  52:        0x1008e6994 - std::panic::catch_unwind::h0fce6398764430bd
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
  53:        0x1008e6994 - std::thread::Builder::spawn_unchecked_::{{closure}}::h38c8d2c04ffb7937
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/mod.rs:521:30
  54:        0x1008e6994 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h28859a09daa84c0f
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
  55:        0x100a51a18 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h2fa7f2d055a8b06a
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/boxed.rs:2231:9
  56:        0x100a51a18 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h53b33f8374f8384c
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/boxed.rs:2231:9
  57:        0x100a51a18 - std::sys::pal::unix::thread::Thread::new::thread_start::hd88bc8e95f2ca709
                               at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/pal/unix/thread.rs:105:17
  58:        0x19d27bfa8 - __pthread_joiner_wake
thread caused non-unwinding panic. aborting.
error: test failed, to rerun pass `--lib`

Caused by:
  process didn't exit successfully: `/Users/peita/Dev/near/hello2/target/debug/deps/hello2-9da8e95d65f72eb1` (signal: 6, SIGABRT: process abort signal)

Running cargo test --release works however.
The core::ptr::replace::precondition_check failure seems to triggered somewhere around this line in the near-sdk:
https://github.com/near/near-sdk-rs/blob/eda17d5e2705ec71a1c704b483bae86dd79e53cd/near-sdk/src/environment/mock/mod.rs#L11

@peitalin thank you for the detailed report! @dj8yfo and I looking into it now. I saw something similar before, but didn't have time to troubleshoot it, and it got resolved for me on its own. If you have the capacity to dig into it and find the root cause, I'm happy to allocate $500 USDC bounty reward

@peitalin your analysis appears to be one line off :
887 is eprintln! in current git version of code https://github.com/near/near-sdk-rs/blob/eda17d5e2705ec71a1c704b483bae86dd79e53cd/near-sdk/src/environment/env.rs#L886 ,
but it's https://docs.rs/crate/near-sdk/5.5.0/source/src/environment/env.rs#887 in published version of code

Adding Rc<Refcell<MockedBlockchain>> resolves my issues ...although I'm not entirely sure what causes the panic.
Running cargo test through rust-lldb on rustc 1.82 for a more [detailed backtrace here].(https://gist.github.com/peitalin/e8cf336b313e92c06ba06bbdc8be1f53)
It seems that the panic occurs when thread_local!(..) first lazily initializes Refcell<MockedBlockchain> via with_mock_interface(..) here.
Here it fails some pointer alignment checks in prt::replace(dst=0x0000000101808228, src=State<RefCell<MockedBlockchain>>):
    frame #10: 0x0000000100197fec hello3-55b931dd32c44b6a`core::panicking::panic_nounwind::h6b53a509f430e184 at panicking.rs:221:5 [opt]

    frame #11: 0x000000010003e9c4 hello3-55b931dd32c44b6a`core::ptr::replace::precondition_check::h70eae1b4d5638254(addr=0x0000000101808228, align=32) at ub_checks.rs:70:21

    frame #12: 0x000000010019471c hello3-55b931dd32c44b6a`std::sys::thread_local::native::lazy::Storage<T,D>::initialize::h0b9f75b9dd77b574 [inlined] core::ptr::replace::hb9b1fc681700d126(dst=0x0000000101808228, src=State<core::cell::RefCell<near_sdk::environment::mock::mocked_blockchain::MockedBlockchain<near_sdk::environment::mock::mocked_memory::MockedMemory>>, ()> @ 0x000000017020efe0) at ub_checks.rs:77:17

    frame #13: 0x0000000100194708 hello3-55b931dd32c44b6a`std::sys::thread_local::native::lazy::Storage<T,D>::initialize::h0b9f75b9dd77b574 [inlined] core::ptr::mut_ptr::_<impl &mut T>::replace::h7e1551e201d1a8bd(self=0x0000000101808228, src=State<core::cell::RefCell<near_sdk::environment::mock::mocked_blockchain::MockedBlockchain<near_sdk::environment::mock::mocked_memory::MockedMemory>>, ()> @ 0x000000017020efe0) at mut_ptr.rs:1462:18

    frame #14: 0x0000000100194708 hello3-55b931dd32c44b6a`std::sys::thread_local::native::lazy::Storage<T,D>::initialize::h0b9f75b9dd77b574(self=0x0000000101808228, i=Option<&mut core::option::Option<core::cell::RefCell<near_sdk::environment::mock::mocked_blockchain::MockedBlockchain<near_sdk::environment::mock::mocked_memory::MockedMemory>>>> @ 0x000000017020d190, f=0x6000017080a00000) at lazy.rs:66:45

Somehow adding the extra Rc<Refcell<MockedBlockchain>> passes these pointer alignment / precondition checks.

@peitalin i've linked a duplicating issue from rustc.
If it sparks anyone's interest, and they ask you to share more details about your specific env/setup,
please do to help the investigation go on.

cargo test does not panic on my Linux system with rustc 1.81.0:
[lorenzo@ivo test-project]$ cargo test
   Compiling test-project v0.1.0 (/home/lorenzo/repository/near-quickstart/test-project)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 9.22s
     Running unittests src/lib.rs (target/debug/deps/test_project-82076a5f905019d4)

running 2 tests
test tests::get_default_greeting ... ok
test tests::set_then_get_greeting ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/test_basics.rs (target/debug/deps/test_basics-12c4894e7d02d9aa)

running 1 test
test test_contract_is_operational ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.08s

   Doc-tests test_project

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

[lorenzo@ivo test-project]$ rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)

is this still open?

@peitalin can you provide more details about your systems into rustc issue and also try minimal reproducing snippet, suggested there?

@dj8yfo sure, just added a reproduction in the other thread: https://github.com/rust-lang/rust/issues/132704#issuecomment-2468064989


Add a search bar in "See all Pets" page | Front End

Objective
Add a search bar to look for specific pets (in case the user has a lot of created pets)

Description
Having in mind that a user can create as many pets as it wants, is a good idea to include a search bar in the page where the pets will be shown so the user can look for those it needs

Tasks

[ ] Create the component (if needed)
[ ] Integrate component to the page
[ ] Integrate component to the endpoint
[ ] Add needed UT

Ticket relationships

Relationship
Involved tickets

Is child of
none

In parent of
none

Is related to
none

Is blocked by
none

It blocks
none

Have in mind this medium article for debounce and throttle techniques for search scenarios


Versioning

Versioning (or auto-saving) is essential, when writing long texts and should be part of every serious, even a minimalistic one, text editor.

Thanks for your suggestion. I have the plan to support it.


Error:(20, 5) error: method does not override or implement a method from a supertype

Getting the following issues when trying to build for Android works for iOS
/Users/Almog/Full-Time-Employment/Construction-Cloud/RnD/CCMobileApp/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewPackage.java
Error:(20, 5) error: method does not override or implement a method from a supertype
Error:Execution failed for task ':react-native-fast-image:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Any ideas how to fix this?

Any updates on this?

#47

Duplicate of https://github.com/DylanVann/react-native-fast-image/issues/47


CMIP6_CV.json does not appear to be updating

@mauzey1 it seems that CMIP6_CV.json is not updating nightly, with the last change back on the 4th October 2019 (version: <IP_ADDRESS>). We've had a number of recent updates which have brought us up to <IP_ADDRESS>, the latest change was made on the 22nd October 2019.
Can you take a peek at this please?

@durack1 I was trying to figure that out yesterday.  I tried manually running the script that the cronjob is meant to perform and it was able to create a commit at 4216364b3affa9ef396f12b670dd7fcdd4efc6b7.  The cronjob wasn't working due to not configuring the time correctly.  The cronjob has been fixed since there was a commit pushed last midnight at e0090daa695a35badefdd5752bed97b18b3f55da.
What I am trying to figure out now is why the CircleCI tests didn't run when the commits were pushed.

@mauzey1 thanks for getting to this so quickly!

@mauzey1 it seems we're still behind, I have made a couple of updates to the CVs today bring us up to <IP_ADDRESS> but we're stuck at <IP_ADDRESS>

@mauzey1 it seems we're back up to date with "CV_collection_version":"<IP_ADDRESS>", I assume this happened automagically?
If so, are you happy for this to be closed?

@durack1 I got the cronjob working to update the develop branch, and got the CircleCI tests working again to check the tables.  Currently, I need to manually merge develop into master when changes are pushed by the cronjob.  At some point, I would like to find a way for CircleCI to automatically merge develop changes into master when tests pass.  However, I think we can close this issue.

@mauzey1 great. So there will still be some involvement from you the next time changes are made to the CMIP6_CVs? Do you need to know about this, or watch the repo, or are you getting prompted by the cronjob?
I'll close this anyway

@durack1 I currently just check the repo if new changes are pushed to develop.


Python checkpoint to use with C++

I have tried everything from freeze_graph.py to bazel  to try and use a python trained saved checkpoint of a model in c++.
Why is it so complicated in TF?Caffe was so much easier.!!
These are the steps that I follow:
1)While training I added the following line just before saving each checkpoint :
tf.train.write_graph(sess.graph_def, 'modelsprototxt/', 'trainingmodel.pb', as_text=True)
2)I used freeze_graphy.py to send in a trained checkpoint file,the written graph fle and the output graph file and I get the following error:
Traceback (most recent call last):
File "/home/anarayanan/TenserflowPlayground/TF_DEEPLAB_UNTOUCHED/tensorflow-deeplab-resnet-master/freeze_graph.py", line 175, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/home/anarayanan/TenserflowPlayground/TF_DEEPLAB_UNTOUCHED/tensorflow-deeplab-resnet-master/freeze_graph.py", line 172, in main
FLAGS.output_graph, FLAGS.clear_devices)
File "/home/anarayanan/TenserflowPlayground/TF_DEEPLAB_UNTOUCHED/tensorflow-deeplab-resnet-master/freeze_graph.py", line 115, in freeze_graph
text_format.Merge(f.read(), input_graph_def)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 476, in Merge
descriptor_pool=descriptor_pool)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 526, in MergeLines
return parser.MergeLines(lines, message)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 559, in MergeLines
self._ParseOrMerge(lines, message)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 574, in _ParseOrMerge
self._MergeField(tokenizer, message)
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 619, in _MergeField
name = tokenizer.ConsumeIdentifierOrNumber()
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py", line 1066, in ConsumeIdentifierOrNumber
raise self.ParseError('Expected identifier or number.')
google.protobuf.text_format.ParseError: 2:1 : Expected identifier or number.
Can someone please help me understand where the error is coming from?

I apologize but I am having a hard time understanding what the problem is, where the problem is, and what version it affects. Please resubmit and pay attention to the issue template (https://github.com/tensorflow/tensorflow/issues/new) . Please provide all the information it asks. Thank you.
(In particular, it isn't clear to me how you're invoking the freeze_graph tool, which version of TensorFlow and the tools is being used etc. Detailed instructions on reproducing the problem will be very helpful in being able to diagnose the problem. You may also want to see https://stackoverflow.com/questions/44724700/using-tensorflow-checkpoint-to-restore-model-in-c/44726029#44726029 )

This issue is automatically closed due to lack of activity. Please re-open if this is still an issue for you. Thanks!


New version supporting separate images as list

I think it would be better for the calling shell to just loop over images rather than specially handling it within the CLI; it also gives the caller greater control over file naming and the like.


DOC: It's not clear from the documentation why spicy.stats.bootstrap generates a sample with a smaller size then the original one

Issue with current documentation:
There is no info about it on https://scipy.github.io/devdocs/reference/generated/scipy.stats.bootstrap.html#scipy.stats.bootstrap
Idea or request for content:
Suggested fix: describe in what situations it's possible (if I understand the reasons, I can offer a more detailed fix.)
Additional context (e.g. screenshots, GIFs)
The result of print(scipy.__version__, numpy.__version__, sys.version_info) is
1.10.1 1.24.4 sys.version_info(major=3, minor=8, micro=10, releaselevel='final', serial=0)

The code I run:
orig_x = np.array([1, 2, 3, 4, 5])
orig_y = np.array([1, 2, 3, 4, 5])

def compare_x_y(x, y):
    print(x.shape, y.shape)
    return (x == y).mean()

print(compare_x_y(orig_x, orig_y))
print(
    sps.bootstrap(
        (orig_x, orig_y), compare_x_y, random_state=0, n_resamples=3
    ).confidence_interval
)

It prints:
(5,) (5,)
1.0
(5,) (5,)
(5,) (5,)
(5,) (5,)
(5,) (5,)
(4,) (5,)

Why does the last sample for x always have orig_x.shape[0] - 1 elements? I always thought that bootstrap generates samples of the same size as the original one.
Moreover, if paired=True is used, the output changes to:
(5,) (5,)
1.0
(5,) (5,)
(5,) (5,)
(5,) (5,)
(5,) (5,)
(4,) (4,)
(4,) (4,)
(4,) (4,)
(4,) (4,)
(4,) (4,)

What have I missed?

The default method, ``'bca', also involves the jackknife, which leaves out one observation. If you choose method='basic'ormethod='percentile'`, you will always have five observations in each sample.

Oh, I haven't known... Thank you!
If I want to ensure the shapes to be always the same, should I use paired=True then? The documentation lacks details about the argument, but, as far as I understand, if it is set, elements with the same indices in both sequences are taken, thus giving the same shapes.

if it is set, elements with the same indices in both sequences are taken

Yes. The elements from both (all) sequencies are considered to be "paired", so they are resampled together (as a unit).
This offered for convenience compared to, say, R's bootstrap package, which has no such option. Instead, the user would have to use the indices as the data, and the statistic would have to be written in terms of the indices rather than the observations themselves. (See e.g. the example on page 8.)
Besides what is written, we could also document the shapes of the arrays that will be passed to the function, but that can get a bit complicated. Instead, if the elements are considered to be "paired", one can infer that stats.bootstrap will pass the function arrays with the same length along axis.
There are probably different opinions about how instructive the documentation should be. I wouldn't want to try to compress books written about the bootstrap into a single docstring. That said, I want to make what is there easy to understand if the user is already familiar with how the resampling should be done. Suggestions along those lines welcome.

The elements from both (all) sequencies are considered to be "paired", so they are resampled together (as a unit).

Wow, that's a very convenient feature indeed! I think it should be documented in some way, e.g. give an example showing that the corresponding elements from all sequences have the same indices, or write something about the paired argument in the docstring. Even if I had known how the paired argument works for 2 sequences, I wouldn't have thought that the same would apply to more than 2 sequences, since the naming and the examples hint at a two-sequences case.
And thank you for the detailed response, @mdhaber!

Please see the current documentation. paired is documented and there is an example of its use. One thing I can think of adding is extending:

Whether the statistic treats corresponding elements of the samples in data as paired.

with

If True, bootstrap resamples an array of indices and uses the same indices for all arrays in data.

One thing I can think of adding is extending: <...>

Yes, great addition! Please note that I have seen the documentation and the example. The confusion arises from the meaning of "to pair", since it is usually perceived as supposing only two objects.
Should I close this issue and open a new one for the addition?

No, this issue is fine.
I'll open a PR with that addition (or you can - let's keep the scope to just that change), and we'll close this when that merges.

sorry if by "issue" you meant PR. You could have left this open and opened the PR, but I went ahead already.

No, everything is fine :) By "issue" I meant this particular issue.


Issue while importing an existing/creating app to developer portal

Getting the below error,
Package Loading Failure
Provided add-in package was not understood. Please, make sure that the file being submitted is a valid Office add-in package.

and while creating a new app also have this same issue on loading the packages. "Failed to download app "error message is displaying under the "App Package" tab .please find the below screenshot for reference.

Can you guide how to import an existing app / create a new app from the developer portal?

We are also experiencing this issue

@amoyalan20 -

"Provided add-in package was not understood. Please, make sure that the file being submitted is a valid Office add-in package." error comes if your app package has more than 3 files. App package should contain only manifest.json, outline and color files. Please check if you are adding anything extra in the app package. If you still get the error in developer portal, please share your manifest with us and remove any PII.
We are also getting same issue while trying to create an app. We are checking this internally and get back to you.

This error is showing up for us on app exporting as well. When uploading it to the validator, it fails validation.

Yes, we are also able to repro this issue. Engineering team has confirmed that this error comes from the latest manifest version 1.15.  They are working on updating the service, the error should be gone after that.
Team is looking into it, I will get back to you once we have an update from the team.

@Meghana-MSFT

I checked app package and validated the files, Now the manifest import works for me. Thanks @Meghana-MSFT .
But noticed few findings:

App package still shows error

Preview in teams not working, getting a error message below.

Still have issue with create a App.

Can you guide to resolve the issues mentioned above?

Team is looking into app package - failed to download issue.
Can you please validate your app package through developer portal to understand why manifest parsing has failed

@Meghana-MSFT
By using the given link(developer portal), it is showing the below screenshot and there are no any errors.
im getting the "Manifest parsing has failed" only while i click the "Preview in teams". Could you assist on this?

Can you please share your manifest with us to check what the issue is?

We have the same issue in Developer Portal, need to update an application created via App Studio but are not able to publish an update, I get the same error


Add TorchScript-able "info" func to sox_io backend

This is a part of PRs to add new "sox_io" backend #726, and depends on #718.
This PR adds info function to "sox_io" backend, which allows users to fetch some metadata of an audio file.
At this moment, the information retrieved are;

Number of samples in the audio file
Sampling rate
Number of channels

This implementation ended up being aligned with what was suggested in https://github.com/pytorch/audio/issues/618#issuecomment-626135032.
Compared to the original "sox" backend, which exposed all sox_signalinfo_t and sox_encodinginfo_t, this is limited but it was not helpful to expose all of sox internals either. For the details of these structures, see sox_signalinfo_t and sox_encodinginfo_t.

thanks!


KSS documentation format can support Javadoc style

I think the format of Javadoc (or PHPDoc and other) should be a good thing.
/**
 * Comment
 *
 * @author Maxime
 * @deprecated ...
 */

It's "native" to CSS, and a lot of IDE already support keyword like @link, @author, @version...
What do you think about this style of format ?

I really don't like that style at all. The inspiration from this came from TomDoc, which has been a joy to use because it doesn't impose crazy "machine text." I love documentation that's easy for humans to read. And really, there's no need to write like machines when we can make machines read like us.

What about just support
/**
 * Comment like this, without @keywords, supporting your parser ?
 */

?

Yep, I'm fine with that. I don't care too much about the comment syntax markers... I believe that format may actually work today? If not, just need to adjust some regexes to kill the first /**

Have you seen the proposed CSSDOC-standard? http://cssdoc.net/  It goes near the JAVADOC and has many interesting features (which I normalyy don't use). Could this notation be parsed with your KSS?

Again, the real power here is simple human-readable documentation (that is still machine parseable). Programmers love keywords in their documentation then wonder why they hate writing documentation. I'm going to be pretty strict on this bit with KSS — I see no value in adopting a documentation syntax that's cumbersome and confusing.


Reposition hidden files only if background image is available

Resolves the issue described by @hermwong in https://github.com/andreyvit/yoursway-create-dmg/pull/35

Thanks for the fix!

As per my new policy:

Starting in January 2015, everyone who gets a pull request merged gets commit access to the repository.

you're now a committer. Feel free to do anything you want with this repo. :-)

@andreyvit Thank you for the privilege! Many thanks also for the great project you've started. It helped lots of people making their way through DMG packaging.

@kaloyan-raev One of several useful pieces from a failed startup I tried to bootstrap many years ago :-)

Hi, I've been testing this pull request. I'm still seeing the hidden files within the window of the disk image even when using a background image.
screen shot provided:

here is the list parameters that I'm using:
#! /bin/bash
test -f ../../../installers/osx/PhoneGapDesktop.dmg && rm ../../../installers/osx/PhoneGapDesktop.dmg

./create-dmg \
--volname "PhoneGap Desktop Installer" \
--background "bg-512-320.png" \
--window-size 512 320 \
--icon-size 64 \
--icon PhoneGap.app 125 160 \
--hide-extension PhoneGap.app \
--app-drop-link 385 160 \
--eula license.txt \
../../../installers/osx/PhoneGapDesktop.dmg \
../../../build/PhoneGap/OSX


Cannot Resolve

Hi,
I'm trying to include this library on my new project but gradle show me an error "cannot resolve" and peer no authenticated. It seems that gradle cannot find the source for this library. It may have been removed from where you've uploaded the library. I've previously used your library and I've not encountered any problem when it comes to including it on my project via Gradle. Can you help and check?
Thanks!

Hi @ejdelros08
Did you include jitpack into your repositories?
repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

Yes I have.

Seems something wrong with jitpack. I've try to rebuild the library on jitpack but it doesn't work. I'll try to investigate the problem soon.

or, you may try this:
compile 'ooo.oxo:touch-image-view:1.0.1'

alright. Hoping to get this fixed asap, the project is urgent. Thank you very much for your response. Godbless

Hi,
I've tried using
compile 'ooo.oxo:touch-image-view:1.0.1'
but I'm still having the same issue. Do i need to remove the
maven { url "https://jitpack.io" }
Thanks

No, don't remove that line.
Can you open the web site https://jitpack.io properly?

Yes, I can view the website and tried syncing gradle again before sending this comment. Still the same problem.

I have the same error. On jipack site, I only found pullbacklayout. No image-view there.


submitHandler not firing

Subject of the issue
submitHandler not firing
Your environment

version of jquery-validate 1.15.0
which browser and its version Chrome 53.0.2785.116

Steps to reproduce
Complete the form with all required fields and submit.
You'll notice that if you incorrectly complete the email or phone field, those validate just fine. However the simple submitHandler never fires.  I also tried just using submitHandler with no rules, and got the same result.
https://jsfiddle.net/usznkfzs/.
Expected behaviour
Ideally email and phone fields would be validated by the plugin then it would fire the function in the submitHandler
Actual behaviour
Email and phone are validated, however nothing fires in the submitHandler once all fields are validated.
I've also tried using debug:true rather than preventDefault. However debug:true doesn't seem to do anything either for me.

Hi there,
You shouldn't be attaching a handler on the submit event of the form, you should let validate plugin handle the event for you and then you can do your stuff in submitHandler prop of validate plugin.
Here's the correct fiddle: https://jsfiddle.net/usznkfzs/1/

ah. that makes sense.  thanks.


NativeAd not loading in release mode

I use google_mobile_ads in my flutter app. In debug mode, the test advertisement is loaded. For debug I use NativeAd.testAdUnitId. I have build the application in release mode(apk for Android), when loading ads I get an error - Error loading NativeAd.
This is my code(I took this from an example):
`
return FutureBuilder(
future: nativeAdCompleter.future,
builder: (BuildContext context, AsyncSnapshot snapshot) {
Widget child;
    switch (snapshot.connectionState) {
      case ConnectionState.none:
      case ConnectionState.waiting:
      case ConnectionState.active:
        child = Container();
        break;
      case ConnectionState.done:
        if (snapshot.hasData) {
          child = AdWidget(ad: _nativeAd);
        } else {
          child = Text('Error loading $NativeAd');
        }
    }

`
means snapshot.hasData == false,
I checked the id - it is correct. any ideas how I can fix this problem?
Any suggestions I will be grateful

In release mode, no ads.
Ads only show after download from Play store.

Test ads always shows in debug or release

@FetFrumos can you share error logs from when the ad fails to load, and also any details in the LoadAdError that is returned when the ad fails to load callback?

@FetFrumos, could you please try the solutions mentioned here and see if this works https://stackoverflow.com/a/61539203/8253662


Menu items without group

In corporate menu it should be possible to add menu items without menu -> means clickable menu items in the menubar.
Two options: server sends flat: true|false for a menu or a menu item?
flat menu -> all items flat
flat item -> only item flat

Is the flat property implemented, I've checked MenuAnalyzer.java and can't find it. If it is implemented is there a test or how can I set it to test it out.

Not implemented right now.

Please use user: layout and latest mobile server from repo.
All menu items should be flat....

We don't have group entries... If all entries of a group are flat -> hide group because it will be empty


Add yAxis Formats to Bar and time series charts

Hello @Golodhros, @rpheath, @simonw
I want to customize the YAxis of the charts.
Expected Behavior

If the API returns the time values the YAxis should show the time returned from the API with "H" string appended next to YAxis values.
If the API returns the data in Bytes format the YAxis should render in "GB" format.

Current Behavior
It is rendering the default YAxis as of now which is not required. The YAxis should be customizable.
Can you please help me with this as I am trying to fix this since couple of weeks but no success.
Thanks,
Vijay

@Golodhros, Is this possible to have a custom YAxis.

Hi @VGawade, sorry for the delay. Which chart are you using?

hi @Golodhros I am using Four charts from you library.

Stacked-Bar
Stacked-Area
Donut Chart
Line Chart

I need to customize the YAxis of all of them according to data retrived from the API.
The data will be in "Bytes" & "Hours" format and the YAxis has to be rendered accordingly.
Please let me know if you need more inputs.
Thanks.

Hi @VGawade, we aren't supporting yAxisFormats in any of those charts. Also, we probably won't ever have them for the Donut chart.
I will transform this into a feature proposal. In the meanwhile, a workaround I guess would be to add the units in the yAxisLabel.
Thanks!

Hey @VGawade, could you give an example of how you would use it and how y axis of the chart would look like approximately? Sorry it's hard to visualize and understand without usage. Thanks!

Hi @dalerasrorov-eb, Here is how the YAxis should look like when the data is in time and Bytes format.

Please let me know if required more information.
Thanks.

Hi @VGawade ! The feature request is implemented here: https://github.com/eventbrite/britecharts/pull/647
However, due to the fact that this addition should then be copied/integrated over to other charts, it would need more support from the community (since it's a medium-size change that impacts a lot of charts). We will keep this branch alive and merge when the demand is high enough.
One thing you could do is fork the remote branch feat-ticks-labels and use this forked branch to add changes to your charts. Thanks a lot!

Hi @dalerasrorov-eb, It is very helpful. Appriciate your help.
Thanks.

No problem @VGawade - feel free to re-open this issue if something comes up.

Hi,
I was looking through the source code. How does the ticklabel mb, gb, etc get calculated? I can't seem to find it anywhere. Thank you!
reposted question from: original comment

Hi @jjphung,
Have you checked in the feat-ticks-labels branch?

@Golodhros Thanks for replying. No such branch exists anymore. It seems like it was merged into master and deleted, which means it could be somewhere in master branch?

Have you checked in the feat-ticks-labels branch?

Oh, I see, bummer!
you can get the code from this change here: https://github.com/eventbrite/britecharts/pull/647/files
if you go ahead add those changes, you should be able to have this feature.

Ah! The feature is there already 👍. It's just that for the calculation of size (mb, gb, etc) for the axis labels, somewhere the conversion is 1000 bytes between the sizes, instead of 1024. Therefore the converted values displayed is slightly off. Perhaps this is a possible bug?

I see. Is that 1000 constant in our code then?

I wasn't able to find it here. Perhaps I may have missed it somewhere in the codebase. Or maybe a 3rd party library that may have done the conversion.


Difficult to spot the album/music adder button

Difficult to spot the album/music adder button. Consider to add a "+" right next to the icon

Added "+" next to the icon