-
-
Notifications
You must be signed in to change notification settings - Fork 64
Sisl visualization module and graphical interface #221
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
Conversation
By the way, I'm almost done with everything I wanted to do for a first release. I just need to add a bit of documentation and write some missing tests and it will be ready. |
Hi! I would say I'm satisfied for now, so it can be reviewed whenever you have time. There's a lot of things to review, so if you want we can have a call to guide you through it and discuss. I would say also that the best way to check how it works would be to try to build a plot (see https://github.com/pfebrer96/sisl.viz-tutorials/blob/master/tutorials/DIY.ipynb). Looking forward to your feedback! |
I am in the slow process of going through your code, should I create a new branch with edits that you can look through? Probably that would be easier given the large code? |
One thing that would be really good is minimum version requirements of the codes. |
Great, thank you very much! However you want, you can commit the changes directly in this branch if you want, all changes will be probably good :) But if you think a separate branch will be better you can do that too. Please don't be mad when you get to the |
Yes, I will check that! |
I will mark each commented file as Done, to keep track of what I still need to address. I hope you don't mind about all the comments that you will get :) |
Perfectly fine, then I can also comment ;) |
Also, it would be really good if you could try and have a look at #227 together with this, ideally I would like to get that one in first ;) |
Yes, I will install that branch and run all the tests 👍 |
Is it ready for a 2nd review? |
I'm changing the way plotables are handled and have not yet implemented NC/SOC for fatbands, but for the rest, it is 😅 |
Also, change GUI to lowercase ;) |
👍 |
I am a bit lost in this PR, is it ready for a 2nd look? |
Yees I was just fixing some things in the meantime. By the way, don't worry about |
Nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo, I've messed up again :(. I really don't understand how this rebasing stuff should propagate from the sisl repo to my fork master and then to my branch. |
Well the history seems clean. Is this good? |
Ok, now I understand your confusion. I hadn't seen your PR. I just saw the comments branch on your repo and I looked at the file changes. So I missed your PR comment. I'm sorry. I will apply the rest of things you said and let you know when everything is done. Sorry again! |
Generally the workflow should be this:
git checkout master
git pull
git checkout <your dev branch>
git rebase master this will send you through a sequence of problems where you basically need to fix merge conflicts by this recipe: git status
<edit files that are problems, shown as red from above command>
git add <files that have been fixed>
git rebase --continue |
Thanks for taking the time to explain it! What I don't understand is: when you do |
No, generally one should always keep your master in line with my master, never rebase, always only pull. So never rebase master against anything :)
Probably what is confusing to you is that your
If you prefer to have your
which will create the master branch to track my master branch (in case my remote is called |
Greaat, now I understand! One last thing, what if I want to ignore things that are specific to my environment (e.g. a folder called .vscode and a link to the environment: .env), is this possible? That's why I wanted to modify the .gitignore in my master but I then saw that it gets transmitted to the pull requests. |
See here I think this should just work out-of-the-box ;) |
I updated the docs in the do it yourself section (https://sisl-siesta.xyz/sisl-docs/html/visualization/plotly/#do-it-yourself). Hopefully they can help you understand the implementation more easily :) |
…eved with __dir__
Today I addressed (hopefully right) two issues that you were concerned about:
Hope this brings us closer to the final merge :) |
Great thanks for this! I'll have a look at it ASAP. |
This is a seed to open up sisl's visualization module to aiida users, which use lots of different codes. Therefore, it could potentially drive a bunch of new users to sisl if it is adopted. Only bands have an entry point for aiida nodes for now.
Not needed anymore since vertical and horizontal lines are now implemented by plotly (>= 4.12) https://community.plotly.com/t/announcing-plotly-py-4-12-horizontal-and-vertical-lines-and-rectangles/46783
This is now merged! |
🎉 🎉 🎉 |
(This is just a copy of #205 using a new branch to allow smooth rebasing)
What is this
This pull request is to get visibility, so that people knows that this is under developement and I can (hopefully) get some feedback about it. Many syntax things still need to be changed, but the concept is already quite complete, so I'd like to get feedback on it to improve weak points.
For those who don't know, this project is an attempt to build a plotting framework and a graphical interface that can really display the great potential of sisl for processing scientific data.
How can I test it
It should be straightforward for sisl users to test it, I put everything needed in my branch (although I know that in production I will have to store it elsewhere) so that it is as simple as:
for anyone that would like to test it.
Where do I start
The docs are in https://sisl-siesta.xyz/sisl-docs/html/visualization/plotly and they contain several useful (I hope) notebooks that will introduce you to the framework.
Thanks in advance to any person that takes the time to check it out!
Cheers!