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
C
cosmic_dustbox
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
Martin Glatzle
cosmic_dustbox
Commits
ef4dd5f0
Commit
ef4dd5f0
authored
Feb 22, 2019
by
Martin Glatzle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove SGPAH for now.
parent
1f549501
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
51 deletions
+0
-51
cosmic_dustbox/models/SGPAH/WD01.py
cosmic_dustbox/models/SGPAH/WD01.py
+0
-51
cosmic_dustbox/models/__init__.py
cosmic_dustbox/models/__init__.py
+0
-0
No files found.
cosmic_dustbox/models/SGPAH/WD01.py
deleted
100644 → 0
View file @
1f549501
from
cosmic_dustbox
import
sdist
from
cosmic_dustbox
import
Gspcs
as
gs
import
astropy.units
as
_u
import
os
as
_os
import
numpy
as
_np
import
sys
import
pandas
Path
=
_os
.
path
.
dirname
(
_os
.
path
.
dirname
(
_os
.
path
.
realpath
(
__file__
)))
+
\
'
\\
lib
\\
paramsWD01a.csv'
sys
.
path
.
insert
(
0
,
Path
)
class
WD01
(
object
):
with
open
(
Path
)
as
f
:
R_V
=
[]
;
bc
=
[]
;
alpha_g
=
[]
;
beta_g
=
[]
;
a_tg
=
[]
;
a_cg
=
[]
C_g
=
[]
;
alpha_s
=
[];
beta_s
=
[];
a_ts
=
[]
;
a_cs
=
[]
;
C_s
=
[]
df
=
pandas
.
read_csv
(
f
)
R_V
.
append
(
df
[
'R_V'
])
bc
.
append
(
df
[
'b_C'
])
alpha_g
.
append
(
df
[
'
\\
alpha_g'
])
beta_g
.
append
(
df
[
'
\\
beta_g'
])
a_tg
.
append
(
df
[
'a_{t,g} [m]'
])
a_cg
.
append
(
df
[
'a_{c,g} [m]'
])
C_g
.
append
(
df
[
'C_g'
])
alpha_s
.
append
(
df
[
'
\\
alpha_s'
])
beta_s
.
append
(
df
[
'
\\
beta_s'
])
a_ts
.
append
(
df
[
'a_{t,s} [m]'
])
a_cs
.
append
(
df
[
'a_{c,s} [m]'
])
C_s
.
append
(
df
[
'C_s'
])
rho_g
=
2.24
*
_u
.
g
/
_u
.
cm
**
3
b
=
_np
.
array
([
0.75
*
bc
[
1
],
0.25
*
bc
[
2
]])
#
def
__init__
(
self
,
Indx
):
def
load_file
(
Indx
,
st
):
sdists
=
{
'gra'
:
sdist
.
Log_Normal
(
3.5
*
_u
.
Angstrom
,
_np
.
inf
,
rho_g
,
0.4
,
bc
,
b
,
a0
)
+
\
sdist
.
WD01_dst
(
3.5
*
_u
.
Angstrom
,
_np
.
inf
,
a_tg
[
Indx
],
beta_g
[
Indx
],
a_cg
[
Indx
],
alpha_g
[
Indx
],
C_g
[
Indx
])
,
\
'sil'
:
sdist
.
WD01
(
sdist
.
WD01_dst
(
3.5
*
_u
.
Angstrom
,
_np
.
inf
,
a_ts
[
Indx
],
beta_s
[
Indx
],
\
a_cs
[
Indx
],
alpha_s
[
Indx
],
C_s
[
Indx
])
}
return
sdist
[
st
]
self
.
sdist_gr
=
load_file
(
Indx
,
'gra'
)
self
.
sdist_sil
=
load_file
(
Indx
,
'sil'
)
return
#
\ No newline at end of file
cosmic_dustbox/models/__init__.py
deleted
100644 → 0
View file @
1f549501
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