GithubHelp home page GithubHelp logo

desihub / desinightlog Goto Github PK

View Code? Open in Web Editor NEW
1.0 54.0 0.0 347 KB

DESI Night Log webapp for observers

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 1.03% Python 97.01% HTML 0.29% CSS 1.67%

desinightlog's Introduction

desinightlog

This is referred to as both the DESI NightLog as well as the DESI Nightly Input (DNI)

This code is running at KPNO on the desi-server and at NERSC. The applications can be accessed here:

Details below describe additional information on how these applications are being run.

KPNO:

  • Running under dosmanager@desi-server. This is only accessible by the DESI ICS team
  • Nightlogs are saved to /software/www2/html/nightlogs/
  • Code running from /software/products/desinightlog-main/
  • Logs for running the Nightlog: /data/msdos/desinightlog/logs
  • Directory structure is set up daily at 12pm MST using a cronjob to ensure permissions are correctly set.
  • msdos@desi-server:/data_local/home/msdos/parkerf/desilo/nl_dir.sh

NERSC:

  • Running as a Rancher2 Spin Application
  • Nightlogs are saved to /global/cfs/cdirs/desi/survey/ops/nightlogs
  • Code running from /global/common/software/desi/users/parkerf/desinightlog/py/desinightlog
  • Logs for running Nightlog:

Files are transferred between NERSC and KPNO according to https://github.com/desihub/desitransfer

desinightlog's People

Contributors

daqiii avatar jalasker avatar parfa30 avatar sbailey avatar sybenzvi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

desinightlog's Issues

Nightlog data are being modified after sync is complete

In the process of trying to recover nightlog sync data after the restoration of line internet to KPNO, I discovered that files at KPNO were being modified after the sync of those files to NERSC was complete. The timestamps indicate that sometimes this happened days after the conclusion of the night.

The nightlog sync only targets nightlog data from the current night, so if a file is modified after the end of that night, that change will not get synced.

Why are files being modified in this way, and is it expected that late-modified files will never get updated at NERSC?

Handling Out of Disk Errors (and other 'failure to create log' errors)

On Dec. 31, 2022, the disks on the KPNO computers were filled up by the creation of some of the initial nightlog files. Once the issue with disk space was resolved, the log was unable to handle the fact that not all of the nightlog files were created and repeatedly failed to add entries with errors from pandas stating that there were "No columns to parse from file."

Solve issue by Adding a try/except block to handle out of disk space errors and no columns to parse errors.

NERSC Log one hour off

Find the time zone issue causing NERSC log to persistently be one hour off of KPNO time. Possible issue with AZ not doing Daylight savings time.

Reduce Redundant Errors

Add a "last exception reported" attribute to the automatic callback function so that we don't log the same error on loop every 30 seconds. This both eats disk space and makes it harder to find the actual cause of some issues.

This attribute should also reset if no exception is reported to prevent false suppression of error messages.

>/< signs being stored correctly but not correctly escaped in HTML display

While entering a night summary which included greater than/less than signs, the summary was being cut off at the first appearance of the greater than/less than sign. However, while loading the summary, the entire text appeared. This should mean that the issue is in how the characters are being escaped in the HTML file display.

Images from night log are only visible in the night log

It is hard to see images that the observers post to the night log. It would be good if images added to the night log could make it into the following locations:

Presently I believe that images posted in the night log only are visible through the KPNO night log, which is only accessible over the VPN and makes understanding reported issues challenging.

Various issues with merging SO and LO comments on KPNO nightlog

Support observer on 2/17-2/19 noticed several peculiarities with DQ comment submissions.

First, SO data quality comments overwrite LO comments when both submitted by exposure number.

Second, SO comment number N doesn't appear until comment N+1 is submitted. This is occasionally coupled with successfully submitted SO comments disappearing upon the submission of new SO comments.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.