-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into network-update
- Loading branch information
Showing
14 changed files
with
60 additions
and
42 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
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,20 +1,7 @@ | ||
from bluesky import settings | ||
# Register settings defaults | ||
settings.set_variable_defaults(prefer_compiled=False) | ||
if settings.prefer_compiled: | ||
try: | ||
from . import cgeo as geo | ||
print('Using compiled geo functions') | ||
except ImportError: | ||
from . import geo | ||
print('Using Python-based geo functions') | ||
else: | ||
from . import geo | ||
print('Using Python-based geo functions') | ||
|
||
from . import cachefile | ||
''' BlueSky tools. ''' | ||
|
||
|
||
def init(): | ||
import bluesky.tools.geo as geo | ||
print("Reading magnetic variation data") | ||
geo.initdecl_data() |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
''' BlueSky functions for geographical calculations. ''' | ||
from bluesky import settings | ||
from bluesky.tools.geo._geo import nm, magdec, initdecl_data, magdeccmd, kwikpos | ||
|
||
|
||
# Register settings defaults | ||
settings.set_variable_defaults(prefer_compiled=False) | ||
if getattr(settings, 'prefer_compiled'): | ||
try: | ||
from bluesky.tools.geo._cgeo import ( | ||
rwgs84, | ||
rwgs84_matrix, | ||
qdrdist, | ||
qdrdist_matrix, | ||
latlondist, | ||
latlondist_matrix, | ||
wgsg, | ||
qdrpos, | ||
kwikdist, | ||
kwikdist_matrix, | ||
kwikqdrdist, | ||
kwikqdrdist_matrix | ||
) | ||
print('Using compiled geo functions') | ||
except ImportError: | ||
from bluesky.tools.geo._geo import (rwgs84, rwgs84_matrix, qdrdist, | ||
qdrdist_matrix, latlondist, latlondist_matrix, | ||
wgsg, qdrpos, kwikdist, kwikdist_matrix, | ||
kwikqdrdist, kwikqdrdist_matrix) | ||
print('Could not load compiled geo functions, Using Python-based geo functions instead') | ||
else: | ||
from bluesky.tools.geo._geo import (rwgs84, rwgs84_matrix, qdrdist, | ||
qdrdist_matrix, latlondist, latlondist_matrix, | ||
wgsg, qdrpos, kwikdist, kwikdist_matrix, | ||
kwikqdrdist, kwikqdrdist_matrix) | ||
print('Using Python-based geo functions') |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,7 +1,7 @@ | ||
numpy | ||
scipy | ||
matplotlib | ||
numpy >= 2.0.0 | ||
scipy >= 1.13.0 | ||
matplotlib >= 3.9.0 | ||
msgpack >= 1.0.0 | ||
zmq | ||
pandas | ||
pandas >= 2.2.0 | ||
bluesky-simdata |
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