Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tfields
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Boeckenhoff
tfields
Commits
16528828
Commit
16528828
authored
Oct 16, 2020
by
dboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
creating parent directories on the fly in save
parent
bd811843
Pipeline
#84442
passed with stages
in 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
.gitlab-ci.yml
.gitlab-ci.yml
+2
-3
tfields/core.py
tfields/core.py
+7
-5
No files found.
.gitlab-ci.yml
View file @
16528828
...
...
@@ -29,7 +29,7 @@ before_script:
dist
:
stage
:
build
script
:
-
mkdir -p .ache/apt
-
mkdir -p .
c
ache/apt
-
apt-get update -yqq
-
apt-get install -y gfortran libopenblas-dev liblapack-dev
-
apt-get -o dir::cache::archives=".cache/apt" install -y -qq gfortran liblapack-dev libgmp-dev
...
...
@@ -76,8 +76,7 @@ test:
script
:
-
pip --version
-
pip install tox
# you can also use tox
-
rm -rf .tox
-
tox --recreate
-
tox
coverage
:
'
/^TOTAL.+?(\d+\%)$/'
artifacts
:
# paths:
...
...
tfields/core.py
View file @
16528828
...
...
@@ -81,6 +81,7 @@ class AbstractObject(object):
)
path
=
rna
.
path
.
resolve
(
path
)
rna
.
path
.
mkdir
(
path
)
return
save_method
(
path
,
**
kwargs
)
@
classmethod
...
...
@@ -455,9 +456,7 @@ class AbstractNdarray(np.ndarray, AbstractObject):
Counterpart to __reduce__. Important for unpickling.
"""
# Call the parent's __setstate__ with the other tuple elements.
super
(
AbstractNdarray
,
self
).
__setstate__
(
state
[
0
:
-
len
(
self
.
_iter_slots
())]
)
super
(
AbstractNdarray
,
self
).
__setstate__
(
state
[
0
:
-
len
(
self
.
_iter_slots
())])
# set the __slot__ attributes
valid_slot_attrs
=
list
(
self
.
_iter_slots
())
...
...
@@ -1625,7 +1624,9 @@ find-ordered-vector-in-numpy-array
evalfs
=
evalfs
[
idx
]
evecs
=
evecs
[:,
idx
]
e
=
np
.
concatenate
((
evecs
,
evalfs
.
reshape
(
1
,
3
)))
return
e
.
T
.
reshape
(
12
,)
return
e
.
T
.
reshape
(
12
,
)
def
main_axes
(
self
,
weights
=
None
):
"""
...
...
@@ -2321,7 +2322,8 @@ class TensorMaps(TensorFields):
dim_maps
=
[
dim_maps_dict
[
dimension
][
i
]
for
i
in
range
(
len
(
objects
))]
return_value
=
TensorFields
.
merged
(
*
dim_maps
,
return_templates
=
return_templates
,
*
dim_maps
,
return_templates
=
return_templates
,
)
if
return_templates
:
mp
,
dimension_map_templates
=
return_value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment