Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caillat Michel
yafits
Commits
f36fc960
Commit
f36fc960
authored
Jan 09, 2020
by
Caillat Michel
Browse files
Added an extension directory for FITS files
parent
6dab07f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
yafits.bashrc.dist
View file @
f36fc960
...
...
@@ -13,6 +13,13 @@
#
export YAFITS_FITSDIR=/datartemix/ALMA/FITS
#
# A way to extend the disk space allocated to FITS files
# by using symbolic links defined in YAFITS_FITSDIR towards files
# or directories located in YAFITS_FITSDIR2
#
export YAFITS_FITSDIR2=/datartemix2/ALMA/FITS
#
# Where will the temporary PNG files and log files be written.
# Ensure that the directories are writable by anybody or at least
...
...
yafitss/dataManager_michel.py
View file @
f36fc960
...
...
@@ -67,14 +67,17 @@ class DataManagerImpl :
children
=
[]
for
entry
in
entries
:
p
=
absFITSFilePrefix
+
'/'
+
entry
if
entry
.
startswith
(
"."
)
or
(
not
os
.
path
.
isdir
(
p
)
and
not
p
.
endswith
(
".fits"
))
:
condition
=
os
.
path
.
isfile
(
p
)
and
p
.
endswith
(
".fits"
)
condition
=
condition
or
(
os
.
path
.
islink
(
p
)
and
os
.
path
.
isdir
(
os
.
readlink
(
p
)))
condition
=
condition
or
(
os
.
path
.
isdir
(
p
))
if
not
condition
:
continue
elif
entry
in
[
"log"
,
"NOFITS"
,
"IGNORE"
]:
continue
else
:
d
=
dict
()
d
[
"key"
]
=
relKey
+
'/'
+
entry
d
[
"folder"
]
=
os
.
path
.
is
dir
(
p
)
d
[
"folder"
]
=
not
os
.
path
.
is
file
(
p
)
d
[
"lazy"
]
=
d
[
"folder"
]
if
entry
.
endswith
(
".fits"
)
:
size
=
DataBlock
.
convert_size
(
os
.
path
.
getsize
(
p
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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