forked from chstan/arpes
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔥 - Remove the class and functions in corrections/**init**.py (HashableDict, reference_key, correc… ➕ add dependency about notebook (v7 or later is required.)
- Loading branch information
Showing
25 changed files
with
63 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,19 +68,17 @@ If you use PyARPES in your work, please support the development of scientific so | |
Installation | ||
============ | ||
|
||
PyARPES can be installed from source. Python version 3.11 or newer is strongly recommmended. | ||
PyARPES (>= V.4.0) can be installed from source. Python version 3.11 or newer is strongly recommmended. | ||
|
||
The current version has been largely revised from the original version which are in PyPI and conda site. | ||
Unfortunately, I don't have the right the updated version to these site, and I would not like to take over it from the original author. | ||
The current version has been largely revised from the original version which are in PyPI and conda site. | ||
Unfortunately, I don't have the right the upload the current version to these site, and I would not like to take over it from the original author. | ||
|
||
The main purpose of revision of the package is to make this be reliable. Actually, the original version outputs wrong results in many | ||
The main purpose of revision of the package is to make this be reliable for us. Actually, the original version outputs the wrong results in many | ||
case, especially for angle-momentum conversion. | ||
|
||
|
||
Thus, the current package can be installed only through the github. | ||
|
||
|
||
|
||
Pip installation | ||
---------------- | ||
|
||
|
@@ -96,6 +94,7 @@ If you want to modify the source for PyARPES as you use it, you might prefer a l | |
Details can be found on `the documentation site`_. | ||
|
||
|
||
|
||
Suggested steps | ||
--------------- | ||
|
||
|
@@ -108,6 +107,8 @@ Suggested steps | |
Contact | ||
======= | ||
|
||
Very unfortunately, we cannot get any responses from the original author. The comment below does not make sense at present. | ||
|
||
Questions, difficulties, and suggestions can be directed to Conrad Stansbury ([email protected]) | ||
or added to the repository as an issue. In the case of trouble, also check the `FAQ`_. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
"""A utility excepthook for Qt applications which ensures errors are visible in Jupyter.""" | ||
|
||
from __future__ import annotations | ||
|
||
import traceback | ||
from collections import namedtuple | ||
from typing import TYPE_CHECKING, NamedTuple | ||
|
||
if TYPE_CHECKING: | ||
from types import FrameType, TracebackType | ||
|
||
__all__ = ("patched_excepthook",) | ||
|
||
|
||
def patched_excepthook(exc_type, exc_value, exc_tb) -> None: | ||
def patched_excepthook( | ||
exc_type: type[BaseException] | None, | ||
exc_value: BaseException | None, | ||
exc_tb: TracebackType | FakeTB | None, | ||
) -> None: | ||
"""Prints the traceback instead of dying silently. Useful for debugging Qt apps in Jupyter.""" | ||
enriched_tb = _add_missing_frames(exc_tb) if exc_tb else exc_tb | ||
traceback.print_exception(exc_type, exc_value, enriched_tb) | ||
|
||
|
||
def _add_missing_frames(tb): | ||
result = fake_tb(tb.tb_frame, tb.tb_lasti, tb.tb_lineno, tb.tb_next) | ||
def _add_missing_frames(tb: TracebackType | FakeTB) -> FakeTB: | ||
result = FakeTB(tb.tb_frame, tb.tb_lasti, tb.tb_lineno, tb.tb_next) | ||
frame = tb.tb_frame.f_back | ||
while frame: | ||
result = fake_tb(frame, frame.f_lasti, frame.f_lineno, result) | ||
result = FakeTB(frame, frame.f_lasti, frame.f_lineno, result) | ||
frame = frame.f_back | ||
return result | ||
|
||
|
||
fake_tb = namedtuple("fake_tb", ("tb_frame", "tb_lasti", "tb_lineno", "tb_next")) | ||
# class fake_tb(NamedTuple): | ||
# tb_frame | ||
# tb_lasti | ||
# tb_lineno | ||
# tb_next | ||
class FakeTB(NamedTuple): | ||
tb_frame: FrameType | ||
tb_lasti: int | ||
tb_lineno: int | ||
tb_next: TracebackType | FakeTB | None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
"""Test for utilitiy.bz.""" | ||
|
||
import numpy as np | ||
|
||
from arpes.utilities import bz | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
"""Test for utilitiy.bz.""" | ||
import numpy as np | ||
|
||
from arpes.utilities import bz_spec | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.