-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mkeilman
committed
Aug 10, 2023
1 parent
8d1a37c
commit 7501dd2
Showing
1 changed file
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- coding: utf-8 -*- | ||
"""PyTest for :mod:`sirepo.template.srw` | ||
:copyright: Copyright (c) 2023 RadiaSoft LLC. All Rights Reserved. | ||
:license: http://www.apache.org/licenses/LICENSE-2.0.html | ||
""" | ||
import pytest | ||
from pykern.pkcollections import PKDict | ||
|
||
|
||
def test_srw_resize_3d(fc): | ||
from sirepo.template import srw | ||
from pykern.pkdebug import pkdlog | ||
import numpy | ||
import os | ||
|
||
env = PKDict(os.environ) | ||
cfg = PKDict( | ||
SIREPO_JOB_MAX_MESSAGE_BYTES="1e4", | ||
) | ||
env.pkupdate(**cfg) | ||
pkdlog("MaX B {}", srw._MAX_MESSAGE_BYTES) | ||
assert 0 | ||
|
||
#a = numpy.random.rand(srw._MAX_MESSAGE_BYTES) | ||
#r = PKDict() | ||
#srw._reshape_3d(a, [], r) | ||
|
||
|