Skip to content

Several options ( Layout, Notch, Bandpass Filter, widgets,etc. ) in DefaultSettings.json are not applied by the app. #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pirelaurent opened this issue May 3, 2021 · 9 comments

Comments

@pirelaurent
Copy link

Problem

DefaultSettings file is overwritten by app at every startup. Whatever you have saved as the default config, it is lost.
A main drawback motivation is for example Notch. If you leave in a country at 50hz, you must change by hand the notch each time even if you saved previously on defaultsettings (or you patch the file ) .

Expected

App must take care of the current defaultSettings.json values at startup.
I have proposed a pull request #967 with all explanations ( pirela_README.md) and solution (quite simple since settings refactoring :) )
Was closed probably because no relation with a bug. Now, there is one.
pirla_README.md

Operating System and Version

WIndows

GUI Version

5.0.4

Running standalone app

visual studio code or standalone

Type of OpenBCI Board

Cyton

Are you using a WiFi Shield?

No

Console Log

Paste any relevant text from the console window here

@retiutut retiutut self-assigned this May 4, 2021
@retiutut
Copy link
Member

retiutut commented May 4, 2021

App must take care of the current defaultSettings.json values at startup.
I have proposed a pull request #967 with all explanations ( pirela_README.md) and solution (quite simple since settings refactoring :) )
Was closed probably because no relation with a bug. Now, there is one.
pirla_README.md

I will review this carefully, and I have assigned this issue to myself. Thank you for bringing this up!

@pirelaurent
Copy link
Author

pirelaurent commented May 5, 2021 via email

@retiutut
Copy link
Member

retiutut commented May 5, 2021

@pirelaurent I will see if this can be an easy fix, but I proposed a much broader and general fix to these kinds of issues, found here:

#970

https://github.com/OpenBCI/OpenBCI_GUI/milestone/10

@pirelaurent
Copy link
Author

pirelaurent commented May 6, 2021 via email

@retiutut
Copy link
Member

retiutut commented May 28, 2021

DefaultSettings file is overwritten by app at every startup. Whatever you have saved as the default config, it is lost.
A main drawback motivation is for example Notch. If you leave in a country at 50hz, you must change by hand the notch each time even if you saved previously on defaultsettings (or you patch the file ) .

DefaultSettings.json is not meant to be used like this. It's meant to be the default configuration the GUI starts with. We overwrite this every time to account for newer versions of the GUI.

You will want to save and load from User settings files that are made with pressing n key or specified by pressing the "Save" button in the TopNav. Examples: SynthEightUserSettings.json or CytonUserSettings.json.

From the GUI console log:

[SUCCESS]: Settings Saved! The GUI will now load with these settings. Click "Default" to revert to factory settings.

@retiutut
Copy link
Member

retiutut commented May 28, 2021

[SUCCESS]: Settings Saved! The GUI will now load with these settings. Click "Default" to revert to factory settings.

This message should be changed. The GUI will no longer auto-load saved user settings. This was a decision by the internal team some time ago.

@pirelaurent The quickest way to load your previous settings is to:

  • Start Session
  • Turn On Expert Mode
  • Press lowercase n to save settings to CytonUserSettings.json, as an example. This name is autogenerated based on the data type. This is for users who may want different settings for different boards or data types.
  • Start Session another time
  • Turn On Expert Mode
  • Press uppercase N

@retiutut
Copy link
Member

@pirelaurent Session settings will no longer be auto-saved when users exit a session. This could have been overriding what a user intends to save, but then may make other changes afterwards before closing a session.

Starting with GUI 5.0.5, session settings will only be saved or loaded when a user explicitly decides to do so with TopNav buttons or Keyboard presses (n and N).

@retiutut retiutut mentioned this issue May 29, 2021
@pirelaurent
Copy link
Author

pirelaurent commented May 29, 2021 via email

@retiutut
Copy link
Member

@pirelaurent This software is released under MIT license and you are free to modify the app to suite your needs. I also have to consider the needs of the international community and our internal team. This is what is best for now.

Take Care,
RW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants