Skip to content

Commit

Permalink
Merge pull request #50 from radio-astro/issue-49
Browse files Browse the repository at this point in the history
Issue 49
  • Loading branch information
SpheMakh authored Jan 12, 2019
2 parents be490fc + 02b4878 commit a830567
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ Changes since 0.6.0

# 1.0.3
- Fix interface to when auto-setting VLA configurations.

# 1.0.7
- Fix synthesis time when scan_legth is a scalar
2 changes: 1 addition & 1 deletion simms/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.6"
__version__ = "1.0.7"
18 changes: 8 additions & 10 deletions simms/casasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,15 @@ def toFloat(val):
else:
nscans = 0


synthesis *= 3600

if nscans == 1 and scan_length[0] < synthesis:
nscans = np.int( np.ceil( synthesis/scan_length[0] ) )
scan_length = scan_length*(nscans)

print sum(scan_length)/3600.0

if ndir>=1:
# if scan legth is not set, set it to equal the synthesis time
if nscans == 0:
Expand Down Expand Up @@ -233,16 +241,6 @@ def toFloat(val):
'Double check you settings. If you feel this '
'is due a to bug, raise an issue on https://github.com/SpheMakh/simms')

# Clear all flags if limits were not set
if not setlimits:
tb.open(msname, nomodify=False)
flags = tb.getcol("FLAG")
if flags.sum() > 0:
flags[...] = False
tb.putcol("FLAG", flags)
tb.close()


if validate(msname):
return msname
else:
Expand Down

0 comments on commit a830567

Please sign in to comment.